osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ci/+/39371?usp=email )
Change subject: jobs/{master,gerrit}: set ulimit filesize to 1 GiB
......................................................................
jobs/{master,gerrit}: set ulimit filesize to 1 GiB
Set a max file size limit of 1 GiB via ulimit. This prevents jobs from
filling up the disk by generating one huge log file.
I have chosen 1 GiB as limit, because jobs that clone linux kernel
repos may have packed git artifacts that are several 100 MiB in size.
It would be even better to set the overall max disk space that can be
used from one "docker run" call, but this is currently not supported for
ext4:
https://github.com/moby/moby/issues/29364
Related: OS#6704
Change-Id: I4f9d5ad33c2d6e003d239e8b2c97753d64dd00f6
---
M jobs/gerrit-verifications.yml
M jobs/master-builds.yml
2 files changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/71/39371/1
diff --git a/jobs/gerrit-verifications.yml b/jobs/gerrit-verifications.yml
index 9691250..245aba0 100644
--- a/jobs/gerrit-verifications.yml
+++ b/jobs/gerrit-verifications.yml
@@ -53,6 +53,7 @@
docker run --rm=true \
--cap-add SYS_PTRACE \
--security-opt
seccomp=$HOME/osmo-ci/_docker_playground/seccomp_profile.json \
+ --ulimit fsize=1000000000 \
-e ASCIIDOC_WARNINGS_CHECK="1" \
-e HOME=/build \
-e JOB_NAME="$JOB_NAME" \
@@ -73,6 +74,7 @@
docker run --rm=true \
--cap-add SYS_PTRACE \
--security-opt
seccomp=$HOME/osmo-ci/_docker_playground/seccomp_profile.json \
+ --ulimit fsize=1000000000 \
-e ASCIIDOC_WARNINGS_CHECK="1" \
-e HOME=/build \
-e JOB_NAME="$JOB_NAME" \
diff --git a/jobs/master-builds.yml b/jobs/master-builds.yml
index 969f2c7..0e3080b 100644
--- a/jobs/master-builds.yml
+++ b/jobs/master-builds.yml
@@ -26,6 +26,7 @@
docker run --rm=true \
--cap-add SYS_PTRACE \
--security-opt
seccomp=$HOME/osmo-ci/_docker_playground/seccomp_profile.json \
+ --ulimit fsize=1000000000 \
-e ASCIIDOC_WARNINGS_CHECK="1" \
-e HOME=/build \
-e IS_MASTER_BUILD=1 \
@@ -51,6 +52,7 @@
docker run --rm=true \
--cap-add SYS_PTRACE \
--security-opt
seccomp=$HOME/osmo-ci/_docker_playground/seccomp_profile.json \
+ --ulimit fsize=1000000000 \
-e ASCIIDOC_WARNINGS_CHECK="1" \
-e HOME=/build \
-e IS_MASTER_BUILD=1 \
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ci/+/39371?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I4f9d5ad33c2d6e003d239e8b2c97753d64dd00f6
Gerrit-Change-Number: 39371
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>