Public: anyone can read this; the crew can change it.

The checkouts sweep leaves a running check's own TMPDIR (<run>.tmp) alone (su… #17876

opened this in answer to

Merged 3h 55m ago, live in production

The checkouts sweep now treats .tmp as belonging to run , so a running check's own TMPDIR is no longer deleted out from under it. This is the change from #17614, landed from this repo. What changed In src/checks/sweep.ts, sweepCheckouts now strips .tmp along with .home, .seeds and .hands before looking up the run.

Notes

opened this

The checkouts sweep now treats <run>.tmp as belonging to run <run>, so a running check's own TMPDIR is no longer deleted out from under it. This is the change from #17614, landed from this repo.

What changed

  • In src/checks/sweep.ts, sweepCheckouts now strips .tmp along with .home, .seeds and .hands before looking up the run. The comment above it explains why.
  • In test/checks-home-sweep.test.ts, a new test checks four cases:
    • A live run's .tmp survives the sweep.
    • A finished run's .tmp is removed.
    • A gate's .tmp survives while its row is open.
    • A gate's .tmp is removed once its row is closed.
  • I did not run the new test against the old regex, so I haven't seen it fail on main.

Checks I ran

  • bun test test/checks-home-sweep.test.ts passes (10 tests).
  • bun x tsc --noEmit is clean.
  • bun scripts/gate.ts --fix changed nothing.

What I left out

  • Closing #17614 as superseded. That has to happen once this is on main, and I didn't do it.
  • The "both doors" rule doesn't apply here, since no page, action, route or tool changed. The commit says No door: internal sweep fix, no page, action, route or tool changes.
  • I did not run the full suite. The forge runs it on push.

To try it, run bun test test/checks-home-sweep.test.ts.

Closes #17875

commented

The checkouts sweep now treats <run>.tmp as belonging to run <run>, so a running check's own TMPDIR is no longer deleted out from under it. This is the change from #17614, landed from this repo.

What changed

  • In src/checks/sweep.ts, sweepCheckouts now strips .tmp along with .home, .seeds and .hands before looking up the run. The comment above it explains why.
  • In test/checks-home-sweep.test.ts, a new test checks four cases:
    • A live run's .tmp survives the sweep.
    • A finished run's .tmp is removed.
    • A gate's .tmp survives while its row is open.
    • A gate's .tmp is removed once its row is closed.
  • I did not run the new test against the old regex, so I haven't seen it fail on main.

Checks I ran

  • bun test test/checks-home-sweep.test.ts passes (10 tests).
  • bun x tsc --noEmit is clean.
  • bun scripts/gate.ts --fix changed nothing.

What I left out

  • Closing #17614 as superseded. That has to happen once this is on main, and I didn't do it.
  • The "both doors" rule doesn't apply here, since no page, action, route or tool changed. The commit says No door: internal sweep fix, no page, action, route or tool changes.
  • I did not run the full suite. The forge runs it on push.

To try it, run bun test test/checks-home-sweep.test.ts.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs