Skip to content

Commit e5b5baa

Browse files
committed
Report Docker disk usage per stage in the helper-rust coverage job
The Docker host's storage in this job is ~20G, and the container filesystem measurement added in the previous commit shows it is already 18G/93% full when the test phase starts, then hits 100% partway through, which is what breaks RaspSqliTests. That baseline is established before any test runs, so it comes from the cache load and the coverage-instrumented Rust build rather than from the tests. Report `docker system df` at each stage to attribute it.
1 parent f05841a commit e5b5baa

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.gitlab/generate-appsec.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,10 +291,23 @@
291291
TERM=dumb ./gradlew loadCaches --info
292292
fi
293293

294+
# The Docker host's storage is only ~20G here, and this job has been
295+
# running it out during the tests, which surfaces as unrelated containers
296+
# failing (a full disk leaves MySQL unable to write, so queries are never
297+
# answered and clients hang). Report what occupies it at each stage.
298+
report_docker_disk() {
299+
echo "===== docker disk usage: $1 ====="
300+
docker system df || true
301+
docker system df -v 2>/dev/null | sed -n '/VOLUME NAME/,$p' | head -30 || true
302+
}
303+
report_docker_disk 'after loadCaches'
304+
294305
TERM=dumb ./gradlew buildPortableLibdatadogPhp \
295306
--info -Pbuildscan --scan -PuseHelperRustCoverage
307+
report_docker_disk 'after buildPortableLibdatadogPhp'
296308
TERM=dumb ./gradlew test8.3-release-ssi test8.4-release-zts-ssi \
297309
--info -Pbuildscan --scan -PcheckCoreDumps -PuseHelperRustCoverage
310+
report_docker_disk 'after tests'
298311
TERM=dumb ./gradlew saveCaches --info
299312
- |
300313
cd "$CI_PROJECT_DIR"

0 commit comments

Comments
 (0)