Skip to content

Re-run failed Base branch CI and report flaky tests - #1609

Merged
JacobStephens2 merged 6 commits into
mainfrom
issue-1561
Oct 29, 2026
Merged

JacobStephens2 merged 6 commits into
mainfrom
issue-1561

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Summary

Pickup retains flaky Base branch CI evidence and keeps new failures visible.

latest Base branch push run
  first failure → re-run failed jobs once; file nothing
  re-run red   → wait 30 minutes; file CI-red Ticket or comment new commit
  re-run green → file deduplicated Flaky-test Ticket; implement from evidence

Refused or impossible re-runs warn and proceed directly to ordinary filing.
needs-info CI-red Tickets no longer suppress new reports. The origin CI
reservation covers reading evidence, re-running, filing and commenting.
ADR-0026 records the choice; the manual, glossary and site explain it.

Closes #1561

Test seams

  • Public thirdshift pickup command against real Git repositories and fake
    gh: workflow attempts, logs, re-runs, report deduplication, comments and
    occupied origin reservations.
  • Public Ticket run on an Issue URL against fake Harness and gh: ordinary
    bug diagnosis and the Flaky-test Ticket implementation path.
  • Existing Pickup protocol model: claimed-dispatch safety and its recorded
    pre-Claim limitation; the CI reporting reservation is outside this model.

Evidence

  • Before: fresh failed push CI requested zero re-runs; green re-run CI
    produced no flaky report; needs-info suppressed the new CI-red report;
    an active CI-red Ticket received no evidence comment. The focused regression
    tests failed on each behavior before its implementation.
    After: focused regressions pass, including later attempts, grace period,
    same-test and per-attempt deduplication, refused re-runs and occupied leases.
  • cargo check --locked: passed.
  • CI reporting regressions passed, including both exact Spec-review commands
    after their recorded failures; both reviewer-provided tests are retained.
  • Existing Pickup and bug diagnosis tests: 116 and 14 passed; Pickup protocol
    model: 4 passed. Its documented pre-Claim counterexample remains, and the
    explicit literal-property assertion still fails as documented.
  • npm test --prefix site: 54 passed, including generated manual checks and
    browser coverage at mobile and desktop widths.
  • CARGO_TEST_THREADS=3 /usr/bin/time -p scripts/affected-tests main: passed.
    The fallback cargo test ran 3,485 passing tests across 78 targets (75 ignored
    fixture, platform or explicitly documented cases), in 1,785.84 seconds with
    compilation included (12.04 seconds). Site checks passed in 55.61 seconds;
    total wall time was 1,841.61 seconds.
  • All GitHub CI and release checks passed on a2b0e227.

Review coverage

Independent review against main (0268b3b9): Standards raised 1 naming
finding, fixed; Spec raised 2 findings about Node reporter evidence and dotted
test-name deduplication. Both exact reproducer commands failed as reported;
both findings are fixed and their regressions retained.
Both reviewers read all 16 changed files, including the generated manual's
changed hunks. Generated exclusions: none. Unread changed files: none.

Unaddressed findings

Standards

None. The naming finding was addressed by BaseCiEvidence, ci_report and
consistent handle_base_ci helpers.

Spec

None. Both exact Node reporter and dotted-name regressions failed before their
fixes and pass after them; both remain in tests/pickup_run/base_ci.rs.

Security

None. Pickup records Base CI evidence only from a Trusted account's issue or comment.

Security review outcome

No unaddressed introduced findings.

Merge Danger

Door: two-way

Reverting restores the previous Pickup CI reporting behavior. Already requested
GitHub re-runs, filed issues and comments remain visible.

Blast Radius: Pickup

Base branch push CI may now request one failed-jobs re-run and publish evidence.
Flaky-test Tickets bypass reproduction; other bug Tickets, Base fixes, Delivery
and Self-merge CI policy retain their existing behavior.

Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh

@JacobStephens2
JacobStephens2 merged commit 70f3808 into main Oct 29, 2026
18 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-1561 branch October 29, 2026 14:38
@JacobStephens2 JacobStephens2 mentioned this pull request Oct 29, 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.

Main's CI goes red on flaky tests, and the CI-red Ticket loop stalls on them

1 participant