feat(tests): env agnostic boostrapper for e2e/load#764
Open
rodrigombsoares wants to merge 3 commits into
Open
Conversation
|
👋 rodrigombsoares, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Third stacked PR after
pr2-token-lane. Extracts a shared environment bootstrap layer for CCIP devenv e2e and load tests so both suites use one setup path instead of duplicating inlineLoadOutput/NewLibFromCCVEnv/ChainsMap/ verifier wiring. This env bootstrapper takes care of env specific configs (devenv/prod-testnet/mainnet)Tests select their target via
-ccip-env(defaultdevenv, overridable byCCIP_ENV) and shareBootstrapE2E.IsRemote()branches for prod-testnet are included but inactive in default devenv CI.WASP fires more
Call()invocations thanestimateMessagespredicts;SetSequentialSendsnow usesestimate + 3buffer.Stack:
main→pr1-load-metrics→pr2-token-lane→pr3-env-bootstrapFeatures
Environment selection (
env.go,env_test.go)-ccip-envflag withCCIP_ENVdefault (devenv|prod-testnet)ResolveConfigPathwithCCIP_CONFIG_FILEoverride only on prod-testnet — devenv always usesenv-canton-evm-out.toml, ignoring a strayCCIP_CONFIG_FILEin the environmentParseEnvFromFlag,ConfigPath(),IsRemote()CCIP_CONFIG_FILE; prod-testnet still honors itShared bootstrap (
helpers.go)E2EBootstrapstruct andBootstrapE2E(t, env)SetupCantonSend,SetupCantonTokenSend,SetupCantonReceive,ResolveEVMReceiver,ConfirmCantonSendOnSource,ConfirmEVMSendOnSource,ConfirmExecTimeout,ConfirmSendTimeout(env),EVMToCantonMessageOptionsCANTON_GRPC_URLunset; log required balances instead of mintingSetSequentialSendsbeforeSetupSend(PR2 fix preserved)E2E tests
canton2evm_e2e_test.goandevm2canton_e2e_test.gorefactored toParseEnvFromFlag+BootstrapE2EResolveTokenLane(t, boot.Env, …)canton2evm_send_validation_test.goleft unchanged (inline devenv fixture)Load tests
runWASPskip-exec and indexer logginggun_*_test.gofiles wired through shared bootstrapboot.SetupCantonTokenSendviasequentialSendsForLoad(sched)—estimateMessages + waspSequentialSendBuffer(3) because WASP always fires more calls than the schedule estimateCI fix (
ccip-load-tests.yml)CCIP_CONFIG_FILEgated to prod-testnet only (matches composite action behavior):Testing