Repository navigation
A stacked run keeps its base and counts what that base already did - #508
Merged
Merged
Conversation
A run stacked on another open pull request's branch reset its base to the default branch at the start of every step. Its branch, already built on the other pull request, then read as copying that pull request's commits, so it was rebuilt and force-pushed in every step, and the plan check measured it against a base that changed between steps. Planned files the other branch already changed into their planned form dropped out of the diff: the check read them as not done, the coder found nothing to write, and the run guard stopped the run after seven continuations. - A later step of the same run keeps the base an earlier step stacked it on while that base is still an open pull request's branch (stack::kept). - The plan check counts a planned file the stacked-on branch already changes as done there, and its note says so (plan_coverage::plan_changes). - The run guard reports a fall in the done count on the run page, and a recovery from it counts as progress at most twice, so loops still end. - Incident case u_stacked_plan_check replays the counts and pins the pipeline.
nambok
force-pushed
the
stacked-run-keeps-its-base
branch
from
November 7, 2026 18:07
296d370 to
5526002
Compare
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
A run stacked on an earlier part's open pull request was stopped with "it continued N times without finishing another task", though its work was done. Every step reset the run's base to the default branch, so its branch (already built on the other pull request) read as copying that pull request's commits, and it was rebuilt and force-pushed in every step. The plan check then measured against the other branch: the planned files that branch already changes into their planned form dropped out of the diff, the check read fewer tasks done than the step before, the coder found nothing left to write, and the run guard stopped the run.
No work was lost: the coder confirmed the files were already in their planned form on the branch the pull request builds on.
Changes
stack::keptandstack::keeps_base: a later step of the same run keeps the base an earlier step stacked it on while that base is still an open pull request's branch. No rebuild or force push each step, and one base for every check. The run stacks on it when the ticket names nothing else.plan_coverage::plan_changes/stacked_coverage: on a stacked base, a planned file that the stacked-on branch already changes (against the default branch) counts as done there. The plan check note marks it "changed by the branch this one is stacked on". Used by the implement rounds, the generator re-check, the optional-task findings and the covering check.run_guard: the guard keeps the last count beside the best one. A fall is reported on the run page and in the logs, and work done again after a fall counts as progress, at mostMAX_TASK_DROPS(2) times, so a count that keeps falling and rising still ends. Records saved before this change read as before.u_stacked_plan_checkreplays the recorded counts and pins the pipeline; row added todocs/incidents.md.Verification
cargo test -p worker: 1380 passed, 0 failed (the 7 new incident tests included).cargo clippy -p worker --all-targets -- -D warningsandcargo fmt --checkare clean.