-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests in multiple simulated chains (#197)
- Loading branch information
Showing
12 changed files
with
572 additions
and
318 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
Large diffs are not rendered by default.
Oops, something went wrong.
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,54 @@ | ||
# This file is used to set the environment variables for the ccip load test. | ||
|
||
export DATABASE_URL="postgresql://postgres:node@localhost:5432/chainlink_test?sslmode=disable" | ||
|
||
# if CCIP_DEPLOY_ON_LOCAL is set to false, the env will be deployed on k8s cluster, otherwise it will be deployed on local docker. | ||
export CCIP_DEPLOY_ON_LOCAL=False | ||
# the test will create new environment with new contracts, chainlink nodes and jobs if CCIP_TESTS_ON_EXISTING_DEPLOYMENT is set to false. | ||
# otherwise, it will use the existing environment. It will assume that deployment has already been completed and | ||
# will ensure the ccip-send and receive is working with the provided contracts under `./integration-tests/ccip-tests/contracts/laneconfig/contracts.json` | ||
export CCIP_TESTS_ON_EXISTING_DEPLOYMENT=False | ||
|
||
# the test will use simulated networks | ||
export SELECTED_NETWORKS="SIMULATED,SIMULATED_1,SIMULATED_2" | ||
export CCIP_NETWORK_PAIRS="" | ||
# th | ||
export CCIP_NO_OF_NETWORKS=10 | ||
export CCIP_NO_OF_LANES_PER_PAIR=2 | ||
|
||
# The load will be triggered as <CCIP_LOAD_TEST_RATE> per <CCIP_LOAD_TEST_RATEUNIT> | ||
# for <CCIP_TEST_DURATION>. Example for following: 1 request per 10s for 1h | ||
export CCIP_LOAD_TEST_RATEUNIT=10s | ||
export CCIP_LOAD_TEST_RATE=1 | ||
export CCIP_TEST_DURATION=1h | ||
|
||
# if CCIP_KEEP_ENV_ALIVE is set to true, the env will not be destroyed after the test. | ||
export CCIP_KEEP_ENV_ALIVE=True | ||
|
||
# if CCIP_CHAINLINK_NODE_FUNDING is set, chainlink nodes will be funded with the mentioned amount in native. | ||
export CCIP_CHAINLINK_NODE_FUNDING=1000 | ||
|
||
# if CCIP_KEEP_ENV_TTL is set, the env will be destroyed after the mentioned duration. | ||
export CCIP_KEEP_ENV_TTL=24h | ||
|
||
# Msg type to use for the load test. Default value is WithToken unless specified. | ||
# Values to choose from WithToken,WithoutToken | ||
export CCIP_MSG_TYPE=WithoutToken | ||
|
||
# remote runner resource requirements | ||
export RR_MEM=16Gi | ||
export RR_CPU=4 | ||
|
||
# pg resource requirements | ||
export CCIP_DB_MEM=6Gi | ||
export CCIP_DB_CPU=2 | ||
|
||
# node resource requirements | ||
export CCIP_NODE_MEM=4Gi | ||
export CCIP_NODE_CPU=2 | ||
|
||
export DETACH_RUNNER=true | ||
export TEST_SUITE=load | ||
export TEST_ARGS="-test.timeout 900h" | ||
# creates chainlink node with this toml config | ||
#export CCIP_TOML_PATH="the toml config path" |
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.