-
Notifications
You must be signed in to change notification settings - Fork 179
Build/poland reg #1290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build/poland reg #1290
Conversation
WalkthroughTwo build scripts are updated to register a new circuit identifier Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
circuits/scripts/build/build_cpp.sh(1 hunks)circuits/scripts/build/build_single_circuit.sh(1 hunks)
🔇 Additional comments (1)
circuits/scripts/build/build_single_circuit.sh (1)
108-109: Approve code change: circuit instance file verified
The filecircuits/circuits/register_id/instances/register_id_sha512_sha512_sha256_rsapss_65537_32_2048.circomexists and the addition is correct.
| "register_id_sha512_sha512_sha256_rsapss_65537_32_2048:true" | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enablement looks good; fix silent-failure risk in parallel build.
With more enabled circuits, a failed compile still yields “All circuits compiled successfully!” because only the last wait’s status is surfaced. Make the script fail fast if any job fails.
Apply this change near the end to aggregate exit codes:
-echo "Waiting for all circuits to compile..."
-wait "${pids[@]}"
-echo "All circuits compiled successfully!"
+echo "Waiting for all circuits to compile..."
+failures=0
+for pid in "${pids[@]}"; do
+ if ! wait "$pid"; then
+ echo "❌ Compile process $pid failed"
+ failures=$((failures+1))
+ fi
+done
+if (( failures > 0 )); then
+ echo "❌ $failures circuit(s) failed to compile"
+ exit 1
+fi
+echo "✅ All circuits compiled successfully!"Committable suggestion skipped: line range outside the PR's diff.
🤖 Prompt for AI Agents
In circuits/scripts/build/build_cpp.sh around lines 72-73, the script starts
parallel compile jobs but only checks the last wait status, causing a false "All
circuits compiled successfully!" when earlier jobs fail; modify the end to
record PIDs of all background jobs, loop over them calling wait PID and collect
each exit code, and if any wait returns non-zero exit immediately (or after
aggregating) with a non-zero exit status and do not print the success message;
optionally add a trap to kill child jobs on early exit.
|
🇵🇱 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Summary by CodeRabbit