Repository navigation
Fix auto-merge freeze deadlock - #7566
Merged
Merged
Conversation
Copilot-Session: e11c00ae-21da-4a39-b1d3-f83e2264305e
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
A release owner must confirm the manual-only freeze policy, since removing the automatic GHES release hold allows publication merges unless a labeled issue blocks them.
No open issues 🎉
What changed in this PR
Fixes the OpenAPI auto-merge deadlock by making open merge-freeze-labeled issues the sole freeze signal, allowing candidates to introduce new GHES directories once an explicit hold ends.
Changes:
- Removes directory-based freeze inference while preserving fail-closed label and issue reads.
- Adds five regression tests covering explicit holds, progress, and API read failures.
- Triggers script tests when the auto-merge workflow changes.
| File | Description |
|---|---|
.github/workflows/scripts-tests.yml |
Adds the auto-merge workflow to push and pull-request path filters. |
.github/workflows/auto-merge-openapi-updates.yml |
Removes directory-based holds and unused variables; updates freeze-policy comments. |
.github/scripts/test_auto_merge_freeze.py |
Adds regression tests for the workflow’s freeze gate using a stubbed GitHub CLI. |
Review effort: Balanced (adaptive)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
875fe5c363af96c79290a34561c186970014d2b1↓ No live workflow run was dispatched.
↓ Affected live candidates were not re-tested.
Thank you for contributing to github/rest-api-description!
Please note that we cannot accept pull requests that directly modify the descriptions in this repo. If you have identified a problem with the descriptions, consider opening an issue instead 🙇
Summary
An open
merge-freeze-labeled issue is now the sole freeze signal. Previously, a candidate introducing a GHES directory absent from the default branch also triggered a freeze, blocking the very PR needed to publish that directory even after the explicit freeze ended.Validation
PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover --start-directory .github/scripts --verbose— passed, 27 tests.git diff --check— passed.