From: Romain Naour <romain.naour@gmail.com>
To: buildroot@buildroot.org
Cc: Romain Naour <romain.naour@gmail.com>
Subject: [Buildroot] [PATCH 3/3] gitlab-ci.yml: pass emulator builtin binaries as artifacts
Date: Mon, 17 Jul 2023 23:33:59 +0200 [thread overview]
Message-ID: <20230717213359.106368-3-romain.naour@gmail.com> (raw)
In-Reply-To: <20230717213359.106368-1-romain.naour@gmail.com>
Notes: We can't use runtime_test_download job from the parent pipeline
(generate-gitlab-ci) since the artifacts archive size is limited to 5MB.
So introduce a new custom stage named "download" executed before "test"
stage. test-dl directory that contain downloaded files can be an
artifact of the job passed to all jobs of next stages.
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/4409032417
Runtime tested:
https://gitlab.com/kubu93/buildroot/-/pipelines/934319226
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
support/misc/gitlab-ci.yml.in | 11 +++++++++++
support/scripts/generate-gitlab-ci-yml | 1 +
2 files changed, 12 insertions(+)
diff --git a/support/misc/gitlab-ci.yml.in b/support/misc/gitlab-ci.yml.in
index d8d6b3f410..446132846f 100644
--- a/support/misc/gitlab-ci.yml.in
+++ b/support/misc/gitlab-ci.yml.in
@@ -1,4 +1,5 @@
stages:
+ - download
- test
before_script:
@@ -78,6 +79,16 @@ before_script:
- output/build/*/.config
- runtime-test.log
+.runtime_test_download:
+ stage: download
+ # Keep test-dl directory so the downloaded files can be an artifact of
+ # the job passed to all jobs of next stages.
+ script: ./support/testing/run-tests -d test-dl/ --prepare-only
+ artifacts:
+ when: always
+ paths:
+ - test-dl/
+
.runtime_test_base:
stage: test
# Keep build directories so the rootfs can be an artifact of the job. The
diff --git a/support/scripts/generate-gitlab-ci-yml b/support/scripts/generate-gitlab-ci-yml
index ea4340f47c..2d922b9eb2 100755
--- a/support/scripts/generate-gitlab-ci-yml
+++ b/support/scripts/generate-gitlab-ci-yml
@@ -132,6 +132,7 @@ gen_tests() {
fi
if ${do_runtime:-false}; then
+ printf 'runtime_test_download: { extends: .runtime_test_download }\n'
printf '%s: { extends: .runtime_test_base }\n' "${runtimes[@]}"
fi
--
2.41.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-07-17 21:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-17 21:33 [Buildroot] [PATCH 1/3] support/run-tests: add a mode to only download emulator builtin binaries Romain Naour
2023-07-17 21:33 ` [Buildroot] [PATCH 2/3] gitlab-ci.yml: add stage explicitely to each jobs Romain Naour
2023-07-17 21:33 ` Romain Naour [this message]
2023-07-18 21:05 ` [Buildroot] [PATCH 1/3] support/run-tests: add a mode to only download emulator builtin binaries Thomas Petazzoni via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230717213359.106368-3-romain.naour@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@buildroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox