ci(windows): free build working set before the persist copy (persist OOM) #28
Reference in New Issue
Block a user
Delete Branch "ci/free-before-persist"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
Build #111 got all the way through driver-inject + ISO repack + validation, then failed at "Persist build output to stable path":
Copy-Item … 'C:\silvermetal\out\'→ "There is not enough space on the disk".Cause
The build's working set under
RUNNER_TEMP(extracted ISO tree + the mounted/expandedinstall.wim~15-20 GB + the 5 GB base ISO + the 5 GB output) fills the single-volume runner. By persist time there's < 5 GB free for the second 5 GB copy. The image grew again with the injected NetKVM driver.Fix
Before the persist copy, delete
RUNNER_TEMP\smbuild+RUNNER_TEMP\base.iso(no longer needed once the ISO is built + validated) to reclaim ~10 GB. The ISO itself lives inRUNNER_TEMP\out(untouched; the SBOM/SHA/ISO uploads still read from there).Test Plan
C:\silvermetal\out🤖 Generated with Claude Code
Build got through the ISO repack but failed copying the 5GB ISO to C:\silvermetal\out ('not enough space'): the build's working set (extracted ISO tree + expanded install.wim + 5GB base ISO) fills the single-volume runner, leaving <5GB for the persist copy. The image grew again with the injected driver. Delete RUNNER_TEMP\smbuild + base.iso (no longer needed post-build/validate) right before the copy to reclaim ~10GB. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>