[Buildroot] [PATCH] .gitlab-ci.yml: do runtime tests only on explicit trigger
Ricardo Martincoski
ricardo.martincoski at gmail.com
Sun Oct 21 02:54:32 UTC 2018
Hello,
On Sat, Oct 20, 2018 at 07:42 PM, Arnout Vandecappelle (Essensium/Mind) wrote:
[snip]
> +++ b/.gitlab-ci.yml
> @@ -62,6 +62,11 @@ check-package:
> - output/build/packages-file-list.txt
>
> .runtime_test: &runtime_test
> + # Running the runtime tests for every push is too much, so limit to
> + # explicit triggers through the API.
> + only:
> + - triggers
> + - tags
> # Keep build directories so the rootfs can be an artifact of the job. The
> # runner will clean up those files for us.
> # Multiply every emulator timeout by 10 to avoid sporadic failures in
> @@ -261,71 +266,3 @@ zynq_zc706_defconfig: *defconfig
> zynq_zed_defconfig: *defconfig
> zynq_zybo_defconfig: *defconfig
> zynqmp_zcu106_defconfig: *defconfig
> -tests.boot.test_atf.TestATFAllwinner: *runtime_test
> -tests.boot.test_atf.TestATFMarvell: *runtime_test
> -tests.boot.test_atf.TestATFVexpress: *runtime_test
[snip]
You forgot to re-run 'make .gitlab-ci.yml'.
We don't want to remove the test list.
> +++ b/.gitlab-ci.yml.in
> @@ -62,6 +62,11 @@ check-package:
> - output/build/packages-file-list.txt
>
> .runtime_test: &runtime_test
> + # Running the runtime tests for every push is too much, so limit to
> + # explicit triggers through the API.
> + only:
> + - triggers
> + - tags
We could also allow a regexp on the branch name to trigger it:
- /^.*-runtime_test$/
Using the same commit, I pushed 2 branches:
branch name: gitlabci-triggers, #jobs = 4
https://gitlab.com/RicardoMartincoski/buildroot/pipelines/33723520
branch name: gitlabci-triggers-runtime_test, #jobs = 72
https://gitlab.com/RicardoMartincoski/buildroot/pipelines/33723541
> # Keep build directories so the rootfs can be an artifact of the job. The
> # runner will clean up those files for us.
> # Multiply every emulator timeout by 10 to avoid sporadic failures in
> --
Regards,
Ricardo
More information about the buildroot
mailing list