Commit 354bf11
authored
test(e2e): relax post-boundary slot assertion in epochs_proof_at_boundary (#23108)
## Summary
Fixes flaky CI on `merge-train/spartan`
([run](https://github.com/AztecProtocol/aztec-packages/actions/runs/25570963690),
[log](http://ci.aztec-labs.com/1778262953204813)) where
`epochs_proof_at_boundary.parallel.test.ts > proof never lands so no
checkpoint submission is attempted` failed with:
```
expect(received).toBe(expected)
Expected: 31
Received: 32
> 312 | expect(Number(firstPostBoundary.slot)).toBe(Number(boundarySlot) + 1);
```
## Root cause
The assertion's inline comment explicitly acknowledges this is
*empirical*: whether the on-chain prune fires in-tx at `boundarySlot+1`
or only at `boundarySlot+2` depends on real-time L1 / proposer-rebuild
timing. In this run, slot 31's pipelined propose still failed
(`Rollup__InvalidArchive`) and slot 32 was the first slot where the
propose was accepted and the checkpoint published.
The merge-train head — #23098 (one-line log-context fix) — cannot
influence this timing. The flake originated from #23056
(`feat(sequencer): build optimistically across pruning epoch boundary`)
earlier in the same train.
## Fix
Relax `toBe(boundarySlot + 1)` → `toBeLessThanOrEqual(boundarySlot + 2)`
for both the no-parent and with-parent variants of "proof never lands".
The lower bound is already enforced by
`waitForFirstCheckpointAfterBoundary` filtering for `slot >
boundarySlot`. The test's intent (a checkpoint lands in the new epoch
shortly after the boundary) is preserved.
The other two boundary tests where the proof DOES land use
`checkpointNumber >= boundaryPublished.checkpoint`, not slot equality,
so they aren't affected.
Full analysis:
https://gist.github.com/AztecBot/b4010e694332cca93a51024915867e9a
## Test plan
CI on this PR. The container ClaudeBox runs in lacks docker / writeable
cache, so local `./bootstrap.sh ci` could not be executed.
ClaudeBox log: https://claudebox.work/s/d49b46d7e0cb49a6?run=11 parent a358573 commit 354bf11
1 file changed
Lines changed: 9 additions & 10 deletions
Lines changed: 9 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
311 | 310 | | |
312 | | - | |
| 311 | + | |
313 | 312 | | |
314 | 313 | | |
315 | 314 | | |
| |||
381 | 380 | | |
382 | 381 | | |
383 | 382 | | |
384 | | - | |
385 | | - | |
| 383 | + | |
| 384 | + | |
386 | 385 | | |
387 | | - | |
| 386 | + | |
388 | 387 | | |
389 | 388 | | |
0 commit comments