Repository navigation
legacy-dark: draining precondition minimal_redrive_finished - #22769
Merged
Git-on-my-level merged 1 commit intoOct 20, 2026
Merged
Git-on-my-level merged 1 commit into
Git-on-my-level merged 1 commit into
Conversation
…ing 10-20) ramp_set refuses to leave legacy_sync=on until operator minimal-mode redrives (#22503) are confirmed finished or moved to batch: draining stops new sequencer registration and C11 deletes the mode. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Summary
Lane 10, contract (h). This adds the draining precondition from the lead's ruling (10-20 05:17Z) on operator minimal redrive (#22503).
ramp_set.pynow refuses to leavelegacy_sync=onuntil the operator also confirmsminimal_redrive_finished: onthway's minimal-mode redrives are finished, or moved to the batch redrive path.utils/sync/pipeline.py).drainingstops new sequencer registration, so minimal redrive stops working at the flip.This makes the precondition a gate the tool enforces, not a checklist line.
What changes:
scripts/rollout/ramp_controller.py: newDRAINING_PRECONDITIONS['minimal_redrive_finished'].tests/unit/test_ramp_controller.py: the refusal lists both ids; a partial confirmation is still refused; both together are accepted.docs/runbooks/legacy-dark.md: the precondition text and the--precondition-met minimal_redrive_finishedflag in the transition command.The gate applies to every env, so the M2 staging cycle confirms it too. Staging has no minimal-redrive traffic.
Lane / contract
Lane 10, contract (h).
ramp_controller.py's precondition table is the (h) entry gate. Lane 6 is informed.Product invariants affected
.github/workflows/gcp_*.ymlagainst the main base. This PR changes no data-plane routing.backend/deploy/runtime_env.yaml, inherited from integration against the main base). No memory change.Verification
Unit layer:
test_ramp_controller.py71 passed.Rollback
Revert.
Line-Count-Exception: backend/routers/sync.py | 3820 -> 3893 | inherited from integration; this PR does not touch the file
Failure-Class: none
🤖 Generated with Claude Code