Skip to content

test: drop event_logs from compat matrix and loosen avm_simulator assertion regex#23193

Merged
benesjan merged 3 commits into
backport-to-v4-next-stagingfrom
claudebox/drop-compat-e2e-flaky-tests
May 12, 2026
Merged

test: drop event_logs from compat matrix and loosen avm_simulator assertion regex#23193
benesjan merged 3 commits into
backport-to-v4-next-stagingfrom
claudebox/drop-compat-e2e-flaky-tests

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

@AztecBot AztecBot commented May 12, 2026

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 fix: dropped tagging indices no longer cause a pxe crash on sync #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:

    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.

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels May 12, 2026
@benesjan benesjan marked this pull request as ready for review May 12, 2026 13:47
benesjan
benesjan previously approved these changes May 12, 2026
@benesjan benesjan added the ci-compat-e2e Checks that contracts compiled in older stable versions still work on current stack. label May 12, 2026
@benesjan benesjan dismissed their stale review May 12, 2026 14:03

Looks like just removing e2e_avm_simulator from tests was incorrect as it seems like a real issue with error enriching

Accept either 'not_true == true' (older nargo) or
'assert(not_true == true, "This assertion should fail!")' (post-#22911)
in the public-error enrichment test. Drops the avm_simulator exclusion
from compat_test_cmds added in the prior commit; only event_logs remains
excluded (legacy artifacts don't have deliver_squashed_and_surviving_notes).
@AztecBot AztecBot changed the title test: drop e2e_event_logs and e2e_avm_simulator from compat matrix test: drop event_logs from compat matrix and loosen avm_simulator assertion regex May 12, 2026
@dbanks12 dbanks12 requested a review from benesjan May 12, 2026 15:37
@benesjan benesjan merged commit b6eab01 into backport-to-v4-next-staging May 12, 2026
11 checks passed
@benesjan benesjan deleted the claudebox/drop-compat-e2e-flaky-tests branch May 12, 2026 18:33
AztecBot added a commit that referenced this pull request May 13, 2026
BEGIN_COMMIT_OVERRIDE
chore: kv store test fully on vitest (#23096)
chore: backport kv-store vitest migration (#23096) to v4-next (#23185)
test: add noir tests for get_note_hash_membership_witness (#23190)
fix(aztec-up): explicit exit in CLI acceptance test harness (#23200)
refactor(pxe): batch nullifier sync across scopes (#23129)
refactor(pxe): backport batch nullifier sync across scopes (#23129) to
v4-next (#23208)
fix(ci): revert ci-compat-e2e to AWS access keys (#23211)
test: drop event_logs from compat matrix and loosen avm_simulator
assertion regex (#23193)
fix(aztec-up): install manifest-pinned Node version instead of LTS
(#23201)
fix(ci): move CLI acceptance test timeout from job to step (#23205)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-compat-e2e Checks that contracts compiled in older stable versions still work on current stack. ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants