Skip to content

Commit 82c6aea

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 82c6aea

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/reusable_build.yml

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

288+
- name: Provide information about disk usage before the build
289+
if: inputs.coverity_check_packages != ''
290+
shell: su buildbot -c "sh -e {0}"
291+
working-directory: openwrt
292+
run: df -h . ; du -sh .
293+
288294
- name: Checkout packages feed
289295
if: inputs.include_feeds == true
290296
uses: actions/checkout@v4
@@ -684,6 +690,12 @@ jobs:
684690
name: ${{ inputs.target }}-${{ inputs.subtarget }}${{ inputs.testing == true && '-testing' || '' }}-logs
685691
path: "openwrt/logs"
686692

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

0 commit comments

Comments
 (0)