Skip to content

fix(ci): add Linux host disk cleanup for CI builds#27

Merged
agneszitte merged 3 commits intomainfrom
dev/agzi/ci-linux-host-cleanup
Mar 30, 2026
Merged

fix(ci): add Linux host disk cleanup for CI builds#27
agneszitte merged 3 commits intomainfrom
dev/agzi/ci-linux-host-cleanup

Conversation

@agneszitte
Copy link
Copy Markdown
Member

@agneszitte agneszitte commented Mar 29, 2026

What

Adds a Linux host disk cleanup step to all Linux CI jobs to reclaim disk space by removing unused pre-installed software.

Why

Linux CI agents accumulate ~20–30 GB of pre-installed software (Cargo, Rust, Swift, Edge, GHC, Mono, Android SDK, CodeQL, snapd) that is not needed for builds. This cleanup step runs at the start of each Linux job to ensure sufficient disk space.

Details

  • Adds a GHA composite action (.github/actions/host-cleanup-linux/action.yml) with inline cleanup script
  • Cleanup is conditional on Linux (if: runner.os == 'Linux')
  • Uses sudo -n (non-interactive) probe to work safely in both host and container environments
  • All removals are best-effort (|| true) with timeout guards on snap/apt-get commands
  • Uses DEBIAN_FRONTEND=noninteractive for apt-get to prevent dpkg prompts

Part of org-wide CI disk cleanup initiative.
Related to https://github.com/unoplatform/uno.rider/pull/480

Copilot AI review requested due to automatic review settings March 29, 2026 16:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a Linux-only disk cleanup step to the wasm-tests GitHub Actions job to reclaim space on ubuntu-latest runners before publishing and running WASM runtime tests.

Changes:

  • Introduce a Free disk space (Linux) step that removes large, preinstalled SDKs/tools and optional components (Swift, Mono, Android, GHC, CodeQL, snaps).
  • Print disk usage before/after cleanup to aid CI diagnostics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agneszitte agneszitte force-pushed the dev/agzi/ci-linux-host-cleanup branch from 6070009 to ead1947 Compare March 29, 2026 16:55
- Use conditional sudo for container compatibility
- Use apt-get purge instead of apt remove
- Use rm -rf consistently
- Add || true on all sudo lines for best-effort cleanup
Copilot AI review requested due to automatic review settings March 29, 2026 18:40
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
@agneszitte agneszitte changed the title ci: add Linux host disk cleanup step for CI builds fix(ci): add Linux host disk cleanup for CI builds Mar 29, 2026
@agneszitte agneszitte requested a review from Copilot March 29, 2026 18:48
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agneszitte agneszitte merged commit dbe8381 into main Mar 30, 2026
12 checks passed
@agneszitte agneszitte deleted the dev/agzi/ci-linux-host-cleanup branch March 30, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants