-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[build] Prevent nightly releases during release window #16948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR prevents nightly releases from running while a release is in progress by adding a pre-check job that queries the GitHub API to determine if the release ruleset is active. If active, all language-specific nightly build jobs are skipped.
Changes:
- Added a new
check-releasejob that queries the release ruleset status via GitHub API - Updated all six language build jobs (ruby, python, java, dotnet, grid, javascript) to depend on the check-release job and skip execution when a release is in progress
User description
Nightly job ran mid-release yesterday and it was suboptimal. This will prevent that.
Plan in #16947 is to run nightly at the end of the release anyway since things expect a nightly tag.
💥 What does this PR do?
🔧 Implementation Notes
Checks whether release ruleset is active before proceeding with nightly build.
🔄 Types of changes
PR Type
Bug fix
Description
Prevent nightly releases during active release windows
Add check-release job to detect active release ruleset
Update all language jobs to depend on release check
Skip nightly builds when release is in progress
Diagram Walkthrough
File Walkthrough
nightly.yml
Add release window detection to nightly workflow.github/workflows/nightly.yml
check-releasejob that queries GitHub API to detect ifrelease ruleset is active
javascript) to depend on
check-releaserelease-in-progressoutput is truerelease processes