Skip to content

Conversation

@the-mann
Copy link
Contributor

@the-mann the-mann commented Dec 9, 2025

Problem

GitHub Actions workflows are failing with 'No space left on device' errors during builds.

Solution

  • Added centralized disk cleanup script
  • Updated root workflows to use the script before building
  • Frees ~20GB by removing unused tools (.NET, Android SDK, Haskell)

This follows the standard pattern used by other AWS repositories (aws/aws-sam-cli, aws/amazon-q-developer-cli).

Fixes the failing workflow: https://github.com/aws/amazon-cloudwatch-agent/actions/runs/20068783494

- Add centralized disk cleanup script (.github/scripts/free-disk-space.sh)
- Update root workflows to use script: test-build.yml, test-build-packages.yml, test-build-docker.yml, test-build-distributor.yml
- Update PR-build.yml to use script (Linux only)
- Frees ~20GB by removing .NET, Android SDK, Haskell, CodeQL tools

Fixes 'No space left on device' errors in build workflows
@the-mann the-mann requested a review from a team as a code owner December 9, 2025 18:58
Keep CodeQL tools as they may be needed for security scanning
@the-mann the-mann added the ready for testing Indicates this PR is ready for integration tests to run label Dec 9, 2025
okankoAMZ
okankoAMZ previously approved these changes Dec 9, 2025
Keep pre-installed tools as workflows may depend on them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for testing Indicates this PR is ready for integration tests to run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants