Repository navigation
Handle PRs rejected by the merge queue in the PR continuation tooling - #123379
Merged
Merged
Conversation
The merge queue re-tests a PR merged with the latest base branch, so it can reject a PR whose own CI is green, typically because of a semantic conflict with the base branch: a newly added test that pins behaviour the PR changes, or an API the PR uses that changed. Such a PR stays `CLEAN` and green, so nothing in the tooling noticed it: - `utils/continue-all-prs.sh` reported it as `GREEN` and never dispatched it. The pre-check now also reads the latest merge-queue event; a removal (other than `merged`) after the last commit, with the PR not back in the queue and no comment from the current user since, is a pending item that names the tested merge-queue commit. The triage prompt says that a clean merge alone does not resolve it. - `.claude/tools/fetch_ci_report.js` with a PR URL showed only the PR workflow. It now detects the removal, takes the `MergeQueueCI` report link from the statuses of the tested commit, and adds that run's failed jobs. It also took the report links from the newest bot comment that had any, so a later `:build-profile-diff:` comment hid the whole PR workflow (only "Build profile diff" was shown); the `:report:` comment is now preferred, and every top-level report is expanded into its jobs. - The `continue-pr` and `continue-pr-auto` skills now check for a merge-queue rejection first in step 4, explain how to reach its report, and merge the base branch for it in step 3. Examples: #117667 (merge-queue `Fast test` failed on `05315_jit_multiif_decimal_scale_lift_overflow`, added on `master`) and #120910 (merge-queue `Build (amd_binary)` failed because `master` changed the type of `read_until_position`). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [ec11445] Summary: ✅ AI ReviewSummaryThis PR teaches Findings
Final Verdict
|
robinld
pushed a commit
to robinld/ClickHouse
that referenced
this pull request
Oct 4, 2026
Address the review of ClickHouse#123379: - `.claude/tools/fetch_ci_report.js` with a PR URL expanded the all-green `PR` workflow into all its ~146 green job reports even when the `MergeQueueCI` run of a PR rejected by the merge queue contributed the failed job, burying the one failure that matters. An all-green top-level report is now expanded only when no other workflow has failed jobs; for the merge-queue rejection of ClickHouse#120910 the output shrinks from 147 reports to the single failed `Build (amd_binary)` job. - The `continue-pr` and `continue-pr-auto` skills suggested building the log URL as `.../mergequeueci/<job>/job.log`, but Praktika stores attached files under normalized sub-result directories, so such a URL returns `AccessDenied`. They now say to follow the `links` of the failed results (as printed by `fetch_ci_report.js`, also with `--links`) or to use `--download-logs`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
The merge queue re-tests a PR merged with the latest base branch, so it can reject a PR whose own CI is green, typically because of a semantic conflict with
master: a newly added test that pins behaviour the PR changes, or an API the PR uses that changed. Such a PR staysCLEANand green, so none of the PR continuation tooling noticed it:utils/continue-all-prs.shreported such a PR asGREENand never dispatched it. The GraphQL pre-check now also reads the latest merge-queue event. If the PR was removed (for any reason other thanmerged) after its last commit, is not back in the queue, and the current user hasn't commented since, that is a pending item naming the tested merge-queue commit. The triage prompt now says that a clean merge alone does not resolve it..claude/tools/fetch_ci_report.jswith a PR URL showed only the PR workflow. It now detects the removal, takes theMergeQueueCIreport link from the statuses of the tested commit, and adds that run's failed jobs to the output. It also had a second bug: it took report links from the newest bot comment that had any. A later:build-profile-diff:comment therefore hid the whole PR workflow, and only "Build profile diff" was shown. The:report:comment is now preferred, and every top-level report is expanded into its jobs.continue-prandcontinue-pr-autoskills now check for a merge-queue rejection first in step 4, explain how to reach its report, and merge the base branch for it in step 3.Checked against the two PRs that motivated this. For each, the pre-check reports the removal and
fetch_ci_report.jsshows the failing merge-queue job:date_time_overflow_behaviorfor numeric conversions #117667: merge-queueFast testfailed on05315_jit_multiif_decimal_scale_lift_overflow, a test added onmaster.Build (amd_binary)failed becausemasterchanged the type ofread_until_position.Related: #117667
Related: #120910
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/123379]
Version info
26.10.1.1317-master(included in26.10and later)