Skip to content

Commit 7f28b56

Browse files
committed
reusable_build: provide info about disk usage before and after build
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>
1 parent 3e033f2 commit 7f28b56

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/reusable_build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ jobs:
285285
with:
286286
path: openwrt
287287

288+
- name: Provide information about disk usage before the build
289+
shell: su buildbot -c "sh -e {0}"
290+
working-directory: openwrt
291+
run: df -h . ; du -sh .
292+
288293
- name: Checkout packages feed
289294
if: inputs.include_feeds == true
290295
uses: actions/checkout@v4
@@ -684,6 +689,11 @@ jobs:
684689
name: ${{ inputs.target }}-${{ inputs.subtarget }}${{ inputs.testing == true && '-testing' || '' }}-logs
685690
path: "openwrt/logs"
686691

692+
- name: Provide information about disk usage after the build
693+
shell: su buildbot -c "sh -e {0}"
694+
working-directory: openwrt
695+
run: df -h . ; du -sh .
696+
687697
- name: Cleanup dl/build_dir/staging_dir to make some space
688698
working-directory: openwrt
689699
if: github.event_name == 'push'

0 commit comments

Comments
 (0)