Skip to content

fix: wrap debug pairing point checks in try-catch to fix nightly debug build#22518

Closed
AztecBot wants to merge 1 commit into
nextfrom
claudebox/fix-bb-debug-pairing-check
Closed

fix: wrap debug pairing point checks in try-catch to fix nightly debug build#22518
AztecBot wants to merge 1 commit into
nextfrom
claudebox/fix-bb-debug-pairing-check

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

Summary

Fixes the recurring nightly barretenberg debug build failure (ChonkRecursionConstraintTest.GenerateRecursiveChonkVerifierVKFromConstraints).

The debug-only #ifndef NDEBUG native pairing point validation in stdlib PairingPoints constructor and aggregate() throws when witness values are zero-initialized (e.g. during VK generation with dummy data). The native PairingPoints::check() calls reduced_ate_pairing_batch_precomputed which aborts on off-curve points. In release builds this check is compiled out entirely.

Wraps the debug checks in try-catch so they log the skip instead of crashing. This is purely a debug diagnostic — it has no effect on release builds or correctness.

Supersedes stale draft #22040 which had the same fix but was never merged.

Verification

  • ChonkRecursionConstraintTest.GenerateRecursiveChonkVerifierVKFromConstraints — was FAILING, now PASSES
  • ChonkTests.Basic — passes
  • All 15 bbapi_tests — pass

ClaudeBox log: https://claudebox.work/s/b49977e223d36b24?run=1

…g build

The debug-only (#ifndef NDEBUG) native pairing point validation in
stdlib PairingPoints constructor and aggregate() throws when witness
values are zero-initialized (e.g. during VK generation with dummy
data). The native check calls reduced_ate_pairing_batch_precomputed
which aborts on off-curve points.

Wraps the debug checks in try-catch so they log the skip instead of
crashing. This only affects debug builds; release builds are unchanged.
@AztecBot AztecBot added ci-draft Run CI on draft PRs. claudebox Owned by claudebox. it can push to this PR. labels Apr 14, 2026
@AztecBot
Copy link
Copy Markdown
Collaborator Author

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/72298b85b483130a�72298b85b483130a8;;�):  yarn-project/end-to-end/scripts/run_test.sh simple src/e2e_epochs/epochs_mbps_redistribution.test.ts (203s) (code: 0) group:e2e-p2p-epoch-flakes

@AztecBot
Copy link
Copy Markdown
Collaborator Author

Automatically closing this stale claudebox draft PR (no updates for 5+ days). Re-open if still needed.

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.

1 participant