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-2645: Introducing leader lane and setting PriceReportingDisabled in Test #1120

Merged
merged 43 commits into from
Aug 5, 2024

Conversation

b-gopalswami
Copy link
Collaborator

@b-gopalswami b-gopalswami commented Jun 28, 2024

Motivation

This PR introduces leader lane feature. Setting leader lane will avoid duplicate gas price fetch for the same destination from different source chain. Here in this PR, the expectation is to add a test where leader lane is setup and verify every commitstore report transaction hash emitted two UsdPerUnitGasUpdated events.

Solution

Introduce config variable to enable leader lane setup and based on network pair, automatically define set of lanes as leader and non-leader lanes, track the tx hash from the event UsdPerUnitGasUpdated and ensure transaction count matches to the number of sources chain selector expected.

@b-gopalswami b-gopalswami marked this pull request as ready for review July 8, 2024 18:25
@b-gopalswami b-gopalswami requested review from a team and jasonmci as code owners July 8, 2024 18:25
Copy link
Collaborator

@anirudhwarrier anirudhwarrier left a comment

Choose a reason for hiding this comment

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

❌PANIC❌ TestSmokeCCIPForBidirectionalLane (0.00s) 
  ---❌ Error Found ❌---
  panic: test timed out after 30m0s 

Seems leader lane smoke test is failing here

@b-gopalswami b-gopalswami changed the title CCIP-2645: Introducing leader lane and setting PriceReportingDisabled CCIP-2645: Introducing leader lane and setting PriceReportingDisabled in Test Aug 2, 2024
integration-tests/ccip-tests/actions/ccip_helpers.go Outdated Show resolved Hide resolved
@@ -80,6 +85,7 @@ type CCIPTestConfig struct {
AllNetworks map[string]blockchain.EVMNetwork
SelectedNetworks []blockchain.EVMNetwork
NetworkPairs []NetworkPair
LeaderLanes []LeaderLane
Copy link
Contributor

Choose a reason for hiding this comment

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

Not for this PR, for future - There are actually a lot of common set up in TestGroupInput which we can extract to common.

integration-tests/ccip-tests/testsetups/ccip.go Outdated Show resolved Hide resolved
integration-tests/ccip-tests/testsetups/ccip.go Outdated Show resolved Hide resolved
integration-tests/ccip-tests/testsetups/ccip.go Outdated Show resolved Hide resolved
integration-tests/ccip-tests/testsetups/ccip.go Outdated Show resolved Hide resolved
integration-tests/ccip-tests/testsetups/ccip.go Outdated Show resolved Hide resolved
integration-tests/ccip-tests/testsetups/ccip.go Outdated Show resolved Hide resolved
integration-tests/ccip-tests/testsetups/ccip.go Outdated Show resolved Hide resolved
@cl-sonarqube-production
Copy link

Quality Gate failed Quality Gate failed

Failed conditions
3.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube

@b-gopalswami b-gopalswami merged commit a9ba0a9 into ccip-develop Aug 5, 2024
108 of 109 checks passed
@b-gopalswami b-gopalswami deleted the ccip-2645 branch August 5, 2024 19:30
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.

4 participants