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-5117] integration-tests/smoke/ccip: factor out fee test helpers #16496

Merged
merged 3 commits into from
Feb 21, 2025

Conversation

makramkd
Copy link
Contributor

Factor out the CCIP fees test cases and runners into a separate package so we can run the same test cases from CLD.

Requires

N/A

Supports

N/A

@@ -21,7 +21,7 @@ runner-test-matrix:
runs_on: ubuntu-latest
triggers:
- PR Integration CCIP Tests
test_cmd: cd integration-tests/smoke/ccip && go test ccip_fees_test.go -timeout 12m -test.parallel=2 -count=1 -json
test_cmd: cd integration-tests/smoke/ccip && go test ccip_fees_test.go -timeout 20m -test.parallel=2 -count=1 -json
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was taking really long on my PC but I think there's an issue w/ my PC. Anyway, doesn't hurt to bump, will revisit this once we drop round times significantly and make the tests faster.

assertExecution bool
}

func RunFeeTokenTestCase(tc FeeTokenTestCase) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code is basically copy/paste of what was in ccip_fees_test.go, just made public and moved to deployment so we can use it in CLD

Comment on lines -227 to +224
blockNum, err := e.Chains[cfg.SourceChain].Confirm(tx)
blockNum, err := deployment.ConfirmIfNoErrorWithABI(e.Chains[cfg.SourceChain], tx, router.RouterABI, err)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prints out revert reason, useful

src: sourceChain,
env: tenv,
tokenAmounts: []router.ClientEVMTokenAmount{
feestest.RunFeeTokenTestCase(feestest.NewFeeTokenTestCase(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No real changes here, just uses the new API.

@makramkd makramkd marked this pull request as ready for review February 21, 2025 09:41
@makramkd makramkd requested review from a team as code owners February 21, 2025 09:41
@makramkd makramkd added this pull request to the merge queue Feb 21, 2025
Merged via the queue into develop with commit c23f77c Feb 21, 2025
184 checks passed
@makramkd makramkd deleted the mk/CCIP-5117 branch February 21, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants