Repository navigation
Avoid Repairs for superseded CI runs - #1081
Merged
Merged
Conversation
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.
Merged
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
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, viacargo 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 on1e7c22b(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 mainpassed 2,351 tests, 56 skipped in 1,396.67s (23m 17s), including 24.18s of compilation;cargo test --test console_installalso 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
ETXTBSY(Text file busy) whileunit_preserves_literal_paths_with_shell_and_systemd_metacharacterslaunched its freshly copied fixture binary, before thirdshift started (tests/console_install.rs:404); the test andsrc/console/install.rsare byte-identical tomainatcae12bc, andcargo test --test console_installpasses 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_cifailed 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.rsunread: its later one-line change initializes the new optional workflow identity toNone; 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.mdand.thirdshift-review-lNGX5s/spec.mdin the worktree.Built with codex · gpt-6.1-sol · xhigh