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

e2e/system: add test for the batcher recovering from an L2 chain rewind #13386

Closed
wants to merge 3 commits into from

Conversation

geoknee
Copy link
Contributor

@geoknee geoknee commented Dec 13, 2024

Closes #13355 .

I just found #5168, which underlines what a perennial issue batcher testing is.

This PR does not try to be a comprehensive approach to that general problem, but just adds a very simple test which would have caught a recent batcher bug, and mirrors some manual kurtosis testing we have been doing #13192.

An extension would be to rewind the l1 chain and check the batcher can recover from that.

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.18%. Comparing base (8bf7ff6) to head (9372aa7).
Report is 155 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #13386      +/-   ##
===========================================
- Coverage    47.36%   47.18%   -0.18%     
===========================================
  Files          939      939              
  Lines        78469    78469              
  Branches       796      796              
===========================================
- Hits         37168    37029     -139     
- Misses       38526    38665     +139     
  Partials      2775     2775              
Flag Coverage Δ
cannon-go-tests-32 62.23% <ø> (-1.98%) ⬇️
cannon-go-tests-64 57.20% <ø> (-1.63%) ⬇️
contracts-bedrock-tests 91.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 23 files with indirect coverage changes

Comment on lines +36 to +37
// Wait for the intervention to take effect
time.Sleep(time.Second * 5)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't love this wait, here -- appreciate any suggestions on how to make this more event-driven.

@geoknee geoknee added this to the Holocene: Batcher release milestone Dec 16, 2024
@geoknee geoknee changed the title e2e/system: at test for the batcher recovering from an L2 chain rewind e2e/system: add test for the batcher recovering from an L2 chain rewind Jan 9, 2025
@sebastianst sebastianst added the A-op-batcher Area: op-batcher label Jan 13, 2025
@sebastianst sebastianst removed this from the Holocene: Batcher release milestone Jan 13, 2025
@geoknee geoknee closed this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-batcher Area: op-batcher
Projects
None yet
Development

Successfully merging this pull request may close these issues.

op-e2e/system: add a test for the batcher which reorgs the sequencer
2 participants