Commit b6eab01
authored
test: drop event_logs from compat matrix and loosen avm_simulator assertion regex (#23193)
## Summary
Compat-e2e regressed on `v4.3.0-nightly.20260512-1`
(https://github.com/AztecProtocol/aztec-packages/actions/runs/25731562906).
After review with Jan and David, the two failing tests need different
treatments — the PXE error enrichment itself is *not* broken; this is
purely test-vs-old-artifact text drift.
## What this PR does
- **`e2e_event_logs.test.ts`**: drop from the compat-e2e matrix. The new
`tagging cache reconciliation against kernel squashing` test added in PR
#23044 calls `TestLog::deliver_squashed_and_surviving_notes`, a method
that does not exist in legacy 4.2.x artifacts. There is no reasonable
backwards-compat coverage here without backporting the contract method
itself.
- **`e2e_avm_simulator.test.ts`**: keep it in the compat-e2e matrix and
loosen the assertion-message regex to accept either the older or the
newer assertion-span form:
- old (pre-#22911 nargo): `'not_true == true'`
- new (post-#22911 nargo): `'assert(not_true == true, "This assertion
should fail!")'`
The regex becomes `/Assertion failed: This assertion should
fail!.*not_true == true/`, which matches both shapes and still rejects
unrelated assertions. The test continues to validate the PXE's
public-error enrichment pipeline (assertion decode + opcode→source
resolution) against legacy artifacts — which is the actually-valuable
coverage David flagged in the team-fairies thread.
## Why not exclude `avm_simulator` too?
David pointed out that this case is the only public-error-enrichment
test we have, and the enrichment code path is genuinely worth keeping
under compat watch. Verified manually that enrichment runs correctly
against legacy 4.2.x artifacts (paths, line/col, function names,
assertion message all resolve); the only thing that differed was the
locationText span granularity that nargo bakes into the artifact at
compile time. Loosening the regex preserves the coverage without
breaking on the legacy span shape.
## Test plan
- `node -e '/Assertion failed: This assertion should fail!.*not_true ==
true/.test(…)'` matches both old and new forms, rejects unrelated
assertions.
- `bash -c 'shopt -s extglob; ls
src/e2e_!(block_building|prover_*|kernelless_simulation|event_logs).test.ts'`
from `yarn-project/end-to-end` resolves to 49 files (was 48 when
`avm_simulator` was also excluded), `event_logs` correctly absent.
- Compat-e2e is `continue-on-error` for nightlies — next nightly should
be green on `ci-compat-e2e` once this lands.
A forward-port of the regex loosening to `next` is also worthwhile (same
file, identical strict regex there today), but mainline `next` doesn't
run compat-e2e so it isn't blocking; can ship as a follow-up.2 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
265 | 267 | | |
266 | 268 | | |
267 | 269 | | |
| |||
271 | 273 | | |
272 | 274 | | |
273 | 275 | | |
274 | | - | |
| 276 | + | |
275 | 277 | | |
276 | 278 | | |
277 | 279 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
66 | | - | |
67 | | - | |
68 | | - | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
0 commit comments