Skip to content

fix(ci): run contract-snapshots tests in CI#23895

Merged
vezenovm merged 6 commits into
merge-train/fairies-v5from
mv/run-contract-snapshots-in-ci
Jun 5, 2026
Merged

fix(ci): run contract-snapshots tests in CI#23895
vezenovm merged 6 commits into
merge-train/fairies-v5from
mv/run-contract-snapshots-in-ci

Conversation

@vezenovm

@vezenovm vezenovm commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

The gap

This draft exists just so display the first half of a red-green flow. We should merge the child PR #23896 into this one before merging.

The contract-snapshots suite (added in #23061) has never run in CI. It was wired only into the noir-projects/bootstrap.sh test_cmds aggregate, but the Makefile-driven CI never invokes parent aggregates: it calls each subproject's test_cmds directly (noir-protocol-circuits-tests in fast, noir-projects-txe-tests post-build). The aggregate is a local-dev entry point only.

Consequences so far:

The fix

  • New contract-snapshots-tests Makefile target (mirrors noir-protocol-circuits-tests, depends only on noir for the nargo binary), included in fast.
  • Comment on the bootstrap aggregate marking it local-dev only, so the next suite added there also gets a Makefile target.

Expected CI result

This PR is intentionally red: the newly wired suite fails with the 14 drifted snapshots, demonstrating the gap. A follow-up PR targeting this branch regenerates the snapshots and turns it green. Merge order: regen PR into this branch, then this branch into the train.

Draft with ci-draft label so CI runs while merge automation stays off until the regen lands.

The contract-snapshots suite (added in #23061) was only wired into the
noir-projects/bootstrap.sh test_cmds aggregate, which nothing in the
Makefile-driven CI invokes, so the suite has never run in CI. This let
the noir 1.0.0-beta.22 bump (#23870) land green with stale snapshots,
and aztec-nr changes since #23464 have drifted the snapshots unnoticed:
14 of 61 tests currently fail on this branch with its own pinned nargo.

Wire the suite in as its own Makefile target (mirroring
noir-protocol-circuits-tests), add it to the fast target, and mark the
bootstrap aggregate as local-dev only.
@vezenovm vezenovm requested review from Thunkar, mverzilli and nchamo June 5, 2026 15:17
Green half of the demo for #23895.

The committed snapshots had drifted from aztec-nr changes landed since
the last regen in #23464, unnoticed because CI never ran the suite.
Regenerated with the branch's pinned nargo (1.0.0-beta.21+f1a4575a); all
61 tests pass locally.

With the CI wiring from #23895 included in this branch, the
contract-snapshots suite runs in CI here and should be green, in
contrast to the red run on #23895 itself.

Merge order: this PR into `mv/run-contract-snapshots-in-ci`, then #23895
into `merge-train/fairies-v5`.

Note: #23878 (regen for the beta.22 bump) stays parked as draft, since
the bump was reverted on v5-next in 9e53e1f.

---

Update: the beta.22 bump is back on the train via #23886, so this branch
now regenerates against 1.0.0-beta.22 with two more commits:

- chore: scrub macro-source line numbers in contract failure snapshots.
Locations inside the aztec-nr macro sources (call stack `at` lines and
code frame gutter numbers under `<repo>` headers) are scrubbed to
`<line>`/`<col>` markers, like the existing `<repo>` path marker. Macro
edits previously churned every compile_failure snapshot with pure line
number diffs (see `authorize_once_from_wrong_type` in #23878 for an
example). Locations in the test program itself and in the stdlib are
kept. Resolves
#23878 (comment)
- chore: regenerate expand snapshots for noir 1.0.0-beta.22. `nargo
expand` output changed with the bump.

All 61 tests pass locally with the branch's pinned nargo
(1.0.0-beta.22).

---------

Co-authored-by: AztecBot <tech@aztec-labs.com>
@vezenovm vezenovm marked this pull request as ready for review June 5, 2026 15:39
@vezenovm vezenovm removed the ci-draft Run CI on draft PRs. label Jun 5, 2026
@vezenovm vezenovm added the claudebox Owned by claudebox. it can push to this PR. label Jun 5, 2026
- invalid_event stderr trace: messages/message_delivery.nr -> messages/delivery/mod.nr (leftover from #23875)
- 5 expand snaps: insta header format bump (legacy -> current), no content change
@AztecBot AztecBot added the ci-draft Run CI on draft PRs. label Jun 5, 2026
@vezenovm vezenovm enabled auto-merge (squash) June 5, 2026 16:20
@vezenovm vezenovm removed ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Jun 5, 2026
@AztecBot

AztecBot commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

Flakey Tests

🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry.

\033FLAKED\033 (8;;http://ci.aztec-labs.com/af727f778b806eb3�af727f778b806eb38;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_p2p/multiple_validators_sentinel.parallel.test.ts "collects attestations for validators in proposer node when block is not published" (476s) (code: 0) group:e2e-p2p-epoch-flakes

@vezenovm vezenovm merged commit 0e9c60e into merge-train/fairies-v5 Jun 5, 2026
14 checks passed
@vezenovm vezenovm deleted the mv/run-contract-snapshots-in-ci branch June 5, 2026 16:33
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.

3 participants