Skip to content

fix: update MAX_EVENT_SERIALIZATION_LENGTH and re-enable TXE tests in CI (backport #21020)#21027

Merged
ludamad merged 1 commit intobackport-to-v4-stagingfrom
claudebox/ed670f8e16fb711b-1
Mar 3, 2026
Merged

fix: update MAX_EVENT_SERIALIZATION_LENGTH and re-enable TXE tests in CI (backport #21020)#21027
ludamad merged 1 commit intobackport-to-v4-stagingfrom
claudebox/ed670f8e16fb711b-1

Conversation

@AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Mar 3, 2026

Backport of #21020 to v4.

Cherry-pick applied cleanly — no conflicts.

Summary

Two fixes:

1. Fix MAX_EVENT_SERIALIZATION_LENGTH mismatch

PR #20840 changed MAX_EVENT_LEN from 12 to 10 in yarn-project/txe/src/rpc_translator.ts but forgot to update the corresponding Noir constant MAX_EVENT_SERIALIZATION_LENGTH in txe_oracles.nr. This caused the TXE oracle to return 10 * 5 = 50 fields while the Noir oracle declaration expected 12 * 5 = 60 fields, crashing the emit_and_discover_event test.

2. Re-enable TXE-dependent noir tests in CI

The build_and_test function in bootstrap.sh had a guard that only ran TXE tests when no argument was passed, but CI always calls build_and_test fast or build_and_test full. This fix removes the conditional so TXE tests run in all CI modes.

ClaudeBox log: http://ci.aztec-labs.com/ed670f8e16fb711b-1

… CI (#21020)

## Summary

Two fixes:

### 1. Fix `MAX_EVENT_SERIALIZATION_LENGTH` mismatch (fixes backport CI
failure)

#20840 changed
`MAX_EVENT_LEN` from 12 to 10 in
`yarn-project/txe/src/rpc_translator.ts` but forgot to update the
corresponding Noir constant `MAX_EVENT_SERIALIZATION_LENGTH` in
`txe_oracles.nr`. This caused the TXE oracle to return `10 * 5 = 50`
fields while the Noir oracle declaration expected `12 * 5 = 60` fields,
crashing the `emit_and_discover_event` test.

### 2. Re-enable TXE-dependent noir tests in CI

Since Feb 24, all TXE-dependent noir tests (`noir-projects-txe-tests`)
have been silently disabled in CI. The `build_and_test` function in
`bootstrap.sh` has a guard `if [ -z "${1:-}" ]` that only runs TXE tests
when no argument is passed, but CI always calls `build_and_test fast` or
`build_and_test full`. This means the TXE tests only ran in local dev
(no args) but never in CI.

This fix removes the conditional so TXE tests run in all CI modes
(ci-fast, ci-full, ci-full-no-test-cache).

[ClaudeBox log](http://ci.aztec-labs.com/7a1d8c5993720a62-5)
@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 3, 2026
@ludamad ludamad changed the base branch from v4 to backport-to-v4-staging March 3, 2026 03:13
@ludamad ludamad marked this pull request as ready for review March 3, 2026 03:21
@ludamad ludamad requested a review from nventuro as a code owner March 3, 2026 03:21
@ludamad ludamad merged commit b7f2353 into backport-to-v4-staging Mar 3, 2026
18 of 21 checks passed
@ludamad ludamad deleted the claudebox/ed670f8e16fb711b-1 branch March 3, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants