Skip to content

fix: update MAX_EVENT_SERIALIZATION_LENGTH and re-enable TXE tests in CI#21020

Merged
nventuro merged 1 commit intonextfrom
claudebox/7a1d8c5993720a62-1
Mar 3, 2026
Merged

fix: update MAX_EVENT_SERIALIZATION_LENGTH and re-enable TXE tests in CI#21020
nventuro merged 1 commit intonextfrom
claudebox/7a1d8c5993720a62-1

Conversation

@AztecBot
Copy link
Collaborator

@AztecBot AztecBot commented Mar 2, 2026

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

@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 2, 2026
@nventuro nventuro changed the base branch from backport-to-v4-staging to v4 March 3, 2026 00:17
@nventuro nventuro marked this pull request as ready for review March 3, 2026 00:17
@nventuro nventuro changed the base branch from v4 to next March 3, 2026 00:18
@nventuro nventuro changed the base branch from next to backport-to-v4-staging March 3, 2026 00:18
@AztecBot AztecBot changed the title fix: update MAX_EVENT_SERIALIZATION_LENGTH to match TXE MAX_EVENT_LEN fix: update MAX_EVENT_SERIALIZATION_LENGTH and re-enable TXE tests in CI Mar 3, 2026
@AztecBot AztecBot changed the base branch from backport-to-v4-staging to next March 3, 2026 00:25
@AztecBot AztecBot force-pushed the claudebox/7a1d8c5993720a62-1 branch from a94ec8e to 47461a3 Compare March 3, 2026 00:25
@AztecBot AztecBot requested a review from a team as a code owner March 3, 2026 00:25
@nventuro nventuro enabled auto-merge March 3, 2026 00:29
@ludamad ludamad self-requested a review March 3, 2026 00:38
## 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 force-pushed the claudebox/7a1d8c5993720a62-1 branch from 459b417 to 8b9cd38 Compare March 3, 2026 01:18
@nventuro nventuro added this pull request to the merge queue Mar 3, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 3, 2026
@nventuro nventuro added this pull request to the merge queue Mar 3, 2026
@AztecBot
Copy link
Collaborator Author

AztecBot commented Mar 3, 2026

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/b890a074519b7109�b890a074519b71098;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_epochs/epochs_invalidate_block.parallel.test.ts "proposer invalidates previous block with shuffled attestations" (159s) (code: 0) group:e2e-p2p-epoch-flakes

Merged via the queue into next with commit 21ffcd8 Mar 3, 2026
20 checks passed
@nventuro nventuro deleted the claudebox/7a1d8c5993720a62-1 branch March 3, 2026 02:32
@AztecBot
Copy link
Collaborator Author

AztecBot commented Mar 3, 2026

❌ Failed to cherry-pick to v4 due to conflicts. Dispatching ClaudeBox to resolve. View backport run.

AztecBot pushed a commit that referenced this pull request Mar 3, 2026
… 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)
ludamad pushed a commit that referenced this pull request Mar 3, 2026
… CI (backport #21020) (#21027)

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-v4 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