fix(ci): harden publish workflow package matrix validation#97
Conversation
|
Warning Review limit reached
Your plan currently allows 1 review/hour. Refill in 54 minutes and 26 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe publish workflow now performs guard checks to ensure package matrix consistency. Before builds start, it validates that all matrix packages have corresponding ChangesPublish Workflow Validation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
9c3906e to
937e0a5
Compare
Summary
Fix the
publish.ymlfailure mode behind the failed publish run:cp: cannot stat .../distThis PR hardens the workflow in two ways:
Root cause from the failed run
The failed run on
main(26327788454) used a workflow revision where:personaanddispatchORDER=(...)build list did not includedispatchpackages/dispatch/distwas never producedUpload build artifactsthen failed with:cp: cannot stat 'packages/dispatch/dist'Changes
Upload build artifactsfor:packages/$pkg/package.jsonpackages/$pkg/distValidate publish matrix packages existstep before build/test loopsWhy this helps
Instead of a late opaque artifact-copy failure, the workflow now fails with a precise, actionable error when the matrix and repo/build order drift apart.
Commits
6dc68f6fix(ci): fail clearly when publish artifacts are missing9c3906efix(ci): validate publish matrix against repo and build order