Skip to content

[bazel] Log CI disk state around invocations#5657

Draft
maru-ava wants to merge 1 commit into
masterfrom
maru/bazel-log-disk-state
Draft

[bazel] Log CI disk state around invocations#5657
maru-ava wants to merge 1 commit into
masterfrom
maru/bazel-log-disk-state

Conversation

@maru-ava

Copy link
Copy Markdown
Contributor

Why this should be merged

Recent Bazel CI failures have included occasional ENOSPC errors, but current runner snapshots suggest Bazel often starts with substantial free space. Before re-introducing invasive mitigations like runner pruning, add logging to show where Bazel state lives, what filesystem backs it, and how much space is available there.

This updates the Bazel CI command wrapper to log:

  • filesystem and inode usage before and after Bazel commands
  • Bazel output and cache paths and the mounts backing them
  • per-path size summaries for Bazel output and cache directories

On failure, it also logs the largest entries under the main Bazel output, cache, workspace, runner work, and temporary-directory roots to make future ENOSPC flakes easier to diagnose.

How this was tested

  • TODO Link to instances of new log output

@maru-ava maru-ava self-assigned this Jul 13, 2026
@maru-ava maru-ava added the ci This focuses on changes to the CI process label Jul 13, 2026
@maru-ava maru-ava force-pushed the maru/bazel-log-disk-state branch from a535969 to 3dcae60 Compare July 13, 2026 22:43
Recent Bazel CI failures have included occasional ENOSPC errors, but current runner
snapshots suggest Bazel often starts with substantial free space. Before
re-introducing invasive mitigations like runner pruning, add logging to show where
Bazel state lives, what filesystem backs it, and how much space is available there.

This updates the Bazel CI command wrapper to log:
- filesystem and inode usage before and after Bazel commands
- Bazel output and cache paths and the mounts backing them
- per-path size summaries for Bazel output and cache directories

On failure, it also logs the largest entries under the main Bazel output, cache,
workspace, runner work, and temporary-directory roots to make future ENOSPC flakes
easier to diagnose.

Change-Id: I17056a03a1e5af8ed19a8877fe4a93a550590b83
@maru-ava maru-ava force-pushed the maru/bazel-log-disk-state branch from 3dcae60 to 115ec05 Compare July 13, 2026 22:48
@maru-ava maru-ava changed the title [bazel] Log CI disk state around Bazel commands [bazel] Log CI disk state around invocations Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci This focuses on changes to the CI process

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant