Skip to content

fix: disable max capacity test in debug + tiny gate separator improvements#22215

Merged
iakovenkos merged 1 commit into
merge-train/barretenbergfrom
si/debug-fix-plus-challenges
Apr 1, 2026
Merged

fix: disable max capacity test in debug + tiny gate separator improvements#22215
iakovenkos merged 1 commit into
merge-train/barretenbergfrom
si/debug-fix-plus-challenges

Conversation

@iakovenkos

Copy link
Copy Markdown
Contributor
  • Max chonk capacity test is very heavy, and running it in nightly debug is not really needed
  • Noticed that we're still using log_n independent challenges for eccvm, translator, and batched honk-translator, switched to using dyadic power of a single challenge, as it's done elsewhere
  • Noticed that previously introduced a redundnt gate separator in the batched flow - MegaZK sumcheck path can re-use translator's gate separator

GateSeparatorPolynomial<FF> translator_gate_sep(gate_challenges, JOINT_LOG_N);
// Single gate separator for both circuits: beta_products has size 2^JOINT_LOG_N which covers
// both the MegaZK real rounds (2^mega_zk_log_n) and translator rounds (2^JOINT_LOG_N).
GateSeparatorPolynomial<FF> gate_sep(gate_challenges, JOINT_LOG_N);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more of a clean up than an opt tbh

Comment thread barretenberg/cpp/src/barretenberg/chonk/chonk.test.cpp
@iakovenkos iakovenkos self-assigned this Apr 1, 2026

@federicobarbacovi federicobarbacovi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for this!

@iakovenkos iakovenkos merged commit e845244 into merge-train/barretenberg Apr 1, 2026
12 checks passed
@iakovenkos iakovenkos deleted the si/debug-fix-plus-challenges branch April 1, 2026 15:35
AztecBot added a commit that referenced this pull request Apr 2, 2026
The MaxCapacityPassing test accumulates 17 app circuits and is
extremely heavy. In debug builds (nightly debug CI), it causes
OOM/timeout failures. This test is only meaningful in release builds.

Mirrors the fix from PR #22215 which is in merge-train/barretenberg
but hasn't reached next yet.
github-merge-queue Bot pushed a commit that referenced this pull request Apr 2, 2026
BEGIN_COMMIT_OVERRIDE
fix: verify accumulated pairing points in native ChonkVerifier (#22224)
chore: enable _GLIBCXX_DEBUG in debug build presets (#22218)
feat: add --memory_profile_out flag for Chonk memory profiling (#22145)
fix: disable max capacity test in debug + tiny gate separator
improvements (#22215)
fix: WASM build for memory_profile.cpp (#22231)
fix: translator audit fixes (#22242)
fix: remove constexpr from functions using std::vector for
_GLIBCXX_DEBUG compat (#22239)
fix: pippenger edge case (#22256)
fix: avoid dereferencing past-the-end vector iterators in serialize.hpp
(#22261)
chore: crypto primitives external audit response 0 (#22263)
feat: switch memory profiling from peak RSS to live heap usage (#22266)
fix: replace UB end-iterator dereference in serialize.hpp (#22262)
fix: catch exceptions in ChonkBatchVerifier::batch_check (#22270)
END_COMMIT_OVERRIDE
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