Skip to content

feat(reusable-ci): opt-in free-runner-disk input for Go CI - #385

Merged
jdfalk merged 2 commits into
mainfrom
feat/reusable-ci-free-runner-disk
Nov 5, 2026
Merged

jdfalk merged 2 commits into
mainfrom
feat/reusable-ci-free-runner-disk

Conversation

@jdfalk

@jdfalk jdfalk commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Adds a boolean input, free-runner-disk (default false). When it is true on a Linux runner, the Go CI job removes /usr/share/dotnet, /usr/local/lib/android, /opt/ghc and /opt/hostedtoolcache/CodeQL (about 25 GB) before setup-go restores its cache.

Why: audiobook-organizer's Go CI job failed with /usr/bin/ld: final link failed: No space left on device. A hosted ubuntu runner leaves about 14 GB free, and a large Go cache plus -race test binaries fill it. If the disk fills during the cache restore itself, the runner can't write its diagnostic log, so the job shows no output at all. That repo's own ci.yml already does this in every job that restores the Go cache (falkcorp/audiobook-organizer#4363). This PR brings the reusable workflow's Go CI into line.

The input is off by default, so existing callers keep their toolchains and see no change. actionlint passes. .github/guid-index.json was regenerated by the pre-commit hook.

🤖 Generated with Claude Code

https://claude.ai/code/session_011To9HMPWLJ4CK19QKvZ7kM

Adds a boolean input, free-runner-disk (default false). When it is true
on a Linux runner, Go CI removes the preinstalled .NET, Android, GHC and
CodeQL toolchains (about 25 GB) before setup-go restores its cache.
audiobook-organizer's Go CI hit "final link failed: No space left on
device" with its large Go cache and -race test binaries. Off by default,
so existing callers are unaffected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011To9HMPWLJ4CK19QKvZ7kM
@github-actions github-actions Bot added size/S github-actions GitHub Actions related work module:config Configuration management workflow:github-actions GitHub Actions workflows labels Nov 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011To9HMPWLJ4CK19QKvZ7kM
@github-actions github-actions Bot added size/M type:documentation Improvements or additions to documentation labels Nov 5, 2026
@jdfalk
jdfalk merged commit 8e4eeeb into main Nov 5, 2026
42 checks passed
@jdfalk
jdfalk deleted the feat/reusable-ci-free-runner-disk branch November 5, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github-actions GitHub Actions related work module:config Configuration management size/M size/S type:documentation Improvements or additions to documentation workflow:github-actions GitHub Actions workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant