Skip to content

ci_digest: triage time-ratchet-only reds, infra knock-ons, roll-ups and stale-base main reds (Part of #5273) - #5275

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5273-20261016T1724Z
Oct 16, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5273-20261016T1724Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5273 (does not close it until the gaps below are decided).

tests/tools/ci_digest.py triaged these reds real, sending a worker to a red with nothing to fix. Now:

Class member ("non-real reds triaged real") Before Now Test
Ratchet-only red, over-limit tests outside the PR diff real flake test_a_ratchet_only_red_outside_the_pr_diff_is_a_flake
Ratchet-only red, in the diff, at most 1.5x the limit (15 s, or 2x the baseline) real flake ..._real_over_1_5x_and_flake_under
Ratchet-only red, in the diff and over 1.5x real real same
Ratchet overage plus a failed test or any other error; unreadable PR file list real real ..._stays_real, test_an_unreadable_pr_file_list...
Roll-ups full-suite, ground-truth real their failed parts' non-real triage; any real part keeps real test_the_full_suite_roll_up..., test_the_ground_truth_roll_up...
det after a db2/shard/plan infra failure real infra test_det_after_a_db2_infra_failure...
Stale-base main red (failing tests' files changed on main since the merge-base, not edited by the PR) real main, repro git merge origin/main test_a_stale_base_main_red...
Real failures (failed test, NOT PROVEN, lint error, big in-diff overage, test main did not touch) real real test_real_failures_still_triage_real and negatives

The det check is the same mechanism as the roll-ups (PARTS), so one table covers both the knock-on and the roll-up cases. The shepherd already handles main and infra, so no shepherd or workflow edit. New digest keys: ratchet, ratchet_only.

Sibling gaps

  • PARTS mirrors the job names in smoke-test.yml / mainframe-ground-truth.yml / det-sweep.yml by hand (the check-runs API has no needs); a renamed job silently falls back to the old triage.
  • Stale-base only looks at the failing tests' own files, so a main fix in source code only is still real (as the issue specifies). A test file main touched but the PR broke through source is read as main; the shepherd's merge then fails again and it is real on the next head.
  • A roll-up with no failed part job (cancelled parent) is unchanged.

Gates: pr_gates --fast 6/6, --ratchets 8 pass 0 skipped; pytest tests/tools/test_ci_digest.py test_ci_shepherd.py test_shepherd_gh.py 111 pass.

Lessons for agents

  • A scripted edit that starts with cat > file ... || and no heredoc waits on stdin and hangs the Bash tool: write the script with the Write tool and run it.

🤖 Generated with Claude Code

…nd stale-base main reds (Part of #5273)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 16, 2026 17:37
@squid-protocol
squid-protocol enabled auto-merge (squash) October 16, 2026 17:39
@squid-protocol
squid-protocol merged commit ea14003 into main Oct 16, 2026
43 checks passed
@squid-protocol
squid-protocol deleted the churn/5273-20261016T1724Z branch October 16, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant