Skip to content

reusable_build: provide info about disk usage before and after build#27

Open
ynezz wants to merge 1 commit into
mainfrom
ynezz/df-du
Open

reusable_build: provide info about disk usage before and after build#27
ynezz wants to merge 1 commit into
mainfrom
ynezz/df-du

Conversation

@ynezz

@ynezz ynezz commented Nov 14, 2024

Copy link
Copy Markdown
Member

Currently we've CI workflows failing due to:

 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/ip_vs_wrr.ko': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.41081c68/tools/perf/pmu-events/arch/s390/cf_z196/crypto.json': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/.ip_vs.ko.cmd': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/.ip_vs_lc.ko.

So in such cases, lets make the post mortem debugging a bit easier and provide information about runner disk space before and after the build.

ynezz added a commit to ynezz/openwrt that referenced this pull request Nov 14, 2024
See openwrt/actions-shared-workflows#27

Currently the CI workflow fails https://github.com/openwrt/openwrt/actions/runs/11834452853/job/32975189824#step:34:705
due to:

 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/ip_vs_wrr.ko': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.41081c68/tools/perf/pmu-events/arch/s390/cf_z196/crypto.json': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/.ip_vs.ko.cmd': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/.ip_vs_lc.ko.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
@ynezz

ynezz commented Nov 14, 2024

Copy link
Copy Markdown
Member Author

Being tested in here openwrt/openwrt#16951

ynezz added a commit to ynezz/openwrt that referenced this pull request Nov 14, 2024
See openwrt/actions-shared-workflows#27

Currently the CI workflow fails https://github.com/openwrt/openwrt/actions/runs/11834452853/job/32975189824#step:34:705
due to:

 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/ip_vs_wrr.ko': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.41081c68/tools/perf/pmu-events/arch/s390/cf_z196/crypto.json': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/.ip_vs.ko.cmd': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/.ip_vs_lc.ko.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
Currently we've CI workflows failing due to:

 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/ip_vs_wrr.ko': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.41081c68/tools/perf/pmu-events/arch/s390/cf_z196/crypto.json': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/.ip_vs.ko.cmd': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/.ip_vs_lc.ko.

So in such cases, lets make the post mortem debugging a bit easier and
provide information about runner disk space before and after the build.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
ynezz added a commit to ynezz/openwrt that referenced this pull request Nov 14, 2024
See openwrt/actions-shared-workflows#27

Currently the CI workflow fails https://github.com/openwrt/openwrt/actions/runs/11834452853/job/32975189824#step:34:705
due to:

 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/ip_vs_wrr.ko': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.41081c68/tools/perf/pmu-events/arch/s390/cf_z196/crypto.json': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/.ip_vs.ko.cmd': No space left on device
 cp: error writing '/__w/openwrt/openwrt/openwrt/build_dir/target-aarch64-openwrt-linux-musl_musl/linux-mediatek_filogic/linux-6.6.60.141efc9e/net/netfilter/ipvs/.ip_vs_lc.ko.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
@ynezz

ynezz commented Nov 15, 2024

Copy link
Copy Markdown
Member Author

@Ansuel Ansuel force-pushed the main branch 2 times, most recently from 94e64ba to c7ec823 Compare July 24, 2025 13:33
@BKPepe BKPepe requested a review from Copilot May 20, 2026 16:35

Copilot AI 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.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds disk usage diagnostics to the reusable build workflow to make “no space left on device” CI failures easier to debug.

Changes:

  • Print filesystem free space and workspace size before the build.
  • Print filesystem free space and workspace size after the build (before cleanup).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

if: always()
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt
run: df -h . ; du -sh .
if: always()
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt
run: df -h . ; du -sh .
if: always()
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt
run: df -h . ; du -sh .
if: always()
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt
run: df -h . ; du -sh .
Comment on lines +288 to +292
- name: Provide information about disk usage before the build
if: always()
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt
run: df -h . ; du -sh .
Comment on lines +693 to +697
- name: Provide information about disk usage after the build
if: always()
shell: su buildbot -c "sh -e {0}"
working-directory: openwrt
run: df -h . ; du -sh .
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