Skip to content

Conversation

@gwarmstrong
Copy link
Collaborator

@gwarmstrong gwarmstrong commented Feb 13, 2026

Summary

  • Remove irrelevant files to free disk space on Ubuntu runners
  • Add docker builder prune -f between image builds to prevent "no space left on device" during sandbox image load

Summary by CodeRabbit

  • Chores
    • Optimized CI/CD build pipeline for improved efficiency and reliability, including refined disk space management and additional builder pruning to reclaim space during image builds.
    • Introduced cache-busting for sandbox image builds to ensure updated build artifacts.

Remove irrelevant files to free disk space on Ubuntu runners. Add
docker builder prune between image builds to prevent "no space left
on device" during sandbox image load.

Signed-off-by: George Armstrong <[email protected]>
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 13, 2026

📝 Walkthrough

Walkthrough

CI workflow and Dockerfile updated: workflow replaces macOS-specific disk cleanup with Linux-focused removals and adds docker builder prune -f steps; Dockerfile.sandbox adds a CACHEBUST build ARG.

Changes

Cohort / File(s) Summary
Workflow disk cleanup & Docker cache
.github/workflows/tests.yml
Renamed cleanup step to target Ubuntu; removed macOS-specific cleanup commands and added Linux removals (dotnet, ghc, boost, AGENT_TOOLSDIRECTORY). Added docker builder prune -f after initial image build and after the Nemo skills image build to prune buildx caches.
Sandbox Dockerfile build cache
dockerfiles/Dockerfile.sandbox
Added ARG CACHEBUST=2026-02-12 to enable explicit cache busting during builds; no other functional changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • activatedgeek
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Fix CI disk space for Docker image builds' directly summarizes the main objective of the pull request, which is to address disk space issues in CI pipelines during Docker image builds.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into main

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch georgea/fix-ci-disk-space

No actionable comments were generated in the recent review. 🎉


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gwarmstrong gwarmstrong force-pushed the georgea/fix-ci-disk-space branch from 8da2f5a to 6bdf6dd Compare February 13, 2026 00:34
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

2 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile


# Use the base image with Python 3.10 and Flask
FROM tiangolo/uwsgi-nginx-flask:python3.10
ARG CACHEBUST=2026-02-12
Copy link
Contributor

Choose a reason for hiding this comment

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

The CACHEBUST ARG invalidates the entire Docker cache on every build since it's placed early in the Dockerfile. This defeats the purpose of the --cache-from and --cache-to flags in .github/workflows/tests.yml:63-64,82-83.

If this was added only for testing purposes (as suggested by the commit message "to test full uncached CI build"), it should be removed before merging.

If cache invalidation is needed permanently, consider:

  1. Moving it later in the Dockerfile (after stable layers)
  2. Passing it as a build-arg with a timestamp: --build-arg CACHEBUST=$(date +%s)
  3. Removing it entirely if the docker builder prune -f on line 72 of tests.yml already solves the disk space issue

@gwarmstrong gwarmstrong requested a review from Kipok February 13, 2026 01:00
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, no comments

Edit Code Review Agent Settings | Greptile

@Kipok Kipok enabled auto-merge (squash) February 13, 2026 01:11
@Kipok Kipok merged commit e80d524 into main Feb 13, 2026
5 checks passed
@Kipok Kipok deleted the georgea/fix-ci-disk-space branch February 13, 2026 01:26
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.

2 participants