Skip to content

fix(op-e2e): make Holocene activation proof test non-trivial#20023

Open
sebastianst wants to merge 2 commits intodevelopfrom
seb/fix/holocene-activation-test
Open

fix(op-e2e): make Holocene activation proof test non-trivial#20023
sebastianst wants to merge 2 commits intodevelopfrom
seb/fix/holocene-activation-test

Conversation

@sebastianst
Copy link
Copy Markdown
Member

@sebastianst sebastianst commented Apr 10, 2026

Summary

Several Holocene proof action tests were running RunFaultProofProgram trivially on the genesis block (block 0), giving no real proof coverage:

  • holocene_activation_test: RunFaultProofProgramFromGenesis called with safe head at 0. Now batch-mines past the activation boundary and runs RunFaultProofProgram on block 14 (the Holocene activation block).
  • holocene_batches_test and holocene_frame_test: disordered batch/frame cases dropped the channel, leaving safe head at 0. Now builds a new block and rebatches so the proof runs on a non-trivial safe head.
  • holocene_invalid_batch_test: had a > 0 guard that silently skipped the proof. Now logs a message explaining why the proof is skipped (blocks have intentionally invalid contents that can't be rebatched), while tests with safe head > 0 run the proof as before.

Test plan

  • Test_ProgramAction_HoloceneActivation — both subtests pass
  • Test_ProgramAction_HoloceneBatches — all subtests pass (20/20)
  • Test_ProgramAction_HoloceneFrames — all subtests pass (16/16)
  • Test_ProgramAction_HoloceneInvalidBatch — all subtests pass (24/24)

🤖 Generated with Claude Code

The test was running RunFaultProofProgramFromGenesis with safe head at
block 0, making the proof trivially pass over genesis. Now batch-mines
and syncs past the activation boundary so the proof runs over the actual
Holocene activation block (block 14).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sebastianst sebastianst requested a review from a team as a code owner April 10, 2026 16:06
Fix holocene_batches_test and holocene_frame_test: when disordered
batches/frames cause the channel to be dropped (safe head = 0), build a
new block and rebatch so the FPP runs on a non-trivial safe head.

For holocene_invalid_batch_test, the blocks themselves have intentionally
invalid contents (over-advanced L1 origin, sequencer drift breach), so
rebatching them produces the same invalid result. In those cases, skip
the proof with a log message. The Holocene variants of these tests
advance the safe head and do run the proof.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.7%. Comparing base (81a4f8d) to head (d6985df).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #20023      +/-   ##
===========================================
+ Coverage         0    76.7%   +76.7%     
===========================================
  Files            0      505     +505     
  Lines            0    64053   +64053     
===========================================
+ Hits             0    49150   +49150     
- Misses           0    14903   +14903     
Flag Coverage Δ
unit 76.7% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 505 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant