Skip to content

feat: add docker volume mountpoint disk usage in df#256

Closed
wdconinc wants to merge 3 commits intomasterfrom
wdconinc-patch-12
Closed

feat: add docker volume mountpoint disk usage in df#256
wdconinc wants to merge 3 commits intomasterfrom
wdconinc-patch-12

Conversation

@wdconinc
Copy link
Copy Markdown
Contributor

Briefly, what does this PR introduce? Please link to any relevant presentations or discussions.

This PR adds extra output in the (manual) df job on gitlab, but running du over the volume mount points.

What is the urgency of this PR?

  • High (please describe reason below)
  • Medium
  • Low

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue: better information on disk usage)
  • Optimization (issue #__)
  • Updated documentation
  • other: __

Please check if any of the following apply

  • This PR introduces breaking changes. Please describe changes users need to make below.
  • This PR changes default behavior. Please describe changes below.
  • AI was used in preparing this PR. Please describe usage below.

Copilot AI review requested due to automatic review settings April 24, 2026 14:57
Copy link
Copy Markdown
Contributor

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 additional disk-usage visibility to the manual GitLab CI df job by reporting du usage for Docker volume mountpoints, helping diagnose runner storage pressure.

Changes:

  • Extend the df job to list Docker volume mountpoints and summarize their disk usage.
  • Sort and show the largest entries from that volume usage output.

Comment thread .gitlab-ci.yml Outdated
Removed 'tail' command from docker volume size listing.
Copilot AI review requested due to automatic review settings April 24, 2026 16:03
Copy link
Copy Markdown
Contributor

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

This PR enhances the GitLab CI manual df diagnostics job by adding per-Docker-volume disk usage reporting (via du on each volume mount), to provide better insight into disk consumption on runners.

Changes:

  • Add a step to iterate over all Docker volumes and print their du -sh usage.
  • Sort the volume usage output for easier inspection.

Comment thread .gitlab-ci.yml
- docker context ls
- docker volume ls
- docker volume ls --filter=name=buildx_buildkit_builder
- docker volume ls --quiet | while read vol; do size=$(docker run --rm -v "${vol}:/data" alpine du -sh /data 2>/dev/null | cut -f1); printf "%s\t%s\n" "${size:-?}" "$vol"; done | sort -h
Comment thread .gitlab-ci.yml
- docker context ls
- docker volume ls
- docker volume ls --filter=name=buildx_buildkit_builder
- docker volume ls --quiet | while read vol; do size=$(docker run --rm -v "${vol}:/data" alpine du -sh /data 2>/dev/null | cut -f1); printf "%s\t%s\n" "${size:-?}" "$vol"; done | sort -h
@wdconinc
Copy link
Copy Markdown
Contributor Author

Not very useful since hardly any volumes accessible.

@wdconinc wdconinc closed this Apr 26, 2026
@wdconinc wdconinc deleted the wdconinc-patch-12 branch April 26, 2026 14:37
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