From patchwork Mon Jul 3 13:43:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 698692 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp1761165wrs; Mon, 3 Jul 2023 06:51:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6PjM1OIKXFJ3Eq4Vs+u50QyzFHwJKXTVle1iAj3WuvH13GTrVTvZemBlXElA7XK0BSopoI X-Received: by 2002:a05:620a:4096:b0:765:381a:3485 with SMTP id f22-20020a05620a409600b00765381a3485mr13704570qko.50.1688392263832; Mon, 03 Jul 2023 06:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688392263; cv=none; d=google.com; s=arc-20160816; b=MXphWHUHj9rECPHGIttNq0TL582zk0SzmCyJ5/vK5Xk7JD+cSRyaCfkcPWQSyfsALp SMy+Ac3LFGvOrXFtteoirHOl21y0XkiveeimDziqZRIZvu/RTjaAbYv399Ef4snBdi3M 54aUvqBwVy0mcyLQyAo/xWSz+a/lF84ucRC7d7kVRd+BDGZxg+T9jNyvWhDlEUQ4G3El FDy1ig+kgXxDynKwGV70EUjBYTw8WZyBsIRpjat4iHgWK2jFTwH4jlS+c94MbL6sT2cl j9FlnS8ILF4bk4/KzUnp3OgrziLGP5LGkHywRAF0BU8DsQ75bPtD85Th56pVLrlgukxK D3jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mBABYgdiyToLjyHowniWhIyVXJ273GgxeMYZV8p8dqk=; fh=QaImBOnMuQCEh3b9T8UfhDTXiCiGzD7Dedem6RLxSzI=; b=ZfLdhVe7Khuo69nrh2pXtfVDd7dfXYWXTE5JC//GGHKZiF9RA/ugnD01S/DNz2PCk9 /dS7pfr49Uj0Y/7tUVcAFfaymd+QCPwzvwJQyGdrDFHBvU9gOzbgqAidg0YQJF0yTf5t AQYub5VoI3ffP5VlMRidd4bhuOzRQk1sajtProT2lAyS/bLDS2WZJTgB8pAmdV14G9/w uDk3yadUrD1iRhgSM17Q+r7H+SewIioB7DUVKyOQ1o50NIgIpKxtBOIPtdljl1Lp9UWR L114Sn0F49FMhV9KZmnehK2uRvI96CuhrTULT3WJf01tVEfnsFneq6nih4WcDAmiGrXL gsSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MiOYZnwL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b12-20020a05620a04ec00b007621b47d0a7si10081964qkh.392.2023.07.03.06.51.03 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Jul 2023 06:51:03 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MiOYZnwL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qGJr6-0007RF-K1; Mon, 03 Jul 2023 09:44:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qGJqy-0007NK-Te for qemu-devel@nongnu.org; Mon, 03 Jul 2023 09:44:33 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qGJqw-0005fQ-Lw for qemu-devel@nongnu.org; Mon, 03 Jul 2023 09:44:32 -0400 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-3141140f51bso5996050f8f.1 for ; Mon, 03 Jul 2023 06:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688391868; x=1690983868; 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=mBABYgdiyToLjyHowniWhIyVXJ273GgxeMYZV8p8dqk=; b=MiOYZnwLRGvy6qN11Asf+2HZQxJxfTYjxsn7Kb+4kqT4fLepYWqyV0E8phtu9/a/Oy zCP53wRT/q2kCQ5kiNR9qZycLTGljf7iOpHjbC3uvb4UEGOo+cK4gXcLuntnAojJO5By R9DGvgs5S/SbMD6udFTrgOtkI5sebjNq6trArJ+nHLKZyyBaFt/figMQVpGEtgszkHqd zbPGFY5dcEku6XoeZtKfpRb1wtQy42B0qgMz0ywMSTvtcZsrbPRJplU5s5pUT4KDANco ViD5k/CqnqXSP6sBdm+NRR47Z/1pleSUdo/F9VAPjATi/xGP2stFu+/xs+/noTm9OksF RpIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688391868; x=1690983868; 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=mBABYgdiyToLjyHowniWhIyVXJ273GgxeMYZV8p8dqk=; b=hM9mLYolrdseQL/XdfL+Ffn+vxW19labjfRgpl+gDZSoV+tfJTHBZCxBeoCxiarGE7 ecU2fTUMfap/aIiz9Vy8bX9O9ZMe032IEZM1JgPQwaF6n+hHSqbNxX+2jw06eNr5eM+P BjhQjippsE9JLfaxrYJzwtZ2RC4ZAy+MUc4mLiogIs7l6rM8G3jp0lPBkKRq9Aq2dYXo RW46TG5bLkV4viDwXwtgwFhamdIOx9HxAw48bSmH97SzbIuYJ9mNJ1grrJCJ4yHuaxsH ixuZtIh/8cQqT4NRKL/u8bXFe0+6Zu26FwnJ0wQVgm4LuWUG/LUyxWAtYz3RMleDZgnh CHHg== X-Gm-Message-State: ABy/qLYJSNVhzDHP2pXdqPiKgBQOsHVjrgmtd29wcavKJHZWznH4BDC2 CJo4qTKkEjlU/X3NMDeHtyawpw== X-Received: by 2002:a5d:408d:0:b0:313:eb35:570e with SMTP id o13-20020a5d408d000000b00313eb35570emr8531157wrp.68.1688391868759; Mon, 03 Jul 2023 06:44:28 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id l6-20020adff486000000b00313fd294d6csm17607720wro.7.2023.07.03.06.44.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jul 2023 06:44:28 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 01FCC1FFBC; Mon, 3 Jul 2023 14:44:28 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: richard.henderson@linaro.org, =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , =?utf-8?q?Alex?= =?utf-8?q?_Benn=C3=A9e?= , =?utf-8?q?Philippe_Mathi?= =?utf-8?q?eu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal , Bin Meng Subject: [PULL 01/38] gitlab: explicit set artifacts publishing criteria Date: Mon, 3 Jul 2023 14:43:50 +0100 Message-Id: <20230703134427.1389440-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230703134427.1389440-1-alex.bennee@linaro.org> References: <20230703134427.1389440-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::431; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x431.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Daniel P. Berrangé If not set explicitly, gitlab assumes 'when: on_success" as the publishing criteria for artifacts. This is reasonable if the artifact is an output deliverable of the job. This is useless if the artifact is a log file to be used for debugging job failures. This change makes the desired criteria explicit for every job that publishes artifacts. Signed-off-by: Daniel P. Berrangé Reviewed-by: Richard Henderson Message-Id: <20230503145535.91325-2-berrange@redhat.com> Signed-off-by: Alex Bennée Message-Id: <20230630180423.558337-2-alex.bennee@linaro.org> diff --git a/.gitlab-ci.d/buildtest-template.yml b/.gitlab-ci.d/buildtest-template.yml index 5da61f4277..f3e39b7eb1 100644 --- a/.gitlab-ci.d/buildtest-template.yml +++ b/.gitlab-ci.d/buildtest-template.yml @@ -25,6 +25,7 @@ # rebuilding all the object files we skip in the artifacts .native_build_artifact_template: artifacts: + when: on_success expire_in: 2 days paths: - build @@ -53,6 +54,7 @@ extends: .common_test_job_template artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" + when: always expire_in: 7 days paths: - build/meson-logs/testlog.txt @@ -68,7 +70,7 @@ policy: pull-push artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" - when: on_failure + when: always expire_in: 7 days paths: - build/tests/results/latest/results.xml diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml index aa833b62ca..24bba061cd 100644 --- a/.gitlab-ci.d/buildtest.yml +++ b/.gitlab-ci.d/buildtest.yml @@ -462,6 +462,7 @@ gcov: coverage: /^\s*lines:\s*\d+.\d+\%/ artifacts: name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA} + when: on_success expire_in: 2 days reports: coverage_report: @@ -587,6 +588,7 @@ pages: - make -C build install DESTDIR=$(pwd)/temp-install - mv temp-install/usr/local/share/doc/qemu/* public/ artifacts: + when: on_success paths: - public variables: diff --git a/.gitlab-ci.d/crossbuild-template.yml b/.gitlab-ci.d/crossbuild-template.yml index 6efb0d2a54..d97611053b 100644 --- a/.gitlab-ci.d/crossbuild-template.yml +++ b/.gitlab-ci.d/crossbuild-template.yml @@ -55,6 +55,7 @@ .cross_test_artifacts: artifacts: name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" + when: always expire_in: 7 days paths: - build/meson-logs/testlog.txt diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml index b6ec99ecd1..84ff2f6d2b 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -169,6 +169,7 @@ cross-win32-system: CROSS_SKIP_TARGETS: alpha-softmmu avr-softmmu hppa-softmmu m68k-softmmu microblazeel-softmmu mips64el-softmmu nios2-softmmu artifacts: + when: on_success paths: - build/qemu-setup*.exe @@ -184,6 +185,7 @@ cross-win64-system: or1k-softmmu rx-softmmu sh4eb-softmmu sparc64-softmmu tricore-softmmu xtensaeb-softmmu artifacts: + when: on_success paths: - build/qemu-setup*.exe diff --git a/.gitlab-ci.d/opensbi.yml b/.gitlab-ci.d/opensbi.yml index b4d7eef688..fd293e6c31 100644 --- a/.gitlab-ci.d/opensbi.yml +++ b/.gitlab-ci.d/opensbi.yml @@ -63,6 +63,7 @@ build-opensbi: stage: build needs: ['docker-opensbi'] artifacts: + when: on_success paths: # 'artifacts.zip' will contains the following files: - pc-bios/opensbi-riscv32-generic-fw_dynamic.bin - pc-bios/opensbi-riscv64-generic-fw_dynamic.bin