Skip to content

[build] Expand Ubuntu disk cleanup and add pre-build space checks in CI#17538

Merged
AutomatedTester merged 5 commits into
trunkfrom
cranky-wright-6dfa6f
May 21, 2026
Merged

[build] Expand Ubuntu disk cleanup and add pre-build space checks in CI#17538
AutomatedTester merged 5 commits into
trunkfrom
cranky-wright-6dfa6f

Conversation

@AutomatedTester
Copy link
Copy Markdown
Member

Summary

  • Expand the Ubuntu disk space cleanup step to remove Android SDK (~15GB), Google Cloud SDK (~3GB), CodeQL (~5GB), and Docker images (~10–20GB). Together with the existing removals (GHC, Boost, Swift, Julia) this frees an additional ~33–43GB before the build starts. Docker image removal is safe: no CI workflow uses Docker services or containers.
  • Add a "Disk usage after cache restore" step (df -h /) immediately after both setup-bazel variants so we can see how much the Bazel repository cache (currently ~3.5GB compressed) costs after extraction — the biggest single disk spike in any job.
  • Add a "Check disk space before build" step on Ubuntu that hard-fails with a clear error message if less than 10GB is available. This catches disk exhaustion before Run Bazel starts, replacing a cryptic mid-build OOM with a named, actionable failure.

Motivation

Investigated a CI failure where disk space was identified as a risk. The existing cleanup only freed ~5–10GB and the end-of-job 5GB check fires too late to give a useful error. These changes add headroom and visibility at the points that matter.

Note: the threshold on the end-of-job check (currently 5GB) is left unchanged here — that change is under separate consideration.

@selenium-ci selenium-ci added the B-build Includes scripting, bazel and CI integrations label May 21, 2026
@AutomatedTester AutomatedTester merged commit 0c2ea9d into trunk May 21, 2026
115 of 117 checks passed
@AutomatedTester AutomatedTester deleted the cranky-wright-6dfa6f branch May 21, 2026 18:26
@AutomatedTester AutomatedTester restored the cranky-wright-6dfa6f branch May 22, 2026 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B-build Includes scripting, bazel and CI integrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants