builders: Do fake builds

Just replace commands with random delays

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
This commit is contained in:
Mathieu Dubois-Briand 2025-03-07 15:22:48 +01:00
parent dcbfebcadb
commit 9aaa4bb238
3 changed files with 3 additions and 2 deletions

View File

@ -299,6 +299,7 @@ def create_parent_builder_factory(buildername, waitname):
factory.addStep(WriteLayerInfo(name='Write main layerinfo.json', haltOnFailure=True))
factory.addStep(steps.ShellCommand(
command=[
"echo",
util.Interpolate("%(prop:builddir)s/yocto-autobuilder-helper/scripts/prepare-shared-repos"),
util.Interpolate("%(prop:builddir)s/layerinfo.json"),
util.Interpolate("{}/%(prop:buildername)s-%(prop:buildnumber)s".format(config.sharedrepodir)),

View File

@ -44,7 +44,7 @@ buildertorepos = {
repos = {
"yocto-autobuilder-helper":
["ssh://git@push.yoctoproject.org/yocto-autobuilder-helper",
"master"],
"contrib/mathieu/fake_builds"],
"eclipse-poky-neon": ["ssh://git@push.yoctoproject.org/eclipse-yocto",
"neon-master"],
"eclipse-poky-oxygen": ["ssh://git@push.yoctoproject.org/eclipse-yocto",

View File

@ -86,7 +86,7 @@ RUN useradd -m --system pokybuild && \
ln -rs yoctoabb/master.cfg master.cfg && \
\
cd /home/pokybuild && \
git clone https://git.yoctoproject.org/git/yocto-autobuilder-helper && \
git clone https://git.yoctoproject.org/git/yocto-autobuilder-helper -b contrib/mathieu/fake_builds && \
pip install --break-system-packages \
yocto-controller/yoctoabb/yocto_console_view/ && \
mkdir -p /home/pokybuild/git/ && \