test(smoke): kill matcha run's whole process group #26

Merged
chrnx merged 1 commits from fix/smoke-kill-server-group into develop 2026-11-19 19:17:19 +00:00
Owner

starter (edge) fails after every check passes: rm: cannot remove '/tmp/.../demo': Directory not empty (PR #25, runs 753 and its rerun). wrangler's workerd is a grandchild of matcha run; pkill -P only reached direct children, so workerd kept writing demo/.wrangler during cleanup.

The server now starts under set -m (its own process group) and stop_server kills the group and waits. Verified locally on macOS: scripts/starter-smoke.sh edge exits 0 with no wrangler/workerd left running.

`starter (edge)` fails after every check passes: `rm: cannot remove '/tmp/.../demo': Directory not empty` (PR #25, runs 753 and its rerun). wrangler's `workerd` is a grandchild of `matcha run`; `pkill -P` only reached direct children, so workerd kept writing `demo/.wrangler` during cleanup. The server now starts under `set -m` (its own process group) and `stop_server` kills the group and waits. Verified locally on macOS: `scripts/starter-smoke.sh edge` exits 0 with no wrangler/workerd left running.
chrnx added 1 commit 2026-11-19 19:09:51 +00:00
test(smoke): kill matcha run's whole process group
CI / installer (macos-14) (pull_request) Successful in 5s
CI / check (pull_request) Successful in 37s
CI / starter (deno) (pull_request) Successful in 43s
CI / starter (edge) (pull_request) Successful in 56s
CI / starter (node) (pull_request) Successful in 42s
CI / core-freshness (pull_request) Has been skipped
CI / installer (ubuntu-latest) (pull_request) Successful in 11s
CI / starter (bun) (pull_request) Successful in 6m40s
0865d9a479
On edge, wrangler's workerd is a grandchild of matcha run. pkill -P only
reached direct children, so workerd kept writing demo/.wrangler and the
cleanup's rm -rf failed with "Directory not empty" after every check had
passed. Start the server in its own process group and kill the group.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx merged commit bcd5f79990 into develop 2026-11-19 19:17:19 +00:00
Sign in to join this conversation.