Skip to content

[test] Only cleanup temp directory when running CI#26567

Open
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:cleanup_temp_directory
Open

[test] Only cleanup temp directory when running CI#26567
sbc100 wants to merge 1 commit intoemscripten-core:mainfrom
sbc100:cleanup_temp_directory

Conversation

@sbc100
Copy link
Copy Markdown
Collaborator

@sbc100 sbc100 commented Mar 27, 2026

This causes all kind of issues if you have more than one emscripten checkout active at a given time (which I often do these days thanks the git worktrees and AI agents).

The tests themselves should never leak temp files. We even have EMTEST_DETECT_TEMPFILE_LEAKS (which we set during CI) that ensure this is the case.

I think the parallel test runner can leak temp directories if its killed at the wrong time, but #25615 should help with that.

See #25614 and #26110

@sbc100 sbc100 requested review from brendandahl, juj and kripken March 27, 2026 20:50
@sbc100 sbc100 force-pushed the cleanup_temp_directory branch 3 times, most recently from 945231d to 8d1c534 Compare March 27, 2026 20:53
This causes all kind of issues if you have more than one emscripten
checkout active at a given time (which I often do these days thanks the
git worktrees and AI agents).

The tests themselves should never leak temp files. We even have
`EMTEST_DETECT_TEMPFILE_LEAKS` (which we set during CI) that ensure this
is the case.

I think the parallel test runner can leak temp directories if its killed
at the wrong time, but emscripten-core#25615 should help with that.

See emscripten-core#25614 and emscripten-core#26110
@sbc100 sbc100 force-pushed the cleanup_temp_directory branch from 8d1c534 to 7eff1bd Compare March 28, 2026 02:42
@sbc100 sbc100 requested a review from brendandahl March 28, 2026 02:42
@sbc100 sbc100 enabled auto-merge (squash) March 28, 2026 02:42
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.

2 participants