Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ccip-3424 Add ccip smoke in CI #14501

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
df3df9d
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
AnieeG Aug 23, 2024
9106334
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
AnieeG Aug 30, 2024
65efde9
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
AnieeG Sep 4, 2024
99ab4c1
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
AnieeG Sep 10, 2024
357acdc
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
AnieeG Sep 16, 2024
e5385f7
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
AnieeG Sep 16, 2024
09bd660
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
AnieeG Sep 16, 2024
9d0bd95
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
AnieeG Sep 18, 2024
7d875a4
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
AnieeG Sep 19, 2024
5007bb7
add ccip v1.6 smoke in ci
AnieeG Sep 19, 2024
8e2311f
changes
AnieeG Sep 19, 2024
5281131
reduce timeout
AnieeG Sep 19, 2024
8ecdb39
more fix
AnieeG Sep 19, 2024
c5665eb
login to ecr
AnieeG Sep 19, 2024
39ff496
amazon ecr login
AnieeG Sep 19, 2024
93a8305
add constant
AnieeG Sep 19, 2024
b645d3c
fixes
AnieeG Sep 20, 2024
a212cc3
add selected network
AnieeG Sep 20, 2024
64df575
undo rename
AnieeG Sep 20, 2024
375a69c
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
AnieeG Sep 20, 2024
1d24a5a
add token config
AnieeG Sep 20, 2024
4469872
fix lint
AnieeG Sep 20, 2024
97d0eb8
Merge branch 'develop' of github.com:smartcontractkit/chainlink into …
AnieeG Sep 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,22 @@ runner-test-matrix:

# END: OCR tests

# START: CCIPv1.6 tests

- id: smoke/ccip_test.go:*
path: integration-tests/smoke/ccip_test.go
test_env_type: docker
runs_on: ubuntu-latest
workflows:
- PR E2E Core Tests
- Nightly E2E Tests
test_cmd: cd integration-tests/ && go test smoke/ccip_test.go -timeout 12m -test.parallel=1 -count=1 -json
pyroscope_env: ci-smoke-ccipv1_6-evm-simulated
test_env_vars:
E2E_TEST_SELECTED_NETWORK: SIMULATED_1,SIMULATED_2

# END: CCIPv1.6 tests

# START: Automation tests

- id: smoke/automation_test.go:^TestAutomationBasic/registry_2_0|TestAutomationBasic/registry_2_1_conditional|TestAutomationBasic/registry_2_1_logtrigger$
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ jobs:
AWS_OIDC_IAM_ROLE_VALIDATION_PROD_ARN: ${{ secrets.AWS_OIDC_IAM_ROLE_VALIDATION_PROD_ARN }}
AWS_API_GW_HOST_GRAFANA: ${{ secrets.AWS_API_GW_HOST_GRAFANA }}
SLACK_BOT_TOKEN: ${{ secrets.QA_SLACK_API_KEY }}
AWS_ACCOUNT_ID_PROD: ${{ secrets.AWS_ACCOUNT_ID_PROD }}

run-ccip-e2e-tests-workflow:
name: Run CCIP E2E Tests
Expand Down Expand Up @@ -303,6 +304,7 @@ jobs:
AWS_OIDC_IAM_ROLE_VALIDATION_PROD_ARN: ${{ secrets.AWS_OIDC_IAM_ROLE_VALIDATION_PROD_ARN }}
AWS_API_GW_HOST_GRAFANA: ${{ secrets.AWS_API_GW_HOST_GRAFANA }}
SLACK_BOT_TOKEN: ${{ secrets.QA_SLACK_API_KEY }}
AWS_ACCOUNT_ID_PROD: ${{ secrets.AWS_ACCOUNT_ID_PROD }}

check-e2e-test-results:
if: always()
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/run-e2e-tests-reusable-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ on:
required: false
# Used in some tests to send slack notifications
SLACK_CHANNEL:
required: false
required: false
AWS_ACCOUNT_ID_PROD:
required: false

