ci: block npm releases with open blockers - #545
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: QUIET Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe release workflow now checks for open Sequence Diagram(s)sequenceDiagram
participant ReleaseWorkflow
participant BlockerScript
participant GitHubIssues
participant PackagePublish
ReleaseWorkflow->>BlockerScript: Check before publishing
BlockerScript->>GitHubIssues: Query open release-blocker issues
ReleaseWorkflow->>PackagePublish: Run dry-run publish
ReleaseWorkflow->>BlockerScript: Recheck blockers
BlockerScript->>GitHubIssues: Query open release-blocker issues
ReleaseWorkflow->>PackagePublish: Continue publishing when clear
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The release workflow now blocks npm publication when release-blocker issues are open and rechecks after the dry run. No concrete merge-blocking risk remains evidenced, so this change is mergeable. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
Code Review by Qodo
1. Dashboard shows an unpublished version
|
| if: github.event_name == 'release' || inputs.publish | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: bash .github/scripts/check-release-blockers.sh |
There was a problem hiding this comment.
1. Dashboard shows an unpublished version 🔗 Cross-repo conflict ≡ Correctness
release.yml invokes check-release-blockers.sh only inside the publish job, while the workflow starts from an already-published GitHub release event. When an open blocker makes that check exit, Drivers-Dashboard still selects the non-draft release as the latest Node.js driver version, publication date, and support input even though npm publication never occurs.
Agent Prompt
## Issue description
The blocker check runs after the GitHub Release becomes public, so a blocked npm release remains visible to Drivers-Dashboard as the latest driver release.
## Fix Focus Areas
- .github/workflows/release.yml[5-7]
- .github/workflows/release.yml[146-150]
- .github/scripts/check-release-blockers.sh[13-15]
## Recommended Fix
Run the blocker check in the process that creates or publishes the GitHub Release and require it to succeed before making the release non-draft. If the current post-publication trigger must remain, convert or remove the blocked GitHub Release before failing so release consumers cannot select it.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Summary
release-blockerissuesnpm publishpublish=falsedry runsScope
This prevents npm publication when a blocker is open. A
release.publishedworkflow starts after the tag and GitHub Release already exist, so the canonical pre-tag redesign remains tracked in #544.Validation