Tests remove the folder each logged child test ran in (AHT-204) #63

Merged
merge-queue merged 1 commit from test-temp-dirs into main 2026-11-28 04:32:56 -08:00
Owner

Part of AHT-204, the estate's logging standard: its check for logs not shipped found 34 %TEMP%\tuimail-<hex>\tuimail.log folders on nelsonlaptop, which are test leftovers, not a log.

logfile::tests::log_of_child makes a private temp folder for each child test's log and never removed it, so every cargo test left about six behind. It now removes the folder once the log is read, whatever the child's outcome.

  • Changed: log_of_child in src/logfile.rs.
  • Left alone: the tests themselves and every other temp folder, which their tests already remove.
  • Checked: cargo test log left no new folder (34 before and after, where each run used to add some); ci-check passed. The leftovers on nelsonlaptop are deleted.

🤖 Generated with Claude Code

Part of [AHT-204](https://openproject.home.romaine.life/wp/AHT-204), the estate's logging standard: its check for logs not shipped found 34 `%TEMP%\tuimail-<hex>\tuimail.log` folders on nelsonlaptop, which are test leftovers, not a log. `logfile::tests::log_of_child` makes a private temp folder for each child test's log and never removed it, so every `cargo test` left about six behind. It now removes the folder once the log is read, whatever the child's outcome. - Changed: `log_of_child` in `src/logfile.rs`. - Left alone: the tests themselves and every other temp folder, which their tests already remove. - Checked: `cargo test log` left no new folder (34 before and after, where each run used to add some); `ci-check` passed. The leftovers on nelsonlaptop are deleted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Tests remove the folder each logged child test ran in (AHT-204)
All checks were successful
Suite cluster-service / reused-checks (pull_request) Successful in 7s
Suite default / check-logs (pull_request) Successful in 7s
Suite release / check-build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request) Successful in 3m34s
Suite release / build (rust, aarch64-unknown-linux-gnu) (, rust-aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu, false, ubuntu-latest, aarch64-unknown-linux-gnu, rust) (pull_request) Has been skipped
Suite release / build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / dispatch (pull_request) Has been skipped
Suite rust / reused-checks (pull_request) Successful in 6s
Suite release / check-build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (pull_request) Successful in 2m32s
Suite release / check-build (rust, aarch64-unknown-linux-gnu) (, rust-aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu, false, ubuntu-latest, aarch64-unknown-linux-gnu, rust) (pull_request) Successful in 2m37s
Suite release / check-package (pull_request) Successful in 3m19s
merge-queue landed on main
Suite rust / check-typos (pull_request) Has been skipped
Suite rust / check-machete (pull_request) Has been skipped
Suite rust / check-audit (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite default / check-rules (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / build (rust, x86_64-unknown-linux-gnu) (, rust-x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu, false, ubuntu-latest, x86_64-unknown-linux-gnu, rust) (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / home-sync (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite release / build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request) Has been skipped
Suite rust / check-format (pull_request) Successful in 10s
Suite default / reused-checks (pull_request) Successful in 10s
Suite release / check-build (rust, x86_64-unknown-linux-gnu) (, rust-x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu, false, ubuntu-latest, x86_64-unknown-linux-gnu, rust) (pull_request) Successful in 1m29s
Suite rust / check-services (pull_request) Successful in 2m1s
Suite rust / check-test-windows (pull_request) Successful in 2m15s
Suite release / reused-checks (pull_request) Successful in 4s
94fc638765
logfile::tests::log_of_child made a private temp folder for each child
test's log and never removed it, so every test run left a
%TEMP%\tuimail-<hex>\tuimail.log behind (34 on nelsonlaptop). It now
removes the folder once the log is read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
merge-queue deleted branch test-temp-dirs 2026-11-28 04:32:56 -08:00
Sign in to join this conversation.
No description provided.