test: aggregate e2e circuit tests#1286
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThis PR refactors the PK circuit proof generation pipeline to use a structured Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@crates/zk-prover/tests/local_e2e_tests.rs`:
- Around line 104-132: Currently setup_pk_generation_test hides
sample-generation errors by converting generate_sample(...).ok()? into None,
which gets reported as "bb not found"; change the control flow so
find_bb().await? still returns early only when the binary is missing, but call
PkGenerationCircuitInput::generate_sample(preset, committee) and propagate or
assert its Result (e.g., using ? on a Result-returning function or .expect with
a clear message) so failures surface as test errors; apply the same change to
setup_pk_bfv_test (handle PkBfvCircuitInput sample generation explicitly instead
of .ok()?) and keep existing find_bb, setup_test_prover and
setup_circuit_fixtures usage unchanged.
Summary by CodeRabbit
Refactor
Tests
Chores