env:
CHAINLINK_IMAGE: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}.dkr.ecr.${{ secrets.QA_AWS_REGION }}.amazonaws.com/chainlink
Expand Down Expand Up @@ -578,6 +580,8 @@ jobs:
E2E_TEST_PYROSCOPE_SERVER_URL: ${{ matrix.tests.pyroscope_env != '' && secrets.QA_PYROSCOPE_INSTANCE || '' }}
E2E_TEST_PYROSCOPE_KEY: ${{ matrix.tests.pyroscope_env != '' && secrets.QA_PYROSCOPE_KEY || '' }}
E2E_TEST_PYROSCOPE_ENABLED: ${{ matrix.tests.pyroscope_env != '' && 'true' || '' }}
E2E_JD_IMAGE: ${{ secrets.AWS_ACCOUNT_ID_PROD }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/job-distributor
E2E_JD_VERSION: 0.3.0
with:
test_command_to_run: ${{ matrix.tests.test_cmd }} 2>&1 | tee /tmp/gotest.log | gotestloghelper -ci -singlepackage -hidepassingtests=false
test_download_vendor_packages_command: cd $(dirname ${{ matrix.tests.path }}) && go mod download
Expand All @@ -587,7 +591,7 @@ jobs:
test_suite: ${{ matrix.tests.test_env_vars.TEST_SUITE }}
default_e2e_test_chainlink_image: ${{ matrix.tests.test_env_vars.E2E_TEST_CHAINLINK_IMAGE || env.CHAINLINK_IMAGE }}
default_e2e_test_chainlink_upgrade_image: ${{ matrix.tests.test_env_vars.E2E_TEST_CHAINLINK_UPGRADE_IMAGE }}
aws_registries: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }}
aws_registries: ${{ secrets.QA_AWS_ACCOUNT_NUMBER }},${{ secrets.AWS_ACCOUNT_ID_PROD }}
artifacts_name: ${{ env.TEST_ID }}-test-logs
artifacts_location: |
./integration-tests/smoke/logs/
Expand Down
3 changes: 3 additions & 0 deletions integration-tests/deployment/devenv/.sample.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# set the following if you don't want the test to tear down the docker containers after test run is finished
# TESTCONTAINERS_RYUK_DISABLED=true

E2E_JD_IMAGE=<job-distributor-image>
E2E_JD_VERSION=<job-distributor-version>

Expand Down
4 changes: 4 additions & 0 deletions integration-tests/deployment/devenv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ It can either create new simulated private Ethereum network containers or connec

The tests created with this environment are run as [end-to-end integration smoke tests](../../smoke).

Pre-requisites:
- Docker
- Pull access for chainlink and job-distributor images

#### Setting Up Testconfig with Simulated Private Ethereum Network

To run tests (e.g., [ccip-test](../../smoke/ccip_test.go)),
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/deployment/devenv/build_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func CreateChainConfigFromNetworks(
chains = append(chains, ChainConfig{
ChainID: uint64(chainId),
ChainName: chainName,
ChainType: "EVM",
ChainType: EVMChainType,
WSRPCs: rpcProvider.PublicWsUrls(),
HTTPRPCs: rpcProvider.PublicHttpUrls(),
DeployerKey: deployer,
Expand Down
4 changes: 4 additions & 0 deletions integration-tests/deployment/devenv/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import (
"github.com/smartcontractkit/chainlink/integration-tests/deployment"
)

const (
EVMChainType = "EVM"
)

// ChainConfig holds the configuration for a with a deployer key which can be used to send transactions to the chain.
type ChainConfig struct {
ChainID uint64 // chain id as per EIP-155, mainly applicable for EVM chains
Expand Down
6 changes: 5 additions & 1 deletion integration-tests/testconfig/ccip/ccip.toml
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,8 @@ addresses_to_fund = [
]

[CCIP.PrivateEthereumNetworks.SIMULATED_2.EthereumChainConfig.HardForkEpochs]
Deneb = 500
Deneb = 500

[Seth]
# Seth specific configuration, no need for generating ephemeral addresses for tests.
ephemeral_addresses_number = 0
Loading