-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into aw/LoadTest-aws
- Loading branch information
Showing
94 changed files
with
3,798 additions
and
2,814 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,6 @@ jobs: | |
outputs: | ||
affected-modules: ${{ steps.resolved-modules.outputs.module_names }} | ||
deployment-changes: ${{ steps.match-some.outputs.deployment == 'true' }} | ||
scripts-changes: ${{ steps.match-some.outputs.scripts == 'true' }} | ||
should-run-ci-core: >- | ||
${{ | ||
steps.match-some.outputs.core-ci == 'true' || | ||
|
@@ -37,12 +36,6 @@ jobs: | |
steps.match-some.outputs.golang-ci == 'true' || | ||
steps.match-every.outputs.non-ignored == 'true' | ||
}} | ||
should-run-scripts-test: >- | ||
${{ | ||
steps.match-some.outputs.scripts == 'true' || | ||
github.event_name == 'schedule' || | ||
github.event_name == 'workflow_dispatch' | ||
}} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repo | ||
|
@@ -56,7 +49,6 @@ jobs: | |
# "if any changed file matches one or more of the conditions" (https://github.com/dorny/paths-filter/issues/225) | ||
predicate-quantifier: some | ||
# deployment - any changes to files in the `deployments/` | ||
# scripts - any changes to files in the `core/scripts/` | ||
# core-ci - any changes that could affect this workflow definition | ||
# golang-ci - any changes that could affect the linting result | ||
filters: | | ||
|
@@ -69,8 +61,6 @@ jobs: | |
- '.golangci.yml' | ||
- '.github/workflows/ci-core.yml' | ||
- '.github/actions/**' | ||
scripts: | ||
- 'core/scripts/**' | ||
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | ||
id: match-every | ||
with: | ||
|
@@ -347,7 +337,7 @@ jobs: | |
name: test-scripts | ||
needs: [filter] | ||
runs-on: ubuntu-latest | ||
if: ${{ needs.filter.outputs.should-run-scripts-test == 'true' }} | ||
if: ${{ needs.filter.outputs.should-run-ci-core == 'true' }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,7 +133,7 @@ jobs: | |
- name: Install flakeguard | ||
if: ${{ inputs.runAllTests == false }} | ||
shell: bash | ||
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@051b483f1e9e99b0219d1ccea4d8f7bf3be203b7 # [email protected] | ||
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@103764eb5a9f02e0f3dc677f0d9da2e6796a978c # [email protected] | ||
|
||
- name: Find new or updated test packages | ||
if: ${{ inputs.runAllTests == false && env.RUN_CUSTOM_TEST_PACKAGES == '' }} | ||
|
@@ -334,7 +334,7 @@ jobs: | |
|
||
- name: Install flakeguard | ||
shell: bash | ||
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@051b483f1e9e99b0219d1ccea4d8f7bf3be203b7 # [email protected] | ||
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@103764eb5a9f02e0f3dc677f0d9da2e6796a978c # [email protected] | ||
|
||
- name: Run tests with flakeguard | ||
shell: bash | ||
|
@@ -411,7 +411,7 @@ jobs: | |
|
||
- name: Install flakeguard | ||
shell: bash | ||
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@051b483f1e9e99b0219d1ccea4d8f7bf3be203b7 # [email protected] | ||
run: go install github.com/smartcontractkit/chainlink-testing-framework/tools/flakeguard@103764eb5a9f02e0f3dc677f0d9da2e6796a978c # [email protected] | ||
|
||
- name: Aggregate Flakeguard Results | ||
id: results | ||
|
@@ -454,10 +454,10 @@ jobs: | |
|
||
# Print out the summary file | ||
echo -e "\nFlakeguard Summary:" | ||
jq . ./flakeguard-report/all-test-summary.json | ||
jq .summary_data ./flakeguard-report/all-test-results.json | ||
|
||
# Read the summary from the generated report | ||
summary=$(jq -c '.' ./flakeguard-report/all-test-summary.json) | ||
summary=$(jq -c '.summary_data' ./flakeguard-report/all-test-results.json) | ||
echo "summary=$summary" >> $GITHUB_OUTPUT | ||
|
||
- name: Upload All Test Results as Artifact | ||
|
@@ -503,7 +503,6 @@ jobs: | |
if [ "$GH_EVENT_NAME" = "pull_request" ]; then | ||
flakeguard generate-report \ | ||
--aggregated-results-path ./flakeguard-report/all-test-results.json \ | ||
--summary-path ./flakeguard-report/all-test-summary.json \ | ||
--output-path ./flakeguard-report \ | ||
--github-repository "${{ github.repository }}" \ | ||
--github-run-id "${{ github.run_id }}" \ | ||
|
@@ -518,7 +517,6 @@ jobs: | |
else | ||
flakeguard generate-report \ | ||
--aggregated-results-path ./flakeguard-report/all-test-results.json \ | ||
--summary-path ./flakeguard-report/all-test-summary.json \ | ||
--output-path ./flakeguard-report \ | ||
--github-repository "${{ github.repository }}" \ | ||
--github-run-id "${{ github.run_id }}" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ jobs: | |
uses: smartcontractkit/.github/actions/ctf-build-test-image@6781e048ecc1aadf7d605722c32e8068a5f829ce # [email protected] | ||
with: | ||
other_tags: ${{ steps.tags.outputs.other_tags }} | ||
suites: 'chaos migration reorg smoke soak benchmark load ccip-tests/load ccip-tests/smoke ccip-tests/chaos' | ||
QA_AWS_ROLE_TO_ASSUME: ${{ secrets.QA_AWS_ROLE_TO_ASSUME }} | ||
QA_AWS_REGION: ${{ secrets.QA_AWS_REGION }} | ||
QA_AWS_ACCOUNT_NUMBER: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
//go:build integration | ||
|
||
package cmd_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
"github.com/stretchr/testify/require" | ||
|
||
"github.com/smartcontractkit/chainlink/v2/core/cmd" | ||
"github.com/smartcontractkit/chainlink/v2/core/internal/cltest" | ||
"github.com/smartcontractkit/chainlink/v2/core/internal/testutils/cosmostest" | ||
"github.com/smartcontractkit/chainlink/v2/core/services/chainlink" | ||
) | ||
|
||
func TestShell_IndexCosmosChains(t *testing.T) { | ||
t.Parallel() | ||
|
||
chainID := cosmostest.RandomChainID() | ||
chain := chainlink.RawConfig{ | ||
"ChainID": chainID, | ||
"Nodes": []map[string]any{{ | ||
"Name": "primary", | ||
"TendermintURL": "http://tender.mint", | ||
}}, | ||
} | ||
app := cosmosStartNewApplication(t, chain) | ||
client, r := app.NewShellAndRenderer() | ||
|
||
require.NoError(t, cmd.NewChainClient(client, "cosmos").IndexChains(cltest.EmptyCLIContext())) | ||
chains := *r.Renders[0].(*cmd.ChainPresenters) | ||
require.Len(t, chains, 1) | ||
c := chains[0] | ||
assert.Equal(t, chainID, c.ID) | ||
assertTableRenders(t, r) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.