Skip to content

fix: skip MsgpackRejectsNonCanonical test in WASM builds#22335

Merged
iakovenkos merged 1 commit into
merge-train/barretenbergfrom
claudebox/e5146dc92fea29dd-3
Apr 6, 2026
Merged

fix: skip MsgpackRejectsNonCanonical test in WASM builds#22335
iakovenkos merged 1 commit into
merge-train/barretenbergfrom
claudebox/e5146dc92fea29dd-3

Conversation

@AztecBot

@AztecBot AztecBot commented Apr 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes WASM CI failure for PrimeFieldTest/0.MsgpackRejectsNonCanonical in ecc_tests.

WASM builds define BB_NO_EXCEPTIONS, which makes throw_or_abort() call abort() instead of throwing std::runtime_error. The test uses EXPECT_THROW which cannot catch an abort — the WASM process crashes with wasm trap: unreachable.

Wraps the test with #ifndef BB_NO_EXCEPTIONS and adds a GTEST_SKIP() fallback, matching the existing pattern in c_bind_exception.test.cpp.

Test plan

  • ecc_tests --gtest_filter=*MsgpackRejectsNonCanonical* — all 6 field types pass on native build

ClaudeBox log: https://claudebox.work/s/e5146dc92fea29dd?run=3

@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Apr 6, 2026
@iakovenkos iakovenkos marked this pull request as ready for review April 6, 2026 17:53
@iakovenkos iakovenkos requested review from iakovenkos April 6, 2026 18:39
@iakovenkos iakovenkos merged commit 682e928 into merge-train/barretenberg Apr 6, 2026
51 of 55 checks passed
@iakovenkos iakovenkos deleted the claudebox/e5146dc92fea29dd-3 branch April 6, 2026 18:40
github-merge-queue Bot pushed a commit that referenced this pull request Apr 6, 2026
BEGIN_COMMIT_OVERRIDE
fix: reject VK with log_circuit_size=0 in UltraKeccak verifier (#22319)
chore: merkle tree audit 2 (#21475)
fix: graceful failures in verifier code paths + other fixes (#22311)
fix: Fr::from_u64 big-endian encoding to match C++ msgpack format
(#22233)
fix: corrupt low-order bytes in batch verifier test to avoid
non-canonical field encoding (#22333)
fix: skip MsgpackRejectsNonCanonical test in WASM builds (#22335)
END_COMMIT_OVERRIDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants