public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCHv2 12/12] gitlab-ci: check all defconfigs on every push
Date: Tue, 21 Apr 2020 22:23:39 +0200	[thread overview]
Message-ID: <20200421202339.GY5035@scaer> (raw)
In-Reply-To: <20200421172646.3340666-12-romain.naour@gmail.com>

Romain, All,

On 2020-04-21 19:26 +0200, Romain Naour spake thusly:
> A defconfig check has been introduced by a previous
> patch to test each defconfig before the building them.
> But those builds are done every week or more.
> 
> Checking a defconfig can be done on every push to the
> repository since it take few seconds for each.
> 
> This would allow to detect as soon as possible a problem
> in a defconfig and in particular Kconfig symbols that
> disapear from the generated .config file.
> 
> Although we could have used one job for each defconfig
> check, we need to limit the number of jobs since gitlab
> can limit the number of jobs in active pipelines.
> (500 by default [1]).

So, how many jobs do we get at now?

But OK, I see the point.

> So, add a new job called defconfig_check that test all
> defconfig in one go.
> 
> The test curently take 3 minutes 31 seconds to run in
> a gitlab runner.
> 
> Tested:
> https://gitlab.com/kubu93/buildroot/-/jobs/520646767
> 
> [1] https://gitlab.com/gitlab-org/gitlab/-/blob/4108625e85990fd9d4520365a03bb1bad625ac35/doc/administration/instance_limits.md#number-of-jobs-in-active-pipelines
> 
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
> ---
>  .gitlab-ci.yml    | 13 +++++++++++++
>  .gitlab-ci.yml.in | 13 +++++++++++++
>  2 files changed, 26 insertions(+)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index 0d06a1b7cf..a060b545de 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -43,6 +43,19 @@ check-package:
>      script:
>          - make check-package
>  
> +defconfig_check:
> +    extends: .check_base
> +    script:
> +        - >
> +           failed=0;

success=true
No need for the trailing semi-colon.

> +           for defconfig in $(cd configs; ls *_defconfig);
> +           do
> +               echo "Configure Buildroot for ${defconfig}";
No need for the trailing semi-colon.
> +               make ${defconfig} 2>&1 >/dev/null;
No need for the trailing semi-colon.
> +               ./support/scripts/check-dotconfig.py .config configs/${defconfig} || failed=1;

[...] || success=false
No need for the trailing semi-colon.

> +           done;

No need for the trailing semi-colon.

> +           exit ${failed};

${succes}
No need for the trailing semi-colon.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2020-04-21 20:23 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-21 17:26 [Buildroot] [PATCHv2 01/12] support/scripts: add check-dotconfig.py Romain Naour
2020-04-21 17:26 ` [Buildroot] [PATCHv2 02/12] gitlab-ci: check generated config files Romain Naour
2020-04-21 19:44   ` Thomas Petazzoni
2020-04-21 19:52   ` Yann E. MORIN
2020-04-21 17:26 ` [Buildroot] [PATCHv2 03/12] configs/amarula_a64_relic_defconfig: remove BR2_PACKAGE_HOST_ANDROID_TOOLS_FASTBOOT Romain Naour
2020-04-21 19:43   ` Thomas Petazzoni
2020-04-21 19:48     ` Romain Naour
2020-04-21 17:26 ` [Buildroot] [PATCHv2 04/12] configs: fix typo BR2_TARGET_ROOTFS_EXT2_4 Romain Naour
2020-04-21 19:29   ` Fabio Estevam
2020-04-21 17:26 ` [Buildroot] [PATCHv2 05/12] configs:minnowboard_max-graphical_defconfig: re-enable GLX support Romain Naour
2020-05-07 21:11   ` Peter Korsgaard
2020-04-21 17:26 ` [Buildroot] [PATCHv2 06/12] configs/nanopi_r1_defconfig: remove BR2_TARGET_UBOOT_BOARD_DEFCONFIG Romain Naour
2020-04-21 17:26 ` [Buildroot] [PATCHv2 07/12] configs: remove BR2_PACKAGE_QT5BASE_LICENSE_APPROVED Romain Naour
2020-04-21 19:54   ` Yann E. MORIN
2020-04-21 17:26 ` [Buildroot] [PATCHv2 08/12] configs/engicam_imx6qdl_icore_qt5_defconfig: needs udev to select glmark2 Romain Naour
2020-04-21 19:28   ` Fabio Estevam
2020-04-21 17:26 ` [Buildroot] [PATCHv2 09/12] configs/olimex_a20_olinuxino_lime{, 2}_defconfig: use a glibc toolchain Romain Naour
2020-04-21 17:26 ` [Buildroot] [PATCHv2 10/12] configs/qemu_ppc_virtex_ml507_defconfig: select BR2_POWERPC_SOFT_FLOAT Romain Naour
2020-04-21 17:26 ` [Buildroot] [PATCHv2 11/12] configs/qemu_riscv*: remove BR2_TARGET_OPENSBI_USE_PLAT Romain Naour
2020-04-21 17:26 ` [Buildroot] [PATCHv2 12/12] gitlab-ci: check all defconfigs on every push Romain Naour
2020-04-21 20:23   ` Yann E. MORIN [this message]
2020-04-21 20:09 ` [Buildroot] [PATCHv2 01/12] support/scripts: add check-dotconfig.py Thomas Petazzoni

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=20200421202339.GY5035@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /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