Skip to content

fix(roadmap): a stop rebases a checkout that a failed program left dirty - #4497

Merged
dan-petty merged 2 commits into
mainfrom
fix/4487-a-stop-rebases-a-checkout-that
Nov 11, 2026
Merged

dan-petty merged 2 commits into
mainfrom
fix/4487-a-stop-rebases-a-checkout-that

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A failed project program left its files in the checkout. The archive of item #3462 moved the change folder and then failed the validation of the specs. The push of the stop rebased that checkout, git refused, and the job pushed a branch that is behind main. It also ran git rebase --abort with no rebase in progress and gave the class conflict.

  • The push of a stop now drops the files that no commit holds (git reset --hard HEAD, git clean -fd) before it rebases.
  • A rebase that git did not start runs no abort, says "did not start", and stops with the class ci_infra, not conflict.

The formatter of the step is not the cause: the group commit holds the files that ruff format changed.

Closes #4487

Change: openspec/changes/archive/2026-11-11-4487-a-stop-rebases-a-checkout-that/

…rebase

A failed project program, such as an archive that moved the change folder and then failed the validation of the specs, left its files in the checkout. The push of the stop then rebased that checkout, git refused, and the job pushed a branch that is behind the default branch. The push of a stop now drops the files that no commit holds first. A rebase that git does not start runs no abort and stops with the class ci_infra, not conflict.
@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 11, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Results

Fail-to-pass (uv run devops ci fail-to-pass --base origin/main):

failed on base: tests.roadmap.implement.test_roadmap_implement_job::test_a_rebase_that_does_not_start_is_no_conflict_and_runs_no_abort (AssertionError: assert ('conflict', None) == ('ci_infra', None))
failed on base: tests.roadmap.implement.test_roadmap_implement_push_current::test_a_stop_after_an_archive_that_failed_pushes_a_branch_that_holds_the_commit_that_main_gained (AssertionError: assert '1' == '0')
2 failed on base (2 failed and 95 passed in tests/roadmap/implement/test_roadmap_implement_job.py, tests/roadmap/implement/test_roadmap_implement_push_current.py; 0 errored).

On the base, the archive test logs the same lines as runner Job devops-cli-runner-20261111-022552-5e9a: "cannot rebase: You have unstaged changes", "The abort of the rebase failed too. fatal: no rebase in progress", "Failure class test. Action left: repair."

Tests on the head: uv run pytest tests/roadmap/implement 1635 passed after the rebase onto main. uv run devops openspec check passed. The archive reported "Every spec and change validates".

The premise of the request

The request said that the formatter runs after the last commit. The evidence refutes it. _format_failure stages the files that ruff format changed, and the group commit comes only after every exit check passed. Commit 0c2fc9b holds src/devops_cli/roadmap/stage/stage_change.py, the file that the log names as formatted. The dirty checkout came from the archive step: the archive moved the change folder and then failed the strict validation of the specs. The proposal quotes each step with file:line.

The class test of that stop is the class of the archive failure, not of the rebase: the archive output holds "Totals: 258 passed, 1 failed", which the test rule reads. This pull request does not change that rule. An issue for it is filed separately.

Item #3462

Item #3462 needs no retry. A person merged its pull request #4465 (commit 74d358a) with its archived change, and the issue is closed as completed. This fix changes only what a later stop does: it drops the files that no commit holds before its rebase, and it gives a rebase that does not start the class ci_infra with no abort.

@dan-petty
dan-petty marked this pull request as ready for review November 11, 2026 05:09
@dan-petty
dan-petty enabled auto-merge (squash) November 11, 2026 05:09
@dan-petty

Copy link
Copy Markdown
Owner Author

The class test of the archive stop of #3462 is filed as #4503. This pull request does not change the failure rules.

@dan-petty
dan-petty merged commit 9b14af0 into main Nov 11, 2026
32 checks passed
@dan-petty
dan-petty deleted the fix/4487-a-stop-rebases-a-checkout-that branch November 11, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): a stop rebases a checkout that a failed program left dirty

1 participant