Skip to content

ci: background free-disk-space.sh and drop docker prune#1890

Open
gilescope wants to merge 1 commit into
mainfrom
giles-free-disk-space-bg
Open

ci: background free-disk-space.sh and drop docker prune#1890
gilescope wants to merge 1 commit into
mainfrom
giles-free-disk-space-bg

Conversation

@gilescope

Copy link
Copy Markdown
Contributor

no need to wait for the disk space to be freed.

Signed-off-by: Giles Cope <gilescope@gmail.com>
@gilescope
gilescope requested a review from a team as a code owner July 16, 2026 07:36

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 596eb19cfe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- name: Free disk space
if: steps.guard.outputs.hit != 'true' && runner.environment != 'self-hosted'
run: scripts/free-disk-space.sh
run: scripts/free-disk-space.sh > /tmp/free-disk-space.log 2>&1 &

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Wait for disk cleanup before starting the build

On GitHub-hosted runners this step now returns immediately, but the next step in this job is the Earthly build (Run pallet fixture tests) that was previously run only after removeUnusedFilesAndDirs had finished reclaiming /opt/hostedtoolcache and other large directories. If the hosted runner is near the disk limit, Earthly can begin pulling/building before that space has actually been freed and fail with ENOSPC; the same backgrounded cleanup pattern was added in the other CI jobs that immediately start disk-heavy builds. Keep the cleanup in the foreground, or explicitly wait for it before the build phase that depends on the reclaimed space.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant