From b192b837fde13374ff0a0388f17bedae26d60003 Mon Sep 17 00:00:00 2001 From: Yasunobu <42543015+P4suta@users.noreply.github.com> Date: Fri, 25 Sep 2026 23:07:19 +0900 Subject: [PATCH] jenkins,win: remove the legacy clcache directory Since #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: https://github.com/nodejs/build/issues/4477 Refs: https://github.com/nodejs/build/pull/4472 Assisted-by: Claude Code Signed-off-by: Yasunobu <42543015+P4suta@users.noreply.github.com> --- jenkins/scripts/windows/compile.cmd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jenkins/scripts/windows/compile.cmd b/jenkins/scripts/windows/compile.cmd index 0592cc7f3..282b43050 100644 --- a/jenkins/scripts/windows/compile.cmd +++ b/jenkins/scripts/windows/compile.cmd @@ -8,6 +8,8 @@ set "msbuild_args=/binaryLogger:node.binlog" echo %nodes% | findstr /R "_clang" >nul set "not_clang=%errorlevel%" +if exist "%USERPROFILE%\clcache" rmdir /s /q "%USERPROFILE%\clcache" + :: Opt-in for a clcache if %not_clang% equ 1 if not defined DISABLE_CLCACHE if exist C:\clcache\dist\clcache_main\clcache_main.exe ( set CLCACHE_OBJECT_CACHE_TIMEOUT_MS=60000