ci(windows): free disk space before build (fixes oscdimg out-of-space) #22

Merged
SilverLABS merged 1 commits from ci/free-disk-before-build into main 2026-06-10 08:50:15 +00:00
Owner

Summary

Build #104 (the WinPE-collector merge) failed at Stage 6 oscdimg: Insufficient disk space ... need 5319557120 bytes. The collector work added WinPE-NetFx/PowerShell to boot.wim (image grew ~0.4 GB → 5.32 GB), and each successful build persists a ~5 GB ISO to C:\silvermetal\out\. On the single-volume runner (no usable D:/E:) that accumulation starves oscdimg.

Fix

Add a "Free disk space" step at the start of the build job that clears the prior ISO output (C:\silvermetal\out\*) and any stale smbuild work dir before building, logging before/after free space. Space now self-heals every run.

(I also manually deleted the stale 4.94 GB ISO on the runner so this build has headroom; this step makes it durable.)

Test Plan

  • YAML validates (yaml.safe_load)
  • Build goes green through oscdimg + the new boot.wim collector assertions, persists the ISO

🤖 Generated with Claude Code

## Summary Build #104 (the WinPE-collector merge) failed at **Stage 6 oscdimg**: `Insufficient disk space ... need 5319557120 bytes`. The collector work added WinPE-NetFx/PowerShell to `boot.wim` (image grew ~0.4 GB → 5.32 GB), and each successful build *persists* a ~5 GB ISO to `C:\silvermetal\out\`. On the single-volume runner (no usable D:/E:) that accumulation starves oscdimg. ## Fix Add a **"Free disk space"** step at the start of the build job that clears the prior ISO output (`C:\silvermetal\out\*`) and any stale `smbuild` work dir before building, logging before/after free space. Space now self-heals every run. (I also manually deleted the stale 4.94 GB ISO on the runner so this build has headroom; this step makes it durable.) ## Test Plan - [x] YAML validates (`yaml.safe_load`) - [ ] Build goes green through oscdimg + the new boot.wim collector assertions, persists the ISO 🤖 Generated with [Claude Code](https://claude.com/claude-code)
SilverLABS added 1 commit 2026-06-10 08:49:59 +00:00
ci(windows): free disk space before build (clear prior ISO output)
Some checks failed
Build SilverMetal Enhanced - Windows ISO / build (pull_request) Failing after 21s
7eec584a66
The boot.wim now carries WinPE-NetFx/PowerShell (collector), growing the image ~0.4GB,
and each build persists a ~5GB ISO to C:\silvermetal\out. On the single-volume runner
that accumulation starved oscdimg ('Insufficient disk space'). Clear prior output +
stale smbuild work dirs at job start so free space self-heals each run.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
SilverLABS merged commit 3538f43267 into main 2026-06-10 08:50:15 +00:00
SilverLABS deleted branch ci/free-disk-before-build 2026-06-10 08:50:15 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SilverLABS/SilverMetal#22