From patchwork Mon Jul 27 15:51:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1337053 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=pVezRsX+; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BFknl0FlNz9sVs for ; Tue, 28 Jul 2020 01:51:55 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 667712049E; Mon, 27 Jul 2020 15:51:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QLEtT7+pjap0; Mon, 27 Jul 2020 15:51:49 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 4CBE721556; Mon, 27 Jul 2020 15:51:48 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id A4FA01BF3A0 for ; Mon, 27 Jul 2020 15:51:38 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A1FD687A30 for ; Mon, 27 Jul 2020 15:51:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M7eVtt5F-VQ3 for ; Mon, 27 Jul 2020 15:51:38 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by hemlock.osuosl.org (Postfix) with ESMTPS id D468D8788E for ; Mon, 27 Jul 2020 15:51:37 +0000 (UTC) Received: by mail-wr1-f46.google.com with SMTP id l2so4837603wrc.7 for ; Mon, 27 Jul 2020 08:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=x1WbIcMdJjOZmIf2ArFL0s/PhqrcjunMDn6+G752v88=; b=pVezRsX+UWEO6Em0Kqj4x3JomckQJs5uwWKp7WOl1WWXMdtKgjq9FVYqsV8RVWuJBa JBwYayVN/V9UMmEMxmKOel0UmeahxkKfjCpCXoJw4/0Eh+jx2Nlqk+I7uoygpNOZlhhW ZX2SM5r2X0eKyPmSCyXpTtJPf7Sr5qa21MMjN2v69gROKS7Y3gRGIO8D0NekJAYJehHZ uR1UtfKs2J4PG1xaBTZ0hvo0sWVEw0Y/ogo8zeA8jUm1fYXSDqxmcQntUJgQiwWFJmNk 8mpp9g38wXCP69vJ9qHk/tIghxbOp6z8PmPNZ5gSh3V8kbkJk/DuYBcrOqFBjBlgSZAx xlgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=x1WbIcMdJjOZmIf2ArFL0s/PhqrcjunMDn6+G752v88=; b=RFTZr4tfif4TpKrYpoSAt9ONwQ45sVbBQKQMGDDF07aI8sJymB7XYHvb7GKjtw/3Ui 3SlQAy425v2emyJglplWGVtUJvrhZA+rJfW2WZD5zRNxn+x0vfY9oXY3QpEAuvadChy1 1Prnc54d9WcbV4asT67WpnB0jxOB5UbCyVj8KTIJIZ7A2G1Uv0BAhASHIecJDSOdh4UP FjWZ7ihJIFiVCx4+Jw3mhyciDolw8iHYegyNMaAGssLOYKlHy1Epwh4FokqkarruDOMB ZtNtCDfWyAdvNqb48a/SRnZmfpJJSvuJrYpsxdagf3DsXaGY+1ME3y0sXwU0x18FKD1a YxtQ== X-Gm-Message-State: AOAM532Xgp/A8rpiSNkJP6yaIC1v9u0W6p8A5owosVg2vMxJpcJw42ow pcgMIvbG7Vaf5FJCAzQ0zcDmwIZd X-Google-Smtp-Source: ABdhPJxNyMhln3z3PclHpRTbtHS3e4uxLJ9/0oxel9jTwjoA6X+cE+j1OfL4Xbe+YXaY8IMfOA6+zA== X-Received: by 2002:a5d:464a:: with SMTP id j10mr21992956wrs.187.1595865096016; Mon, 27 Jul 2020 08:51:36 -0700 (PDT) Received: from localhost.localdomain (2a01cb058f8a18003dbee9eed79eb521.ipv6.abo.wanadoo.fr. [2a01:cb05:8f8a:1800:3dbe:e9ee:d79e:b521]) by smtp.gmail.com with ESMTPSA id 31sm12724187wrp.87.2020.07.27.08.51.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2020 08:51:35 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Mon, 27 Jul 2020 17:51:27 +0200 Message-Id: <20200727155127.2703286-6-romain.naour@gmail.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20200727155127.2703286-1-romain.naour@gmail.com> References: <20200727155127.2703286-1-romain.naour@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCHv3 6/6] gitlab-ci: check all defconfigs on every push X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour , "Yann E . MORIN" , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The defconfig check has been introduced by the previous patch before the building each defconfig but those builds are done every week or more. Checking if a defconfig is valid can be done on every push in the repository since it take few seconds. This would allow to detect as soon as possible a problem in a defconfig and eventually avoid breaking the build while build testing all defconfig. Introduce a new job template ".defconfig_check" in gitlab-ci.yml.in and modify the generate-gitlab-ci-yml to create a job for each defconfig to run the test. Although, we could have used only one job to do all tests, using one job per defconfig allow to identify easily in gitlab which defconfig is falling. Tested: https://gitlab.com/kubu93/buildroot/pipelines/138331069 https://gitlab.com/kubu93/buildroot/pipelines/171223758 Signed-off-by: Romain Naour Cc: Yann E. MORIN Cc: Thomas Petazzoni --- support/misc/gitlab-ci.yml.in | 13 +++++++++++++ support/scripts/generate-gitlab-ci-yml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/support/misc/gitlab-ci.yml.in b/support/misc/gitlab-ci.yml.in index 01592f7155..7218ea027e 100644 --- a/support/misc/gitlab-ci.yml.in +++ b/support/misc/gitlab-ci.yml.in @@ -34,6 +34,19 @@ check-package: script: - make check-package +.defconfig_check: + script: + - echo "Configure Buildroot for ${DEFCONFIG_NAME}" + - make ${DEFCONFIG_NAME} + - support/scripts/check-dotconfig.py .config configs/${DEFCONFIG_NAME} + artifacts: + when: on_failure + expire_in: 2 weeks + paths: + - .config + before_script: + - DEFCONFIG_NAME=$(echo ${CI_JOB_NAME} | sed -e 's,_check$,,g') + .defconfig_base: script: - echo "Configure Buildroot for ${DEFCONFIG_NAME}" diff --git a/support/scripts/generate-gitlab-ci-yml b/support/scripts/generate-gitlab-ci-yml index 262a7649b2..5cef1146e2 100755 --- a/support/scripts/generate-gitlab-ci-yml +++ b/support/scripts/generate-gitlab-ci-yml @@ -10,7 +10,7 @@ cat "${input}" cd configs LC_ALL=C ls -1 *_defconfig ) \ - | sed 's/$/: { extends: .defconfig }/' + | sed -r -e 's/^(.+)$/\1: { extends: .defconfig }\n\1_check: { extends: .defconfig_check }/' ./support/testing/run-tests -l 2>&1 \ | sed -r -e '/^test_run \((.*)\).*/!d; s//\1: { extends: .runtime_test }/' \