Repository navigation
Add sanity checks for correct release channel to the build workflow - #4771
Conversation
There's currently nothing preventing us from publishing RC build to the stable channel if the GH release is configured incorrectly. Since we have the meta file which dictates where the deployment should go, use this as a sanity check and reject the workflow if the expected configuration doesn't match.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a new validation step in the ChangesPublish pre-flight validation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 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 |
agners
left a comment
There was a problem hiding this comment.
Nice! Yeah checking the deployment makes sense!
That said, I think while at it I'd also check the versioning. Maybe we can keep it simple and only do that on stable (check that it's a simple major.minor version).
We already do that: operating-system/.github/workflows/build.yaml Lines 111 to 118 in 4e8633c |
Right, that checks tag against metadata, and certainly make sense! But it doesn't prevent a stable release with rc or dev in it's name 😅 . Checking Maybe reverse the whole logic, so it becomes "channel mandates certain meta rules" (make the case be about channel). |
…ome-assistant#4771) * Add sanity checks for correct release channel to the build workflow There's currently nothing preventing us from publishing RC build to the stable channel if the GH release is configured incorrectly. Since we have the meta file which dictates where the deployment should go, use this as a sanity check and reject the workflow if the expected configuration doesn't match. * Improve the check to validate version string as well (cherry picked from commit b4977ed)
There's currently nothing preventing us from publishing RC build to the stable channel if the GH release is configured incorrectly. Since we have the meta file which dictates where the deployment should go, use this as a sanity check and reject the workflow if the expected configuration doesn't match.
Summary by CodeRabbit