From patchwork Mon Jul 17 21:33:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1808913 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R4b223ZD0z20FV for ; Tue, 18 Jul 2023 07:34:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 3C82240301; Mon, 17 Jul 2023 21:34:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 3C82240301 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3b-cqMlc4fiO; Mon, 17 Jul 2023 21:34:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 1C8314024A; Mon, 17 Jul 2023 21:34:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 1C8314024A X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1FFE51BF2C1 for ; Mon, 17 Jul 2023 21:34:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E8F8681296 for ; Mon, 17 Jul 2023 21:34:05 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org E8F8681296 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AhRnQu2sa07q for ; Mon, 17 Jul 2023 21:34:04 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 205B181281 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by smtp1.osuosl.org (Postfix) with ESMTPS id 205B181281 for ; Mon, 17 Jul 2023 21:34:04 +0000 (UTC) Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fbab0d0b88so38026275e9.0 for ; Mon, 17 Jul 2023 14:34:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689629642; x=1692221642; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AJ3Mjusd3biw093TbLaD92VLOokiA8aty/K3yEphx6U=; b=UaySNrhcnMBhphLXzMKGf5HxIdK3f5YtNxpjFW0NR9vmthlfL7ILUNRX4CbC+aacOe eE2rkrYdMKGdDLOzSDvyahnD/S9Ac5G8yTcismvTl7iBQeY4UOBg4r+JAMgVVjCbjbiV HwIdYzKX3/tCrZdOMcTzUbRHK0F5DnyR1IYMekPy2j9p1hdLU49b6X9iRdoXvw/g+MG3 8lPyI+kmd6y95opHphlmpgSepUKX555R2W+a+osE8DIGReosnSDmWFClrcGn6ik8ErAT Bhvxu8sNXA566R02Q9it1l0uIDna3LmeXFHrGDqH4sCBbYJId0ytSG133HMCh2DNgdh6 A9rw== X-Gm-Message-State: ABy/qLap6T60zOVctK0Ht+wJdTW5o7jiMSBwGPJLsdxKanFVLWxTm+Qh 3WOmlN46Mu7tJTxZHWBlJ3EkbMxYbzQ= X-Google-Smtp-Source: APBJJlFB2IWSuJqPOZ0mnAirjzpMvgtiAy7jIYhdsrG2Um9JsszVEt9Rwwb3kRNqPW9sFDuFQ2tKVQ== X-Received: by 2002:a05:600c:3b1a:b0:3fb:c257:9f48 with SMTP id m26-20020a05600c3b1a00b003fbc2579f48mr309852wms.16.1689629641722; Mon, 17 Jul 2023 14:34:01 -0700 (PDT) Received: from P-NTS-Evian.home (2a01cb05945b7e009bdc688723a24f31.ipv6.abo.wanadoo.fr. [2a01:cb05:945b:7e00:9bdc:6887:23a2:4f31]) by smtp.gmail.com with ESMTPSA id q6-20020a1ce906000000b003fb40ec9475sm651950wmc.11.2023.07.17.14.34.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 14:34:01 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Mon, 17 Jul 2023 23:33:57 +0200 Message-ID: <20230717213359.106368-1-romain.naour@gmail.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689629642; x=1692221642; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AJ3Mjusd3biw093TbLaD92VLOokiA8aty/K3yEphx6U=; b=ZJYZPGwv7ybCuJwj3q0sMbvhT+SOvHqaBkgrAFQLFu9lrfTNmeQp3KHfLhTN4l9ZRK N4TmPhsNKBkwuWmjmQMPdGSoODLGnWT2Nkd8bqhVUvI/Azp/Pqx6CuU0qXl+bNjP6V66 jRHEG3ReDSP75qQ5r9pX2YFa7ALZvrCTQwaS4P2mDU02XOIDT7XVdS3OCntWZsNxMHPd P/b0a9Okw390OU3GT7KpORKQBRKohUe7iOTAfBYU5J15SfLpPxidQIXDomlCB7GY7n37 BtCy+wJRxRqtIEBAfnJcnYTUlR6t8R5jHHfD3jmgcllTmShoBQ+Mgb8rusRn80VuFhoO ImwQ== X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=ZJYZPGwv Subject: [Buildroot] [PATCH 1/3] support/run-tests: add a mode to only download emulator builtin binaries X-BeenThere: buildroot@buildroot.org 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 Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Currently, emulator builtin binaries are downloaded after the rootfs build by each tests running the emulator (Qemu) on armv5 or armv7. Due to download quota on the server hosting theses binaries [1] some GitLab jobs are failing due to "Connection reset by peer" [2]: ConnectionResetError: [Errno 104] Connection reset by peer In a follow up commit, we'll add the possibility to download only once all emulator builtin binaries to pass them as build artifacts. As such, we will need to make sure that run-tests only download theses binaries, and that it does not run the testsuite. Add such a mode, with a new option, --prepare-only. [1] http://autobuild.buildroot.net/artefacts [2] https://gitlab.com/buildroot.org/buildroot/-/jobs/4409032417 Signed-off-by: Romain Naour --- support/testing/run-tests | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/support/testing/run-tests b/support/testing/run-tests index bf40019362..e8c540f370 100755 --- a/support/testing/run-tests +++ b/support/testing/run-tests @@ -8,6 +8,8 @@ import nose2 from infra.basetest import BRConfigTest +import infra + def main(): parser = argparse.ArgumentParser(description='Run Buildroot tests') @@ -23,6 +25,8 @@ def main(): help='output directory') parser.add_argument('-d', '--download', help='download directory') + parser.add_argument('-p', '--prepare-only', action='store_true', + help='download emulator builtin binaries') parser.add_argument('-k', '--keep', help='keep build directories', action='store_true') @@ -60,6 +64,16 @@ def main(): BRConfigTest.downloaddir = os.path.abspath(args.download) + if args.prepare_only: + emulator_builtin_binaries = ["kernel-vexpress-5.10.7", + "vexpress-v2p-ca9-5.10.7.dtb", + "kernel-versatile-5.10.7", + "versatile-pb-5.10.7.dtb"] + print("Downloading emulator builtin binaries") + for binary in emulator_builtin_binaries: + infra.download(BRConfigTest.downloaddir, binary) + return 0 + if args.output is None: print("Missing output directory, please use -o/--output") print("") From patchwork Mon Jul 17 21:33:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1808914 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R4b2C42Zzz20FV for ; Tue, 18 Jul 2023 07:34:27 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id ADBED405A4; Mon, 17 Jul 2023 21:34:23 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org ADBED405A4 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id loK8ymE5hIuZ; Mon, 17 Jul 2023 21:34:22 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 6FF48404C6; Mon, 17 Jul 2023 21:34:21 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 6FF48404C6 X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 554551BF955 for ; Mon, 17 Jul 2023 21:34:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 2EDB260C03 for ; Mon, 17 Jul 2023 21:34:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org 2EDB260C03 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QPqUJiCkQshS for ; Mon, 17 Jul 2023 21:34:05 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp3.osuosl.org F0EFD60B16 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by smtp3.osuosl.org (Postfix) with ESMTPS id F0EFD60B16 for ; Mon, 17 Jul 2023 21:34:04 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fbd33a57ddso46177505e9.1 for ; Mon, 17 Jul 2023 14:34:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689629643; x=1692221643; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=asP83rhlw7kAbmWRIjKfC75B7Zd/mLAF2QmRwJ2g7ew=; b=B6EcCQ/1U5Zm9VcebaqZOswpSqjqYcHnxpIKeOFrX2DF86J+1mnm/LI3yNkFctz9Wc aKcSX1Mwot/7g+v7wRccYx3bSXTc7sn9sJbwB9Wef54TcQMvXzdKX+kFhcjVxNk+Szdw n4jNeoAx+szQ7E/tsFu6Glkv7zSx0bKiyu9XCxg/i59owzRgTRSpG2x4Tv6fgsNdtqx5 fsYf7xsMFI9N1kVmUQUwbE5oJhVkqfrppdLqwrqQ6lU0ypUYR/qJYVlK092GtZgUfjGp a4+7bTMy7EgxdJBkksunQYAxJHTpgu3CmB3fyfhKcA6+17NDAwZbAMlaW5f9MU+5hAL0 4i/Q== X-Gm-Message-State: ABy/qLa91zTU/qXt67f3lAYXTdJ1Mb6Z1gcvdnh5cOC863u+nLO0PZ18 nQg99b7bvPz8EtCNRSKdKuhXyYFo8tc= X-Google-Smtp-Source: APBJJlGFLWZYCALbVa4LMfzysy75CRCfLnNl6N4iUAXOn8Cyz2ANkErVzSmZ6DbU2zZt9T75xkOKjw== X-Received: by 2002:a7b:c8cf:0:b0:3fb:bc4a:46ad with SMTP id f15-20020a7bc8cf000000b003fbbc4a46admr422897wml.9.1689629642592; Mon, 17 Jul 2023 14:34:02 -0700 (PDT) Received: from P-NTS-Evian.home (2a01cb05945b7e009bdc688723a24f31.ipv6.abo.wanadoo.fr. [2a01:cb05:945b:7e00:9bdc:6887:23a2:4f31]) by smtp.gmail.com with ESMTPSA id q6-20020a1ce906000000b003fb40ec9475sm651950wmc.11.2023.07.17.14.34.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 14:34:02 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Mon, 17 Jul 2023 23:33:58 +0200 Message-ID: <20230717213359.106368-2-romain.naour@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230717213359.106368-1-romain.naour@gmail.com> References: <20230717213359.106368-1-romain.naour@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689629643; x=1692221643; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=asP83rhlw7kAbmWRIjKfC75B7Zd/mLAF2QmRwJ2g7ew=; b=axCoAR0+7EknKq7P+TfLbx6mlUzW4sR2qZjG0gA6vucj0Sjt06oiYnryUmPpA8KL7n 4qtac48f3znrUJoBK/HF6mh4JBQkVqCbql6dKSLyTS/0eciJon2yLQIdo8BZURUlnOr0 2CtCHuvBPjulieLigSNFT63E3Ec5hQ84zByUJUFTgU2SrLBLfghdLkqe1Ps/bDe4BsSU xuv1qpv4gyDp44euJk4a0hvt9jb+bc/LBD5s3Ovk9r/LakxM9R0LRPtqg8sa0kh8YHVZ w6rxCaXp0TMvQSyXgrGvJCyZx6Vn/SKXgEsPL3x2UjWRdUGEb44SQg3DupWbr8yXE5jK vMVA== X-Mailman-Original-Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=axCoAR0+ Subject: [Buildroot] [PATCH 2/3] gitlab-ci.yml: add stage explicitely to each jobs X-BeenThere: buildroot@buildroot.org 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 Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" "stages" is curently not defined in the .gitlab-ci.yml file, so the default pipeline stages are: .pre build test deploy .post Since any jobs specify a stage, all jobs are assigned the "test" stage [1]. All other stages defined by default are not used in the gitlab-ci pipeline, they remain hidden. In order to introduce a new custom stage, add the "test" stage explicitely. [1] https://docs.gitlab.com/ee/ci/yaml/#stages Signed-off-by: Romain Naour --- support/misc/gitlab-ci.yml.in | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/support/misc/gitlab-ci.yml.in b/support/misc/gitlab-ci.yml.in index cbb6e555ce..d8d6b3f410 100644 --- a/support/misc/gitlab-ci.yml.in +++ b/support/misc/gitlab-ci.yml.in @@ -1,27 +1,36 @@ +stages: + - test + before_script: - git config --global --add safe.directory ${CI_PROJECT_DIR} .check-check-package_base: + stage: test script: - python3 -m pytest -v utils/checkpackagelib/ .check-check-symbol_base: + stage: test script: - python3 -m pytest -v utils/checksymbolslib/ .check-DEVELOPERS_base: + stage: test script: - utils/get-developers -v .check-package_base: + stage: test script: - make check-package .check-symbol_base: + stage: test script: - utils/check-symbols .defconfig_check: + stage: test script: - DEFCONFIG_NAME=$(echo ${CI_JOB_NAME} | sed -e 's,_check$,,g') - echo "Configure Buildroot for ${DEFCONFIG_NAME}" @@ -42,6 +51,7 @@ before_script: } .defconfig_base: + stage: test script: - DEFCONFIG_NAME=${CI_JOB_NAME} - OUTPUT_DIR=output @@ -69,6 +79,7 @@ before_script: - runtime-test.log .runtime_test_base: + stage: test # 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 @@ -86,7 +97,7 @@ before_script: - test-output/*/images/* .test_pkg: - stage: build + stage: test script: - OUTPUT_DIR=${CI_JOB_NAME} - echo "Configure Buildroot for ${OUTPUT_DIR}" From patchwork Mon Jul 17 21:33:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Naour X-Patchwork-Id: 1808915 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=140.211.166.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R4b2R5gjRz20FV for ; Tue, 18 Jul 2023 07:34:39 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 601894024A; Mon, 17 Jul 2023 21:34:37 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 601894024A X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FDoGp1uMhHZt; Mon, 17 Jul 2023 21:34:36 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 0E70A405AA; Mon, 17 Jul 2023 21:34:35 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 0E70A405AA X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id A22ED1BF2C1 for ; Mon, 17 Jul 2023 21:34:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7A5594024A for ; Mon, 17 Jul 2023 21:34:07 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 7A5594024A X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JYRlJP7DC6tX for ; Mon, 17 Jul 2023 21:34:05 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 88A554023E Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by smtp4.osuosl.org (Postfix) with ESMTPS id 88A554023E for ; Mon, 17 Jul 2023 21:34:05 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fbc63c2e84so49770185e9.3 for ; Mon, 17 Jul 2023 14:34:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689629643; x=1692221643; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7wnEI3GTmsxoqe0ubsRrn8aSPpa0FDm/lGxVrkzOUz0=; b=VnIo00RizslZLJKpiXgU1PWXTXRI8HnlpVeb5wVx251picquJ1C3eAn0hQy7TMAhro mUP4GuPZ0AcuuKx+7hJiMmfM8GVg9yAujpcoGksUaYz5QbV9KL3qKIefKyqU/Q8mbsSR eXfx454U4P2ZEx8I2QjpL1WMq3oRpIhHgtmoaP2OYWD1QzEKJ1N/sYYHenCgMX25y+Sy P5yaFuQRpHWNuVRkBkktCstw9ywITlvCmqqMxn/rRLumoB1dTuwM4N0MLD5peCLiZFLg PDoVRXQ3fWvGZrecKY9tTkof4V73o6EJVUHA/IYUaxUb524idPuhLwDg0oWMZnnh8As2 nfbQ== X-Gm-Message-State: ABy/qLaH7OyWfDGNgYH908R/39szeWvL4y6KZdFHO2BG77XssyLFErZh y8s2Qd26HXhJmeNCI2LkLAWs4HiiAnM= X-Google-Smtp-Source: APBJJlFRpzLrXVc1q8mKpmRs76PjqzQTksx/VYIMNXQYM/g69EHHm2HtFA6g9NkE8iELxnYYSE2a+Q== X-Received: by 2002:a7b:ce11:0:b0:3fa:964e:e85 with SMTP id m17-20020a7bce11000000b003fa964e0e85mr392077wmc.5.1689629643417; Mon, 17 Jul 2023 14:34:03 -0700 (PDT) Received: from P-NTS-Evian.home (2a01cb05945b7e009bdc688723a24f31.ipv6.abo.wanadoo.fr. [2a01:cb05:945b:7e00:9bdc:6887:23a2:4f31]) by smtp.gmail.com with ESMTPSA id q6-20020a1ce906000000b003fb40ec9475sm651950wmc.11.2023.07.17.14.34.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 14:34:02 -0700 (PDT) From: Romain Naour To: buildroot@buildroot.org Date: Mon, 17 Jul 2023 23:33:59 +0200 Message-ID: <20230717213359.106368-3-romain.naour@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230717213359.106368-1-romain.naour@gmail.com> References: <20230717213359.106368-1-romain.naour@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689629643; x=1692221643; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7wnEI3GTmsxoqe0ubsRrn8aSPpa0FDm/lGxVrkzOUz0=; b=Nli8vJUGRvTRMPYxSMJjT7uY2nFk7qM6B6zEh8I2oT2+ECdhgStR+PbOZd8CqPoh9N Winn2u99xVaLrxv18EPbBcOqvZLfBaon9/qPEvBz6Hw/mGQxeqRU0hFW6gE/rwNyjY0i VyQjg8+FCWmyhV4ufKHATWq2W4kGtfn9YWYH/eixgDzJrdaLM2KnzD12uy9oZVuBUlsI 8ReEo8ZpIuLsMdx/uwRBz+muZVBqmKsD7MJkxCQjIfR1UKUsb1qQEkj9mm5P68guKQA4 z3qzpd1dm96N6XXuamsTqAUw3EUXh7RFxxkTXQ3CklthaBuk6x9rDVDQFcwVLFa95P7V 7PYw== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=Nli8vJUG Subject: [Buildroot] [PATCH 3/3] gitlab-ci.yml: pass emulator builtin binaries as artifacts X-BeenThere: buildroot@buildroot.org 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 Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" 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 --- 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