Skip to content

Avoid Repairs for superseded CI runs - #1081

Merged
JacobStephens2 merged 3 commits into
mainfrom
issue-839
Oct 22, 2026
Merged

JacobStephens2 merged 3 commits into
mainfrom
issue-839

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

CI watch
  select the newest run of each workflow on the watched commit
  retain pending/completed results until that run's jobs appear
  cancelled checks + moved Issue branch → superseded upstream move
  newer workflow run → retire the older run's re-run requirements

Real failures still reach the existing Repair and Inherited failure handling. A superseded head spends no CI-fix Repair or Check re-run.

Closes #839

Evidence

  • Before: the adapter regression retained cancelled/failed older runs; the Merge run regression started a CI-fix Repair after another writer pushed.
    After: both pass; the Merge run reviews the Foreign commit and watches the new head without a CI-fix Repair or Check re-run.

  • All behavioral reviewer reproductions were run as written and failed before correction. Their tests are retained, including queued replacements beyond the attempt grace period and completed workflows without observed jobs.

  • /usr/bin/time -p scripts/affected-tests main: 2,350 passed, 56 skipped, via cargo nextest run; 1,598.72s wall time (26m 39s), warm build with no recompilation. Host load was about 9 on 4 CPUs during the run.

  • cargo clippy --all-targets -- -D warnings, prompt regeneration/verification, and all 57 CI watch unit tests passed. All GitHub checks passed on 1e7c22b (CI run).

  • An initial local full-suite attempt hit the existing Abandoned job test's 300ms grace period while compilation overlapped. Its exact isolated run and the final full suite passed; its assertions and deadlines were retained.

  • Repair validation on c9538a3: /usr/bin/time -p scripts/affected-tests main passed 2,351 tests, 56 skipped in 1,396.67s (23m 17s), including 24.18s of compilation; cargo test --test console_install also passed all 15 tests.

Seams tested: GitHub::checks_on, CI watch assessment and its re-run observation, the Repair loop's upstream-move budget, and CLI Delivery through fake GitHub and real Git repositories.

CI notes

  • CI run 39809838859 hit intermittent Linux ETXTBSY (Text file busy) while unit_preserves_literal_paths_with_shell_and_systemd_metacharacters launched its freshly copied fixture binary, before thirdshift started (tests/console_install.rs:404); the test and src/console/install.rs are byte-identical to main at cae12bc, and cargo test --test console_install passes all 15 tests locally. No code or tests changed for this unrelated failure.

Merge Danger

Door: two-way

Reverting restores the earlier CI classification; no persistent data migration.

Blast Radius: Delivery

Workflow-run metadata adds an Actions read to CI observations containing Actions jobs. Check re-runs and Abandoned job re-runs share the updated supersession guard.

Unaddressed findings

Standards

None. Both findings were reproduced, fixed, and covered by retained tests.

Spec

None. Both findings, including the queued-workflow variant, were reproduced, fixed, and covered by retained tests.

Security

None. An in-progress workflow whose only listed job had finished was read as green CI after its older run was dropped. an_in_progress_newer_run_with_only_a_finished_job_cannot_establish_green_ci failed on that listing before the fix and passes after it. The same observation on the merge base still includes the older failure, so this was introduced here; the open run now stays pending until it completes.

Security review outcome

No unaddressed introduced findings.

Review coverage

Both axes reviewed nine of the ten changed files. Both left src/prompts_page.rs unread: its later one-line change initializes the new optional workflow identity to None; the parent read it and checked regeneration. No generated-output exclusions.

Final reports, including each axis's files-read list and reproduction evidence, are saved in .thirdshift-review-lNGX5s/standards.md and .thirdshift-review-lNGX5s/spec.md in the worktree.

Built with codex · gpt-6.1-sol · xhigh

@JacobStephens2 JacobStephens2 changed the title Treat superseded CI runs as upstream moves Avoid Repairs for superseded CI runs Oct 22, 2026
Dropping a superseded run left a newer in-progress run that had finished one job looking like green CI, so a Merge run could land that head before a later job existed. The open run now stays unfinished until GitHub reports it completed.
@JacobStephens2
JacobStephens2 merged commit 67585f3 into main Oct 22, 2026
24 of 25 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-839 branch October 22, 2026 16:43
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI watch reads checks cancelled by a newer push as a failure and starts a Repair

1 participant