fix(ci): only run bytecode check on PRs targeting main#7802
fix(ci): only run bytecode check on PRs targeting main#7802
Conversation
Added branch filter to bytecode-analysis workflow so it only runs on pull requests targeting the main branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The ci profile sets cbor_metadata=false but was missing bytecode_hash. When cbor_metadata is false, bytecode_hash must be "none" per the Solidity compiler specification. This fixes the bytecode check workflow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7802 +/- ##
=======================================
Coverage 77.02% 77.02%
=======================================
Files 117 117
Lines 2651 2651
Branches 244 244
=======================================
Hits 2042 2042
Misses 593 593
Partials 16 16
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Claude finished @larryob's task in 41s —— View job PR Review: fix(ci): only run bytecode check on PRs targeting main
SummaryThis PR makes two changes to improve the bytecode analysis CI workflow:
Review Findings✅ Workflow Changes - LGTMThe branch filter is correctly placed under the on:
pull_request:
branches:
- main
paths:
- 'solidity/**'This correctly ensures the workflow only triggers when:
The ✅ Foundry Config Changes - LGTMAdding Both settings work together:
Security AnalysisNo security concerns identified. This PR only modifies CI configuration:
Final Notes
Verdict: Approve ✅ |
| branches: | ||
| - main |
There was a problem hiding this comment.
would we not want to do this for audit branch PRs?
📝 WalkthroughWalkthroughTwo simple configuration adjustments to ensure bytecode analysis runs under the right conditions. The workflow now filters to main branch PRs, and Foundry's CI profile gains a bytecode hash setting for deterministic builds. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (16)
🔇 Additional comments (2)
✏️ Tip: You can disable this entire section by setting 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 |
| pull_request: | ||
| branches: | ||
| - main |
There was a problem hiding this comment.
we do want this to run on all branches following #7801
Description
Added branch filter to bytecode-analysis workflow so it only runs on pull requests targeting the main branch.
🤖 Generated with Claude Code
Testing
Manual.
See #7803 (failing run) and #7804 (passing run)
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.