-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 Load Test connected to crib #15404
Conversation
AER Report: CI Coreaer_workflow , commit , Clean Go Tidy & Generate , Detect Changes , Scheduled Run Frequency , GolangCI Lint (.) , GolangCI Lint (integration-tests/load) , GolangCI Lint (integration-tests) , GolangCI Lint (deployment) , Core Tests (go_core_tests) , Core Tests (go_core_tests_integration) , Core Tests (go_core_ccip_deployment_tests) , Core Tests (go_core_fuzz) , Core Tests (go_core_race_tests) , test-scripts , lint , SonarQube Scan 1. Not enough arguments in call to env.GetConfig:[Golang Lint (deployment)]Source of Error:environment/crib/env_test.go:13:12: not enough arguments in call to env.GetConfig
have ()
want (map[uint64]string) Suggested fix: Pass the required 2. Assignment mismatch: 1 variable but env.GetConfig returns 2 values:[Golang Lint (deployment)]Source of Error:environment/crib/env_test.go:13:12: assignment mismatch: 1 variable but env.GetConfig returns 2 values (typecheck) Suggested fix: Use two variables to capture both return values from 3. No go files to analyze:[Golang Lint (integration-tests/load)]Source of Error:
Suggested fix: Ensure that there are Go files in the 4. Cannot use cd.wsRPCs as []devenv.CribRPCs value in struct literal:[Golang Lint (integration-tests)]Source of Error:testsetups/ccip/test_helpers.go:658:15: cannot use cd.wsRPCs (variable of type []string) as []devenv.CribRPCs value in struct literal Suggested fix: Convert 5. Cannot use cd.httpRPCs as []devenv.CribRPCs value in struct literal:[Golang Lint (integration-tests)]Source of Error:testsetups/ccip/test_helpers.go:659:15: cannot use cd.httpRPCs (variable of type []string) as []devenv.CribRPCs value in struct literal (typecheck) Suggested fix: Convert 6. Declared and not used: ownerChainB:[Golang Lint (integration-tests)]Source of Error:integration-tests/smoke/ccip/ccip_usdc_test.go:52:2: declared and not used: ownerChainB (typecheck) Suggested fix: Remove the declaration of 7. Updates to go.mod needed; to update it:[Clean Go Tidy & Generate]Source of Error:
Suggested fix: Run AER Report: Operator UI CI ran successfully ✅ |
"sourceSelector": fmt.Sprintf("%d", src), | ||
"destinationSelector": fmt.Sprintf("%d", dst), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be easier to use names/chain id instead? Labelling by selector can create confusion as selector is a large number
|
||
func SendMetricsToLoki(l zerolog.Logger, lc *wasp.LokiClient, updatedLabels map[string]string, metrics *LokiMetric) { | ||
if err := lc.HandleStruct(wasp.LabelsMapToModel(updatedLabels), time.Now(), metrics); err != nil { | ||
l.Error().Err(err).Msg(ErrLokiPush) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you not want the test to fail if it fails to push?
|
||
return router.ClientEVM2AnyMessage{ | ||
Receiver: rcv, | ||
Data: common.Hex2Bytes("hello world"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about using some identifier here like msg with id to distinguish.
m.env.Chains[src].DeployerKey.Value = fee | ||
defer func() { m.env.Chains[src].DeployerKey.Value = nil }() | ||
} | ||
_, err = r.CcipSend( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you approving router to spend fee tokens in the beginning?
// Parse all events from the simulated chains, send to Loki | ||
// step 4: teardown | ||
// Stop the chains, cleanup the environment | ||
func TestCCIPLoad_RPS(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of code in this can be extracted to common functions. You might need more than one load test in future
1eee96f
to
2b94462
Compare
2b94462
to
4f21404
Compare
f4a9b8e
to
87eab87
Compare
87eab87
to
1ea5e2f
Compare
Quality Gate passedIssues Measures |
closing in favor of : #15954 |
https://smartcontract-it.atlassian.net/browse/CCIP-4107