Repository navigation
ci: automatically re-arm infrastructure-ejected merge queue PRs - #4941
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
November 17, 2026 01:57
zackees
enabled auto-merge
November 17, 2026 01:57
…4896) Ci-Attestation: {"at":1794890273,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":233,"stamp":"a6d72f5e77eac51a987571436690f9ff","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890273,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":233,"stamp":"abe562c0947420aa621fe3980d73c8ec","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890273,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":233,"stamp":"3c2344d91a053073beb66b6afd61fabd","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890273,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":233,"stamp":"b201bf369f05a8d6d05d03f0cfbeaea3","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890035,"gate":"general/all/client-lint","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"f0297c90c25ad020a1055512d03d3a30","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890273,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":233,"stamp":"b39709e2a628695254b2ae557c850287","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890038,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"31e13d6ef87e73ad7f8ba2f77564498c","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890038,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"30a48aaacfb98453d38acfc3e1d64b08","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890037,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"cfba56de13cccd4781d1b0c3ad913d56","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890037,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"1f8a0661fa853053d5ff1880b59bfd11","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890036,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"2ce8ea69c0ab37c284dff4bb08644d6b","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890036,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"2fd3ac4cfa5b80f9571c0e6c1764ad64","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890037,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"b46f3d4c48578cbfaac575f92bdcdef6","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890038,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"57ec6bb3110e31fc171bb4bd40c4fca8","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890036,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"91a3cf12abc3f2464d53607f8291eb0b","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890037,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"c9deedf49e08c779af1dbbdb069d274f","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890036,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"bbe401be8c29cc3e2072dc07a6f964e0","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794890036,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"7e579c41c4de51c6d9a1c9acbb3e6758a6703fcbf8d82da17ded6144a7975f21","lane":"client-lint","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":304,"stamp":"819d62e1cbf79db48b2f4a20981b41e3","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Ci-Attestation: {"at":1794892064,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"df9052db734202ef3f05b4dace77db1e833e2273387b71b9c043113c397973f1","lane":"client-test-x86_64-unknown-linux-gnu","parents":["c65f3aa27ce0e0d73fe476221ff45e1e7b6698d3"],"secs":1789,"stamp":"63eda77f7668ba0f42ef20f0efdd5ab9","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c","v":1,"via":"run"} Client-Checks: {"checks":{"base":"d209333c71fa2ff77f92f81c753e7c87cd2e8979","coverage":"all-tracked-applicable-files","diff":[".github/workflows/ai-rebase.yaml","ci/ai_rebase.py","ci/test_ai_rebase_cooperation.py","ci/test_ai_rebase_token_guard.py","docs/rust-port/backpressure.md"],"head":"d40388318e07f643c8dcb895a5c5f6d2d7d19a36","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"cc8f503106d7e97482bc37ee33c1e910a9cc95d35d0730b53626f8784c77741a","tree":"a8fc2cdc87688e55e5cb093a9b865008b8d9ad9c"}}
zackees
force-pushed
the
fix/4896-mq-requeue
branch
from
November 17, 2026 05:07
85cb31c to
92822fe
Compare
This was referenced Nov 17, 2026
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.
Automatically re-arm unchanged PR heads after infrastructure merge-queue ejections within three hours. The existing ai-rebase workflow runs this mode with GITHUB_TOKEN even without AI_REBASE_TOKEN; only push/resolution steps need that secret. Refs #4896.
Rebased onto master after #4932 and #4937 merged. The cooperation changes from #4932 are inherited from master: requeue uses its queue timeline, worker quiet period, pool-active and hold helpers, and queue-failed protection. The rebase mode keeps its existing conservative failure guard; infrastructure recovery is handled separately without rebasing or pushing the PR head. No duplicate cooperation implementation remains in this PR.
The new mode checks the ejected synthetic commit's runs and latest-attempt jobs, distinguishes infrastructure from real test/build failures, applies queue-failed for real failures, and leaves ambiguous evidence untouched. It refreshes eligibility before mutation and reserves one retry per PR/head with a paginated hidden-comment marker before arming with --auto --match-head-commit, without a merge-strategy flag. Scheduled runs permit ten actions and support read-only dry runs.
Validation:
uv run --no-project python -m unittest ci.test_ai_rebase_cooperation ci.test_ai_rebase_token_guardpasses all 44 tests. This includes the existing cooperation contracts and new coverage for fixture timelines, cancellation with real failures, runner-loss annotations, network envelopes, corroborating runners, pagination, ownership changes, the per-head cap and a real failure after a retry.git range-diffconfirms both requeue commits are unchanged by the rebase. The two cooperation commits were dropped because their contents are already on master via ci: make the rebase bot cooperate with pool workers and queue failures #4932.No production PR was re-armed during testing. Hosted GITHUB_TOKEN execution remains for CI after landing; no new workflow files were added. Rust/C compatibility and protocol tiers do not apply to this Python/workflow change.
Rebase validation on 2026-11-17: ran the full
./lintonce with a 1,200-second deadline; it exited 0 and reported== lane lint: ok (662.5s). The report wrapper could not classify lint's text, so the command exit and final success line were checked directly. Publication uses #4937's exact remote-head lease through./push --replace-remote-head 85cb31c34ef6f5c5635b91e046387b6f7d5a03bc.Fresh publication evidence:
./pushpassed complete client lint (including clippy/Dylint on all six targets), Python self-tests, 8,706 workspace tests (6 skipped; 4 slow and 1 leaky reported), all 918 feature tests, documentation tests, the Windows GNU test-link check and data validators. It stamped fresh evidence, signed and verified the final commit, and successfully replaced the exact old remote head with92822fef6f6895ad489f2758c88558072f1cb43d. No C tests or public headers were changed. The original remote head was85cb31c34ef6f5c5635b91e046387b6f7d5a03bc.