Skip to content

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

Merged
sebastianst merged 4 commits intodevelopfrom
seb/fix/holocene-activation-test
Apr 14, 2026
Merged

fix(op-e2e): make Holocene activation proof test non-trivial#20023
sebastianst merged 4 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, holocene_frame_test, holocene_invalid_batch_test: when the derivation pipeline correctly drops invalid/disordered batches or frames, safe head stays at 0. These now skip the FPP with a log message rather than running a trivial proof. Rebatching was considered but rejected — it glosses over the problematic range and doesn't test the drop behavior.

Filed #20050 to track the proper fix: running the FPP over the genesis range and asserting derivation produces no new blocks.

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 (60d5703).
⚠️ Report is 20 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    49154   +49154     
- Misses           0    14899   +14899     
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.

Rebatching glosses over the invalid range and doesn't test that the
derivation pipeline correctly dropped the problematic data. Instead,
skip the FPP with a log message when safe head is at genesis, matching
the approach in holocene_invalid_batch_test.

Filed #20050 to track running the FPP and asserting no new blocks are
produced over the dropped range.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread op-e2e/actions/proofs/holocene_activation_test.go Outdated
Comment thread op-e2e/actions/proofs/holocene_frame_test.go
@sebastianst sebastianst enabled auto-merge April 14, 2026 12:06
@sebastianst sebastianst added this pull request to the merge queue Apr 14, 2026
Merged via the queue into develop with commit 2bfb52d Apr 14, 2026
139 checks passed
@sebastianst sebastianst deleted the seb/fix/holocene-activation-test branch April 14, 2026 13:36
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.

2 participants