Repository navigation
Report Mergify departures for the current queue attempt #1357
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,150 @@ | ||
| { | ||
| "request": "@mergifyio queue\n\n<!-- loopzero:mergify-request head=@head@ queue=main -->", | ||
| "report": "<!---\nDO NOT EDIT\n-*- Mergify Payload -*-\n{\"version\": 1, \"state\": \"dequeued\", \"queue_rule_name\": \"main\", \"dequeue_reason\": {\"code\": \"CHECKS_FAILED\", \"checks\": [\"checks\"]}}\n-*- Mergify Payload End -*-\n-->\n\n### ❌ Left the queue · `checks` failed\n\n**So far**\n- ✅ **Entered the queue** Wed 25 Nov, 22:12 · rule `main` · triggered by @eowca with the [`@mergifyio queue` command](@url@#issuecomment-42)\n- ❌ **Checks failed** · draft [#965](/feder-positronics/loop-zero/pull/965)\n- 🚫 **Left the queue** 22:13 · `@sha@`\n\n", | ||
| "attribution": { | ||
| "stacked": "**Not proven to be this pull request's failure.** It failed on top of the pull requests ahead of it, and was not tested alone.", | ||
| "isolated": "**The failure is in this pull request.** It failed tested alone on top of `main`." | ||
| }, | ||
| "expected": { | ||
| "stacked": [ | ||
| "stack", | ||
| "earlier" | ||
| ], | ||
| "isolated": [ | ||
| "tested this PR alone", | ||
| "flake" | ||
| ], | ||
| "unknown": [ | ||
| "Address it before requeueing" | ||
| ] | ||
| }, | ||
| "admission": { | ||
| "current": "2026-11-25T19:01:00Z", | ||
| "stale": "2026-11-25T18:59:00Z", | ||
| "missing": null | ||
| }, | ||
| "admission_report": "### ⏳ Waiting for queue conditions\n\n- [ ] `check-success = Queue Preflight`", | ||
| "requeue_guidance": [ | ||
| "as the whole PR comment (same login)", | ||
| "`loopzero merge --wait`" | ||
| ], | ||
| "candidate_responses": { | ||
| "blocking": { | ||
| "number": 7, | ||
| "queue_rule_name": "main", | ||
| "queued_at": "now", | ||
| "position": 1, | ||
| "mergeability_check": { | ||
| "queue_pull_request_number": 42, | ||
| "checks": [ | ||
| { | ||
| "name": "checks", | ||
| "state": "success" | ||
| } | ||
| ], | ||
| "conditions_evaluation": { | ||
| "match": false, | ||
| "label": "all of", | ||
| "subconditions": [ | ||
| { | ||
| "match": false, | ||
| "label": "check-success = Queue Quality Gate", | ||
| "subconditions": [] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "neutral": { | ||
| "number": 7, | ||
| "queue_rule_name": "main", | ||
| "queued_at": "now", | ||
| "position": 1, | ||
| "mergeability_check": { | ||
| "queue_pull_request_number": 42, | ||
| "checks": [ | ||
| { | ||
| "name": "checks", | ||
| "state": "neutral" | ||
| } | ||
| ], | ||
| "conditions_evaluation": { | ||
| "match": true, | ||
| "label": "all of", | ||
| "subconditions": [ | ||
| { | ||
| "match": true, | ||
| "label": "any of", | ||
| "subconditions": [ | ||
| { | ||
| "match": false, | ||
| "label": "check-success = checks", | ||
| "subconditions": [] | ||
| }, | ||
| { | ||
| "match": true, | ||
| "label": "check-neutral = checks", | ||
| "subconditions": [] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "skipped": { | ||
| "number": 7, | ||
| "queue_rule_name": "main", | ||
| "queued_at": "now", | ||
| "position": 1, | ||
| "mergeability_check": { | ||
| "queue_pull_request_number": 42, | ||
| "checks": [ | ||
| { | ||
| "name": "checks", | ||
| "state": "skipped" | ||
| } | ||
| ], | ||
| "conditions_evaluation": { | ||
| "match": true, | ||
| "label": "all of", | ||
| "subconditions": [ | ||
| { | ||
| "match": true, | ||
| "label": "any of", | ||
| "subconditions": [ | ||
| { | ||
| "match": false, | ||
| "label": "check-success = checks", | ||
| "subconditions": [] | ||
| }, | ||
| { | ||
| "match": true, | ||
| "label": "check-skipped = checks", | ||
| "subconditions": [] | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "missing": { | ||
| "number": 7, | ||
| "queue_rule_name": "main", | ||
| "queued_at": "now", | ||
| "position": 1, | ||
| "mergeability_check": { | ||
| "queue_pull_request_number": 42, | ||
| "checks": [ | ||
| { | ||
| "name": "checks", | ||
| "state": "success" | ||
| } | ||
| ], | ||
| "conditions_evaluation": null | ||
| } | ||
| } | ||
| }, | ||
| "candidate_condition": "check-success = Queue Quality Gate" | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
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.
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.
suggestion: Every admission-wait tick now reads the full PR comment list
Before this change, a tick where
state is None and not confirmedmade no extra calls. Now each such tick callsmergify.departure_report, which reads every page ofissues/{n}/commentsthroughgithub._paged. That call comes on top of themerged_sha,configuredandmembershipreads the tick already makes. On a long--waitwith a PR that has many comments, this uses up GitHub rate limit while Mergify is only waiting on preflight checks. It is not wrong, since GhError falls back to None. Smallest fix: before fetching the comments, check something cheap that shows a departure could have happened, for example that the request marker exists and the latest Mergify comment'supdated_athas changed. Or fetch comments every Nth tick and once before timing out.