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

Add upgrade test #2086

Merged
merged 12 commits into from
Oct 9, 2024
Merged

Add upgrade test #2086

merged 12 commits into from
Oct 9, 2024

Conversation

tbro
Copy link
Contributor

@tbro tbro commented Sep 30, 2024

Closes #2053 and #2055

This PR:

Add integration test for upgrades. Collect multiple sequencer streams into one stream and and assert version in the headers. First few blocks are asserted to be base version. Then we check that all the sequencers are upgraded within a timeout period. Currently we only check 2 sequencers, since that is how many have the API enabled currently. The same test can be run against any consecutive base/upgrade version pairs.

  • factor common logic to module
  • add sequencer version env var for setting version to be tested
  • get builder address from API (instead of hard coding)
  • small change to SequencerClient to avoid requiring generics

@sveitser sveitser linked an issue Oct 1, 2024 that may be closed by this pull request
@tbro tbro added the T-test Type: tests improvements label Oct 2, 2024
@tbro tbro force-pushed the tb/testing/upgrades branch from 6a8cd1f to f654031 Compare October 2, 2024 15:01
tests/upgrades.rs Outdated Show resolved Hide resolved
break;
}

if header.height() > SEQUENCER_BLOCKS_TIMEOUT {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we also check that we are producing blocks after the upgrade is successful

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tbro tbro force-pushed the tb/testing/upgrades branch 2 times, most recently from 2bf8dbc to 37f7d17 Compare October 8, 2024 22:42
tbro added 12 commits October 9, 2024 13:15
Add integration test for upgrades. Collect multiple sequencer streams
into one stream and and assert version in the headers. First few
blocks are asserted to be base version. Then we check that all the
sequencers are upgrade within a timeout period. Currently we only
check 2 sequencers, since that is how many have the API enabled
currently. The same test can be run against any consecutive
base/upgrade version pairs.

  * factor common logic to module
  * add sequencer version env var to setting version to be tested
  * get builder address from API (instead of hard coding)
@tbro tbro force-pushed the tb/testing/upgrades branch from 37f7d17 to 504de74 Compare October 9, 2024 19:20
@tbro tbro merged commit b03b9fb into main Oct 9, 2024
16 checks passed
@tbro tbro deleted the tb/testing/upgrades branch October 9, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-test Type: tests improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get builder address from API in tests Add upgrade integration test
2 participants