Repository navigation
ci(release): skip updater metadata collection on dev builds - #1693
Conversation
Dev builds have no publish target and never write latest-v2-mac.yml, so a dev finalize failed at the copy after notarization and verification had already passed, which also skipped the snapshot-tag cleanup. Collection now runs under the same condition as the finalize step that consumes it, and the workflow contract test pins the two conditions together.
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can choose which labels appear on a finding, and whether they show icons or text |
PR Summary by QodoSkip updater metadata collection for dev releases
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: Astro-Han/pawwork/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe updater metadata collection step now skips dev-channel runs. A contract test checks that the collection and finalization steps use the same workflow condition. ChangesUpdater metadata workflow
Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to Dev builds skip metadata collection and finalization together, with no downstream dev step relying on the collected data. No actionable merge risk is evident from the reviewed changes. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 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 |
Summary
Collect updater metadatanow runs under the same condition asFinalize updater metadata, which already skipped the dev channel.Why
Dev-channel builds have no publish target and never write
latest-v2-mac.yml. A dev macOS finalize (run 36047988335) passed notarization (Accepted, stapled) andVerify notarized artifacts, then failed atcp: dist/latest-v2-mac.yml: No such file or directory. The failure also skippedcleanup-snapshot-tag, leaving the workflow snapshot tag behind (deleted by hand).The collected directory is consumed only by the finalize step, so nothing on prod or beta changes.
Verification
vitest run scripts/release-workflow-contract.test.ts: 10 passed; with the workflow change reverted, the new assertion fails.Summary by CodeRabbit