Skip to content

jenkins,win: remove the legacy clcache directory - #4485

Open
P4suta wants to merge 1 commit into
nodejs:mainfrom
P4suta:win-clcache-legacy-cleanup
Open

P4suta wants to merge 1 commit into
nodejs:mainfrom
P4suta:win-clcache-legacy-cleanup

Conversation

@P4suta

@P4suta P4suta commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Refs #4477

#4472 left the old %USERPROFILE%\clcache behind, possibly up to 20 GB per worker.
Since then the Windows workers have been running out of disk: every reliability report from September 20 to September 24 lists 8–16 PRs failing with Failed to create a temp file on C:\workspace\..., and earlier reports list none.
The latest report, for September 25, has none, but low-disk alerts are still firing.

This deletes the old directory on every compile, so no one has to clean the workers by hand.
It sits outside the clcache block because the failing builds are all ClangCL, which never enter it.
It is a no-op once the directory is gone, and can be reverted later.

I checked it on Windows 11 against compile.cmd with a stubbed vcbuild.bat: it deletes the directory, does nothing when the directory is absent, and never stops the build.
I can't see the workers, so I don't know how large the old directory really is.

Assisted by Claude Code; I reviewed and verified everything myself.

Since nodejs#4472, clcache keeps its cache in C:\clcache_dir, and nothing uses %USERPROFILE%\clcache any more.
The old directory may still hold up to its 20 GB limit on each worker, and the Windows workers have been hitting low-disk alerts and "Failed to create a temp file" failures since that change landed.

Delete it at the start of every compile, outside the clcache block, so that the first build of any kind on each worker removes it, including ClangCL builds that never enter that block.
The check is a no-op once the directory is gone, and this line can be reverted after every worker has run a build.

Refs: nodejs#4477
Refs: nodejs#4472
Assisted-by: Claude Code
Signed-off-by: Yasunobu <42543015+P4suta@users.noreply.github.com>
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.

1 participant