From mboxrd@z Thu Jan 1 00:00:00 1970 From: Romain Naour Date: Tue, 21 Apr 2020 19:26:46 +0200 Subject: [Buildroot] [PATCHv2 12/12] gitlab-ci: check all defconfigs on every push In-Reply-To: <20200421172646.3340666-1-romain.naour@gmail.com> References: <20200421172646.3340666-1-romain.naour@gmail.com> Message-ID: <20200421172646.3340666-12-romain.naour@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net 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, 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 Cc: Yann E. MORIN Cc: Thomas Petazzoni --- .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; + for defconfig in $(cd configs; ls *_defconfig); + do + echo "Configure Buildroot for ${defconfig}"; + make ${defconfig} 2>&1 >/dev/null; + ./support/scripts/check-dotconfig.py .config configs/${defconfig} || failed=1; + done; + exit ${failed}; + .defconfig_base: script: - echo "Configure Buildroot for ${DEFCONFIG_NAME}" diff --git a/.gitlab-ci.yml.in b/.gitlab-ci.yml.in index 413c6d2956..d8dc11af79 100644 --- a/.gitlab-ci.yml.in +++ b/.gitlab-ci.yml.in @@ -43,6 +43,19 @@ check-package: script: - make check-package +defconfig_check: + extends: .check_base + script: + - > + failed=0; + for defconfig in $(cd configs; ls *_defconfig); + do + echo "Configure Buildroot for ${defconfig}"; + make ${defconfig} 2>&1 >/dev/null; + ./support/scripts/check-dotconfig.py .config configs/${defconfig} || failed=1; + done; + exit ${failed}; + .defconfig_base: script: - echo "Configure Buildroot for ${DEFCONFIG_NAME}" -- 2.25.3