Skip to content

Commit

Permalink
Fixes CCIP Chaos Tests to Run
Browse files Browse the repository at this point in the history
  • Loading branch information
kalverra committed Oct 17, 2024
1 parent 4377d9a commit 57167f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ccip-chaos-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
BASE64_CCIP_CONFIG_OVERRIDE: ${{ steps.setup_create_base64_config_ccip.outputs.base64_config }}
TEST_BASE64_CCIP_CONFIG_OVERRIDE: ${{ steps.setup_create_base64_config_ccip.outputs.base64_config }}
with:
test_command_to_run: cd ./integration-tests && go test -timeout 1h -count=1 -json -test.parallel 11 -run 'TestChaosCCIP' ./chaos 2>&1 | tee /tmp/gotest.log | gotestloghelper -ci
test_command_to_run: cd ./integration-tests/ccip-tests && go test -timeout 1h -count=1 -json -test.parallel 11 -run 'TestChaosCCIP' ./chaos 2>&1 | tee /tmp/gotest.log | gotestloghelper -ci
test_download_vendor_packages_command: make gomod
artifacts_location: ./integration-tests/chaos/logs
publish_check_name: CCIP Chaos Test Results
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/ccip-tests/actions/ccip_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3659,7 +3659,7 @@ func (lane *CCIPLane) DeployNewCCIPLane(
execNodes := clNodes[env.ExecNodeStartIndex : env.ExecNodeStartIndex+env.NumOfExecNodes]
if !commitAndExecOnSameDON {
if len(clNodes) < 11 {
return fmt.Errorf("not enough CL nodes for separate commit and execution nodes")
return fmt.Errorf("not enough CL nodes for separate commit and execution nodes, need at least 11 CL nodes, found %d", len(clNodes))
}
bootstrapExec = clNodes[1] // for a set-up of different commit and execution nodes second node is the bootstrapper for execution nodes
}
Expand Down
10 changes: 5 additions & 5 deletions integration-tests/ccip-tests/testsetups/ccip.go
Original file line number Diff line number Diff line change
Expand Up @@ -1363,19 +1363,19 @@ func (o *CCIPTestSetUpOutputs) CreateEnvironment(
ccipEnv.NumOfCommitNodes = testConfig.TestGroupInput.NoOfCommitNodes
ccipEnv.NumOfExecNodes = ccipEnv.NumOfCommitNodes
if !pointer.GetBool(testConfig.TestGroupInput.CommitAndExecuteOnSameDON) {
if len(ccipEnv.CLNodesWithKeys) < 11 {
return fmt.Errorf("not enough CL nodes for separate commit and execution nodes")
if len(ccipEnv.CLNodesWithKeys[chains[0].GetChainID().String()]) < 11 {
return fmt.Errorf("not enough CL nodes for separate commit and execution nodes, need at least 11 CL nodes, found %d", len(ccipEnv.CLNodesWithKeys))
}
if testConfig.TestGroupInput.NoOfCommitNodes >= totalNodes {
return fmt.Errorf("number of commit nodes can not be greater than total number of nodes in DON")
}
if ccipEnv.NumOfExecNodes < 4 {
return fmt.Errorf("insufficient number of exec nodes")
}
// first two nodes are reserved for bootstrap commit and bootstrap exec
ccipEnv.CommitNodeStartIndex = 2
ccipEnv.ExecNodeStartIndex = 2 + testConfig.TestGroupInput.NoOfCommitNodes
ccipEnv.NumOfExecNodes = totalNodes - (2 + testConfig.TestGroupInput.NoOfCommitNodes)
if ccipEnv.NumOfExecNodes < 4 {
return fmt.Errorf("insufficient number of exec nodes")
}
}
ccipEnv.NumOfAllowedFaultyExec = (ccipEnv.NumOfExecNodes - 1) / 3
ccipEnv.NumOfAllowedFaultyCommit = (ccipEnv.NumOfCommitNodes - 1) / 3
Expand Down

0 comments on commit 57167f4

Please sign in to comment.