-
Notifications
You must be signed in to change notification settings - Fork 185
Custom build circuit #1242
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
Custom build circuit #1242
Conversation
WalkthroughAdds a Changes
Sequence Diagram(s)sequenceDiagram
actor Dev as Developer
participant GH as GitHub Actions
participant Job as build job
participant DL as dawidd6/download-artifact@v6
participant Art as Artifact Storage
Dev->>GH: Trigger workflow (workflow_dispatch run-id)
GH->>Job: Start build (permissions: actions:read)
alt run-id provided (not '')
Job->>DL: request download with run_id
DL->>Art: fetch artifacts for run_id
Art-->>DL: return artifacts
DL-->>Job: write artifacts to workspace
else run-id empty
Job-->>Job: skip artifact download
end
Job->>Job: run Circom build (includes from circuits/node_modules)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 300000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
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 (3)
.github/workflows/circuits-build.yml(3 hunks)circuits/scripts/build/build_cpp.sh(2 hunks)circuits/scripts/build/build_single_circuit.sh(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
.github/workflows/**/*.{yml,yaml}
📄 CodeRabbit inference engine (AGENTS.md)
.github/workflows/**/*.{yml,yaml}: In GitHub workflows, use the shared composite actions in .github/actions for dependency caching instead of calling actions/cache directly
Use the cache-yarn composite action for Yarn dependency caching in workflows
Use the cache-bundler composite action for Ruby gems caching in workflows
Use the cache-gradle composite action for Gradle caching in workflows
Use the cache-pods composite action for CocoaPods caching in workflows
Files:
.github/workflows/circuits-build.yml
⏰ Context from checks skipped due to timeout of 300000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: run_circuit_tests
| run-id: | ||
| description: 'Run ID to download artifacts .' | ||
| required: false | ||
| type: string | ||
| default: '' |
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.
Fix invalid expression for run-id input.
inputs.run-id is parsed as inputs.run - id, so the condition will never behave correctly and the download step passes an empty run ID. Use bracket notation for hyphenated workflow inputs.
- run-id:
+ run-id:
description: 'Run ID to download artifacts .'
required: false
type: string
default: ''
…
- - name: Download previous artifacts
- if: github.event_name == 'workflow_dispatch' && inputs.run-id != ''
+ - name: Download previous artifacts
+ if: github.event_name == 'workflow_dispatch' && inputs['run-id'] != ''
uses: dawidd6/action-download-artifact@v6
with:
name: circuits
path: output/
- run_id: ${{ inputs.run-id }}
+ run_id: ${{ inputs['run-id'] }}Also applies to: 160-166
🤖 Prompt for AI Agents
In .github/workflows/circuits-build.yml around lines 23 to 27 (and also apply
the same change at lines 160-166), the workflow references the hyphenated input
as inputs.run-id which is parsed as inputs.run - id and yields incorrect/empty
values; update all expressions that reference this input to use bracket notation
inputs['run-id'] (and any other hyphenated input names) so the condition and
artifact download receive the correct run ID.
907fa88 to
9916cb9
Compare
Summary by CodeRabbit
New Features
Refactor
Chores