Repository navigation
Fix auto-merge blocking itself; bring back the auto-merge line - #971
Merged
Merged
Conversation
Labelled PRs never merged: a pull_request_target evaluation runs in auto_merge.yaml's "Evaluate" job, whose own check run on the PR head is pending while E16 is judged, so every such evaluation recorded "not eligible" (E16 not green: Evaluate). E16 now ignores auto-merge's own "Evaluate" and "Merge sweep" jobs. The stale labels then stayed: removing a label from a PR answered 403 because GITHUB_TOKEN had issues: write but not pull-requests: write. Both jobs now get it, and an evaluation no longer tries to remove a label the PR doesn't carry. Review comment: - one short "Auto-merge:" line again, from review_items (every condition except the ones only the check can judge), above the LGTM & merge link; - "Fix in the web editor" only when there is something to fix.
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.
Why labelled PRs never auto-merged
pull_request_targetevaluation (a label or description change) runs inauto_merge.yaml'sEvaluatejob. That job's own check run on the PR head is still pending while E16 is judged, so every such evaluation recorded "not eligible" (E16 not green: Evaluate) and reset the eligibility clock. That happened to SUNLU: add silk trait to Silk PLA+ lines, Silk 2.0 and TPU Silk #943–L3D: add silk trait to PLA Silk #958 on Dec 1. E16 now ignores auto-merge's ownEvaluateandMerge sweepjobs.couldn't remove the auto-merge label … (HTTP 403). GITHUB_TOKEN hadissues: write, and changing a PR's labels also needspull-requests: write, so both jobs now get it. An evaluation also no longer tries to remove a label the PR doesn't have.Note: PRs last pushed before
Contribution termsbecame a required check (Dec 2) still fail E16 until something re-runs that check on them (a push, a description edit, or a reopen).Review comment
review_items: every condition except the ones only the check can judge (E16, E18–E20). It reads "can merge on its own at 22:00…", "needs a maintainer: …", or "off, a maintainer merges this.", and sits above the LGTM & merge link.Tests
pytest tests/: everything passes except two failures intest_search_index_exporter.py, which fail on main too. Ruff is clean.Contribution terms
Contribution terms