Repository navigation
ci: make the rebase bot cooperate with pool workers and queue failures - #4932
Merged
Merged
Conversation
Ci-Attestation: {"at":1794871975,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":127,"stamp":"70256aa8cbfd83ea5394c3f4be7e1739","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871975,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":127,"stamp":"04974cc98169a834564d10bd4cbae188","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871975,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":127,"stamp":"9da7a047af768abe7886d59965847122","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871975,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":127,"stamp":"8c25f5b3767ddec4f7c2ab48706094d5","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871845,"gate":"general/all/client-lint","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"892cabe38921919fa6ab276f4de2e910","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871975,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":127,"stamp":"b138097bb413c8bc95c454dfb4d0bdf8","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871846,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"6d8639bce886b9b237789572f0cbd910","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871846,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"3dc8d5afda3e1d6967e2089da5e6488b","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871846,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"4d353ce29cd773815e274940146b92c4","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871846,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"d62f0d5bacef9d52805f36e61ba46770","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871845,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"5e1d5669625003fc7d77e8b12a48fc8f","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871845,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"23c72615fec6595714f237a57f081b52","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871846,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"0f60f8df26573ae2ef9d96636a0059b9","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871846,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"6d6878d7b4915353a1b2edfc11424523","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871845,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"aa254eea9c94bc11a70d163ba778fdc6","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871846,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"0c8cc7d85b14c4f44f1c49a655fc383f","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871845,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"9f60a60941482b9cdbce6ece6c455a02","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794871845,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"3e9d5920d18bfa268886f7633aca7556da3f789b31be6fd2b96be15fee547235","lane":"client-lint","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":24,"stamp":"23f8c6f7a943ba2c8d99c7de1ae4fb79","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Ci-Attestation: {"at":1794872964,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"a484f89a65d250d4314ec0a49531beb92fbb959c327d66d5ae2a9d41e2fa0466","lane":"client-test-x86_64-unknown-linux-gnu","parents":["a7850e12c32909925592a2de5493cd16967fb878"],"secs":988,"stamp":"ed60e8bb59dd7e2ac9c71e66a3bf7359","tree":"0043379b63336061ebde54d4535ae490d054bee5","v":1,"via":"run"}
Client-Checks: {"checks":{"base":"4f67d28e0ff7773d87fc0ce54a37fee1b275d63b","coverage":"all-tracked-applicable-files","diff":["ci/ai_rebase.py","ci/test_ai_rebase_cooperation.py","docs/rust-port/backpressure.md"],"head":"87a922c6db6c4c8cb2fd4361dc5280bc2365a42c","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":"938d9de60fb876449f45464466d496f1695642e4c086911b74e74a72f9b965fe","tree":"0043379b63336061ebde54d4535ae490d054bee5"}}
zackees
marked this pull request as ready for review
November 17, 2026 00:08
zackees
enabled auto-merge
November 17, 2026 00:08
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 rebase bot could silently fail to re-arm because it specified a merge strategy on a queue-managed branch, race active pool workers, and repeatedly retry real merge-group failures. This makes the bot cooperate with the coordinator, manager and pool without enabling it. Refs #4896.
pool-activePRs and grant 30 minutes of quiet time in bulk selection and explicit PR runs. GitHub often returns null commitpushedDate, so PRupdatedAtconservatively bounds recent push activity; comments/labels may extend the quiet time. Skips do not spend FIFO headroom.queue-failedand the latestfailed_checksejection at the same PR head across the bot's rebase. Ordered, paginated timeline markers distinguish a synthetic queue commit, a newer fixed head and a restored identical failed head. Unreadable history refuses the operation.Created the
pool-activeandqueue-failedrepository labels with descriptions and documented ownership, watcher/manager responsibilities and the existing stacked-draft first-line contract. Lease pushes, holds, stacked landing, FIFO order and back-pressure headroom remain covered. The workflow and missing-token guard are unchanged;AI_REBASE_TOKENremains absent.Validation: RED commit
a7850e12cranuv run --no-project python -m unittest ci/test_ai_rebase_cooperation.py: 9 tests, 8 failure observations and 3 errors across subtests. GREEN ranuv run --no-project python -m unittest ci/test_ai_rebase_cooperation.py ci/test_backpressure.py ci/test_ai_rebase_token_guard.py: 54 tests passed. A single./lintrun stopped on C901 in the new queue-history reader; splitting pagination intoqueue_eventsresolved it, and targeteduvx ruff check --select C901,RUF100 ci/ai_rebase.py ci/test_ai_rebase_cooperation.pypasses. Local read-only review is clean. C/Rust compatibility and protocol tiers do not apply to this Python CI-only change../pushcompleted the full client contract and signed final head93388c4d949af976135f87ff8178fc565b64d059with 19Ci-Attestationrecords: six-target clippy/Dylint, general lint, Python self-tests, four data validators and Linux host tests. All 8,661 workspace tests and 918 additional obs-util tests passed; Windows GNU workspace test linking also passed. Optionalclient-swiftexited 75 on this host and emitted no evidence; Swift is outside this change. The implementation editsci/**, so ordinary trust-surface fallback PR checks remain required despite complete client evidence.