Skip to content

ci: make the rebase bot cooperate with pool workers and queue failures - #4932

Merged
zackees merged 2 commits into
masterfrom
fix/4896-rebase-bot-coop
Nov 17, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/4896-rebase-bot-coop

Conversation

@zackees

@zackees zackees commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

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.

  • Leave the squash strategy to the queue, keep the exact-head pin, and report rejected arming with a nonzero script result after a successful push.
  • Skip pool-active PRs and grant 30 minutes of quiet time in bulk selection and explicit PR runs. GitHub often returns null commit pushedDate, so PR updatedAt conservatively bounds recent push activity; comments/labels may extend the quiet time. Skips do not spend FIFO headroom.
  • Preserve queue-failed and the latest failed_checks ejection 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-active and queue-failed repository 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_TOKEN remains absent.

Validation: RED commit a7850e12c ran uv run --no-project python -m unittest ci/test_ai_rebase_cooperation.py: 9 tests, 8 failure observations and 3 errors across subtests. GREEN ran uv 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 ./lint run stopped on C901 in the new queue-history reader; splitting pagination into queue_events resolved it, and targeted uvx ruff check --select C901,RUF100 ci/ai_rebase.py ci/test_ai_rebase_cooperation.py passes. Local read-only review is clean. C/Rust compatibility and protocol tiers do not apply to this Python CI-only change.

./push completed the full client contract and signed final head 93388c4d949af976135f87ff8178fc565b64d059 with 19 Ci-Attestation records: 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. Optional client-swift exited 75 on this host and emitted no evidence; Swift is outside this change. The implementation edits ci/**, so ordinary trust-surface fallback PR checks remain required despite complete client evidence.

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 zackees changed the title ci: GREEN cooperate with pool workers and failed queue runs (Refs #4896) ci: make the rebase bot cooperate with pool workers and queue failures Nov 16, 2026
@zackees
zackees marked this pull request as ready for review November 17, 2026 00:08
@zackees
zackees enabled auto-merge November 17, 2026 00:08
@zackees
zackees added this pull request to the merge queue Nov 17, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Nov 17, 2026
Merged via the queue into master with commit 1ae9a21 Nov 17, 2026
43 checks passed
@zackees
zackees deleted the fix/4896-rebase-bot-coop branch November 17, 2026 02:26
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant