Skip to content

Fix auto-merge freeze deadlock - #7566

Merged
shawnHartsell merged 1 commit into
mainfrom
shumwow/fix-auto-merge-freeze
Nov 26, 2026
Merged

shawnHartsell merged 1 commit into
mainfrom
shumwow/fix-auto-merge-freeze

Conversation

@scott-shumway

Copy link
Copy Markdown
Contributor

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 875fe5c363af96c79290a34561c186970014d2b1

Dimension Assessment Rationale
Change confidence 9/10 ↑ All 27 script tests pass, including explicit freezes and failed API reads.
↓ No live workflow run was dispatched.
Diagnosis confidence 9.5/10 ↑ Regression tests reproduce the directory-based deadlock before the fix and pass after its removal.
Evidence fit 9/10 ↑ Regression reproduces the reported hold when candidates add a GHES directory without an open freeze issue.
↓ 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.

  • Remove directory-based freeze inference and variables used only by that check; update explanatory comments.
  • Preserve fail-closed label/issue reads and all other eligibility and merge safeguards.
  • Add five regression tests for explicit holds, progress with a new GHES directory, a missing freeze label, and failed label/issue reads.
  • Run script tests when the auto-merge workflow changes.

Validation

  • PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover --start-directory .github/scripts --verbose — passed, 27 tests.
  • git diff --check — passed.
  • Before the fix, two new tests reproduced the directory-based hold.
  • No live workflow was dispatched; no candidate PRs were merged or closed.

Copilot-Session: e11c00ae-21da-4a39-b1d3-f83e2264305e
Copilot AI adaptive review requested due to automatic review settings November 26, 2026 01:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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)

@shawnHartsell
shawnHartsell merged commit 36dd877 into main Nov 26, 2026
11 checks passed
@shawnHartsell
shawnHartsell deleted the shumwow/fix-auto-merge-freeze branch November 26, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants