From e879732d00e4c4a99d1a4e66a7404cc6aa8ce2d1 Mon Sep 17 00:00:00 2001 From: Simon Whitty Date: Mon, 16 Nov 2026 07:16:11 +1100 Subject: [PATCH] Note that timeout leaves swiftpm-testing-helper running on macOS --- AGENTS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/AGENTS.md b/AGENTS.md index aad32ee4..05561003 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -52,6 +52,7 @@ container run --rm --mount src="$(pwd)",target=/flyingfox,type=bind swift:6.4 \ - Pass `--event-stream-output-path --experimental-event-stream-version 0` to get a JSON line per event. While the run is still going, SwiftPM writes these to a temporary `event-stream-*.jsonl` file (find it with `lsof -p ` on the `swiftpm-testing-helper` process). It only copies the file to your path at the end. - A test with a `testStarted` event and no `testEnded` is the stuck one. - `sample ` on macOS shows where each thread is waiting. +- On macOS, `timeout` kills `swift test` but leaves its `swiftpm-testing-helper` child running, still holding sockets and CPU. Kill any leftover helper (`pkill -f swiftpm-testing-helper`) before the next run, or it can make later runs slow or flaky. ### Known flaky tests