@@ -107,8 +107,8 @@ RUN sed -i \
# Add local workers \
-e "s/^\(workers_debian *=.*\).*/\1 + [f\"local-worker-debian\"]/" \
-e "s/^\(workers *=.*\).*/\1 + [f\"local-worker-extra-{i}\" for i in range(1, 9)]/" \
- # Remove workers_bringup from all_workers \
- -e "/^all_workers *=/s/workers_bringup + //" \
+ # Empty workers_bringup variable \
+ -e "s/^\(workers_bringup *=\).*/\1 []/" \
# Switch from ssh:// URLS to https:// so we do not need any auth \
-e "s#ssh://git@push\.\(yoctoproject.org\|openembedded.org\)/#https://git.\1/#" \
# Use any worker for any release \
@@ -2,6 +2,7 @@
chmod 666 /dev/kvm
+mkdir -p /srv/autobuilder/repos /srv/autobuilder/autobuilder.yocto.io/pub
chown pokybuild:nogroup /srv/autobuilder/repos
chown pokybuild:nogroup /srv/autobuilder/autobuilder.yocto.io/pub
chown pokybuild:nogroup /home/pokybuild/git/mirror
@@ -1,4 +1,4 @@
-From b6a31b0c63a7529961ea02c53f43b9edb110f4de Mon Sep 17 00:00:00 2001
+From 3bc68471778693c59a692a26d5ef5a9d9212d901 Mon Sep 17 00:00:00 2001
From: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Date: Fri, 3 Jan 2025 09:39:06 +0100
Subject: [PATCH 1/2] builders: Do not create tags during builds
@@ -9,10 +9,10 @@ Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
1 file changed, 13 deletions(-)
diff --git a/builders.py b/builders.py
-index b7379ece71f2..d87e41c9233e 100644
+index 2d42d07e3b9a..574a23cc86bd 100644
--- a/builders.py
+++ b/builders.py
-@@ -314,18 +314,9 @@ def create_parent_builder_factory(buildername, waitname):
+@@ -337,18 +337,9 @@ def create_parent_builder_factory(buildername, waitname):
util.Interpolate("%(prop:builddir)s/layerinfo.json"),
util.Interpolate("{}/%(prop:buildername)s-%(prop:buildnumber)s".format(config.sharedrepodir)),
"-p", get_publish_dest,
@@ -31,7 +31,7 @@ index b7379ece71f2..d87e41c9233e 100644
factory.addStep(steps.SetProperty(
property="sharedrepolocation",
value=util.Interpolate("{}/%(prop:buildername)s-%(prop:buildnumber)s".format(config.sharedrepodir))
-@@ -374,7 +365,6 @@ def create_parent_builder_factory(buildername, waitname):
+@@ -406,7 +397,6 @@ def create_parent_builder_factory(buildername, waitname):
"rc_number": util.Property("rc_number"),
"yp_build_revision": util.Property("yp_build_revision"),
"yp_build_branch": util.Property("yp_build_branch"),
@@ -39,7 +39,7 @@ index b7379ece71f2..d87e41c9233e 100644
}
for repo in config.buildertorepos[buildername]:
-@@ -385,9 +375,6 @@ def create_parent_builder_factory(buildername, waitname):
+@@ -417,9 +407,6 @@ def create_parent_builder_factory(buildername, waitname):
set_props["milestone_number"] = util.Property("milestone_number")
set_props["rc_number"] = util.Property("rc_number")
@@ -1,19 +1,18 @@
-From c6032ab33d39981eb9dede27d0bbd073a8d58389 Mon Sep 17 00:00:00 2001
+From d2ac1923753ea987117f89506790f749370f8a77 Mon Sep 17 00:00:00 2001
From: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Date: Wed, 20 Nov 2024 14:53:34 +0100
Subject: [PATCH 2/2] builders: Modify free space check to work in docker
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
---
- builders.py | 5 ++---
- 1 file changed, 2 insertions(+), 3 deletions(-)
+ builders.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/builders.py b/builders.py
-index a16a857d9211..d5389283e605 100644
+index 574a23cc86bd..fb825bad72e7 100644
--- a/builders.py
+++ b/builders.py
-@@ -70,8 +70,7 @@ def canStartBuild(builder, wfb, request):
-
+@@ -73,7 +73,6 @@ def canStartBuild(builder, wfb, request):
# threshold is GB of space
checks = {
- "." : (200, "HOME"),
@@ -22,15 +21,15 @@ index a16a857d9211..d5389283e605 100644
}
for mountpoint in checks:
-@@ -79,7 +78,7 @@ def canStartBuild(builder, wfb, request):
+@@ -81,7 +80,7 @@ def canStartBuild(builder, wfb, request):
bytes_in_gb = 1024 * 1024 * 1024
-- cmd = yield shell("findmnt -T %s --df -n --bytes | awk '{print $5}'" % mountpoint, wfb.worker, builder)
-+ cmd = yield shell("findmnt --all -T %s --df -n --bytes | awk '{print $5}'" % mountpoint, wfb.worker, builder)
+- cmd = yield shell(["findmnt", "-T", mountpoint, "--df", "-n", "--bytes",
++ cmd = yield shell(["findmnt", "--all", "-T", mountpoint, "--df", "-n", "--bytes",
+ "-o", "AVAIL"],
+ wfb.worker, builder)
space = int(cmd.stdout.strip())
- if space < threshold * bytes_in_gb:
- log.msg("Detected {0} GB of space available on {1}, less than threshold of {2} GB. Can't start build".format(space / bytes_in_gb, name, threshold))
--
2.47.3
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> --- docker/Dockerfile | 4 ++-- docker/entry.sh | 1 + ...-builders-Do-not-create-tags-during-builds.patch | 10 +++++----- ...-Modify-free-space-check-to-work-in-docker.patch | 21 ++++++++++----------- 4 files changed, 18 insertions(+), 18 deletions(-)