Windows CI: clean up legacy clcache cache after #4472
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- build-system, ci-cd, infrastructure
Research direction
Start with the existing git-clean-windows job and the worker paths listed in the issue. Drain one Windows worker, record disk-free space and the sizes of the four cache/workspace directories, verify C:\clcache_dir\config.txt and clcache -s, then remove the legacy cache and measure again. Done means the cleanup is evaluated one worker at a time and the cache-limit decision is based on the recorded size and hit-rate results.
Written by the indexing model from the issue text.
Description
This is a follow-up to my #4472. That change fixed the recurring clcache [WinError 5] failures, but it intentionally left %USERPROFILE%\clcache behind when the active cache moved to C:\clcache_dir.
The old directory is no longer managed by clcache, while the new cache has its own 20 GB limit. The Windows workers already had low disk space before #4472, so this is not necessarily the only cause. However, in equal 59-hour windows around the merge, the fleet's low-disk alert time increased from 16.6% to 49.4%; x64-2 later reached 100%, and the reliability reports recorded disk-space failures on September 19 and September 20.
Before changing the configuration again, could someone with worker access check one machine first?
- Drain the worker and record
fsutil volume diskfree C:. - Record the logical sizes of
C:\clcache_dir,%USERPROFILE%\clcache,C:\ccache\cache, andC:\workspace. Hardlinks mean the total may double-count physical blocks. - Confirm
C:\clcache_dir\config.txtexists and captureclcache -s. - Remove the old
%USERPROFILE%\clcachedirectory as a one-off operation, then measure physical free space again. - If that recovers useful space, repeat one worker at a time.
The active 20 GB limit also needs checking. clcache starts cleanup at the limit and targets about 18 GB, but it is not aware of free disk space or the other caches and workspaces on C:. A fresh 18–20 GB cache may itself be too large on workers that are already above 90% usage. The size and hit-rate measurements should tell us whether a smaller limit is warranted.
I cannot collect these values myself because my account has no Jenkins Overall/Read permission. If removing the old cache is insufficient, the existing git-clean-windows job is the next immediate step.
Related: #4442, #3897.
AI disclosure: OpenAI Codex assisted with the investigation, analysis, and drafting. I reviewed and revised the conclusions and final text.
- Dominant language
- Jinja
- Stars
- 541
- Forks
- 185
- Avg merge
- 22h 15m
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nodejs/build
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
build-agenda platform:linux-intel platform:linuxONE platform:ppc
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 1/5 Under an hour Newbie friendliness 20/100
-
incident
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
platform:macos
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oSoWoSo/vOid_Community_repOsitory#147 · 1 comment ·
-
Builders
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100