Skip to content

train_flake: remove its temp dirs on exit; add solo-rerun, AIMD, pin-test, deletion-budget rules - #2098

Merged
remigiusz-antczak merged 1 commit into
mainfrom
land/wave-1028ak-r5
Oct 28, 2026
Merged

remigiusz-antczak merged 1 commit into
mainfrom
land/wave-1028ak-r5

Conversation

@remigiusz-antczak

Copy link
Copy Markdown
Collaborator

train_flake.sh now removes the flake-store and flake-out temp dirs it creates (EXIT trap over only its own mktemp paths), on both the triage and --base paths, and leaves unrelated TMPDIR entries alone.

Doctrine additions, each pinned by the new test:

  • red-gate-triage.md: rerun a suspected flake solo with one worker before quarantining; AIMD for parallelism after flake bursts.
  • retrospective.md: every fixed incident leaves a pin test.
  • pipeline-optimizer.md: deletion budget for gates.

Verification

  • bash scripts/test-train-flake-cleanup.sh: 7/7, including a positive control that the triage run actually saw its flake store.
  • Independent review: 0 red, 1 yellow (positive control) fixed, 2 blue folded.

Supersedes #2093 and #2096: narrows the no-rm pin in test-fleet-lessons.sh to the EXIT trap (13/13), drops train_flake.sh from the mktemp-trap baseline now that it traps, and regenerates the deep-code-review INDEX left stale on main.

🤖 Generated with Claude Code

…test, deletion-budget rules

train_flake.sh now cleans up the flake-store and flake-out dirs it creates via an
EXIT trap over only its own mktemp paths. Short rules added to red-gate-triage,
retrospective and pipeline-optimizer; scripts/test-train-flake-cleanup.sh pins both.

Tests: 7/7 (test-train-flake-cleanup.sh), 13/13 (test-fleet-lessons.sh; no-rm pin narrowed to the EXIT trap)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@remigiusz-antczak
remigiusz-antczak merged commit e848e18 into main Oct 28, 2026
8 checks passed
@remigiusz-antczak
remigiusz-antczak deleted the land/wave-1028ak-r5 branch October 28, 2026 20:26
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.

1 participant