From patchwork Mon Jun 26 21:59:01 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: 696502 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3447883wrm; Mon, 26 Jun 2023 15:03:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5IYv2a9BUPr47z0MBIhoahwvfmTmf1OHNfpYg3BGyEbbKEIE/uRFLzFXlBe4bYOhmipjq6 X-Received: by 2002:a05:620a:4706:b0:765:47cc:ccbf with SMTP id bs6-20020a05620a470600b0076547ccccbfmr13194983qkb.14.1687816981327; Mon, 26 Jun 2023 15:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687816981; cv=none; d=google.com; s=arc-20160816; b=bB8ANT8xw7p0/knwCQNaaamVqwZUCWbNFFJ3tGu0d5Hob5F1DVAcgKhCjrdNrSexEi EahDsMr+T0kXSjo0h77tUFV82YD2T83tr3UNc3yAngluAtNEeoZw09ye/tWkhbIGjpPc DFFdnPhoGUfFjHl2WU0YMwoeLZafsPTlIJZXLYwcsLXOnG00b20hfrcOa9mMa3T4ikIW QFdgmfSH553/LqC90jA7Df8Y7QBp9eVsyX5rLDATdgvTJ4CkiscO3Sr14gu6fIc6hzYo U3+qaOfzJLbFLQ8vOX+WijPLVX1y4Pd2hauHoTA2C2VFeyl3HwtZzlMAplASIZ9k4v+t ddVw== 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=lp6KR88j71QtkzhoL0VNQhU+0wKLrKZSfG0XhX5V00g=; fh=sQEya64SXtq2IEsk3H77u01QQAMvGjGQGvqUW/mcVd0=; b=oARaJN8aHYQUxuFmAyZ7HLKY6CgFJdorVVq3EPyvMeaFlVloQ+qAyKpofHIroO9lZP OZVKMZd4Yr9Co820eC24Cl/RBhPrr7KHsiWfyViGvEP2r0EISCwmbj2xwCoY8jyP+pkJ o2GxgBEZFhU92josK+qkzuUWgak20tYHLKC2hWnk29aXEQAg+uz8UJywZTsFT916jMlf jYSb9APWWWPxf/OMkjqfTivaZ5oTw4TIfRD/TmYNRahn89comwLOVxxcbH9f/4RAv8jI /V+HDzP2MZGGB30JnBmg0hdSHUpp/0HvT2FXm+1jBOM3SzUQoN2sroH9l6+dgIbxELAn HiDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=M0AguOAn; 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 b13-20020a05620a088d00b0075b08d7b0c7si2375160qka.187.2023.06.26.15.03.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jun 2023 15:03:01 -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=M0AguOAn; 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 1qDuFA-0002WS-M9; Mon, 26 Jun 2023 17:59:32 -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 1qDuF9-0002W8-Ar for qemu-devel@nongnu.org; Mon, 26 Jun 2023 17:59:31 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qDuF7-0004qi-IL for qemu-devel@nongnu.org; Mon, 26 Jun 2023 17:59:31 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fa8cd4a1f2so18767155e9.1 for ; Mon, 26 Jun 2023 14:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687816768; x=1690408768; 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=lp6KR88j71QtkzhoL0VNQhU+0wKLrKZSfG0XhX5V00g=; b=M0AguOAnuCNYR9k5ZIv+tDNkU/9uW/oRYm4nIcLYgiX7lR/JskEtYdCy4MQtMpc8EU jAeob/Aj+qa297NS96TGzjRyk7L76V3Vl81wbviqBXfTzMRodHmfh7M6FgX7KE0i+vf3 /iQrLgP4dU3Nz3LWwukjnMCguoZ4Bp09kWf7PPDk2s7xr0611QnetLHwm1DbCgpLVngC abHPYl0YsX+7sOxoBlg7oC0pgupZXpg+oRfiV1IQOAWmlTuqge2Q8tq6PUCzUHuRAcHp L9w3mk3nU8E5NOK6hTTqgRJr6qQBd4xr2gHgJvVGKtmoztKyOGw708k9q3BmjrpovKIM ePcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687816768; x=1690408768; 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=lp6KR88j71QtkzhoL0VNQhU+0wKLrKZSfG0XhX5V00g=; b=kUZqUsRRcziBO/hoR2e9OCjjBR2A9gj6jylnvdqfDPdkb5pJ2SfJp4kL7yQJ8y+cGS Nx1EnJiWr51E1yLCak4B41pUXMgIDGb7TYq2k8pyVcOKMcdfl7kXFXLcl4naTAbksgCI SAIpDNJZVUK/ZZE7+DjBwUDpMhWLi08AO2vRhN1QSgBP1Z1Ao2mtlRLdQo+iuFMJuiQ7 uypF5eBkgC4mluAbYbH4OOEyg67iVWuNO6ambt5/Pa9qxlLrZ1ebIDATULhnJa3TZQZh Zf2NPemh3PF0m6e8KgXbeUJyJlp/WjLgssCjYeQg2uToPQIcEEfaDT3ug+yRaB262DX8 oQiA== X-Gm-Message-State: AC+VfDybLOL6i5VhL9RP6vtHwC36RBi3CCiUS48HIlSmWOG7/pbfT+0C i+aDLIv+k0WMecQap1W1NixTaA== X-Received: by 2002:a05:600c:285:b0:3f9:d7ff:24cc with SMTP id 5-20020a05600c028500b003f9d7ff24ccmr9574114wmk.34.1687816768081; Mon, 26 Jun 2023 14:59:28 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id s6-20020a5d4ec6000000b0030ae849c70csm8468891wrv.37.2023.06.26.14.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jun 2023 14:59:27 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0979A1FFBC; Mon, 26 Jun 2023 22:59:27 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Alexander Bulekov , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Juan Quintela , Alexandre Iooss , Thomas Huth , Marcel Apfelbaum , Leif Lindholm , Riku Voipio , Peter Maydell , Paolo Bonzini , Bandan Das , Leonardo Bras , Cleber Rosa , Richard Henderson , Beraldo Leal , =?utf-8?q?Alex_Benn=C3=A9e?= , Peter Xu , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Mahmoud Mandour , Stefan Hajnoczi , Yanan Wang , Eduardo Habkost , Bin Meng , qemu-arm@nongnu.org, Wainer dos Santos Moschetta , Darren Kenny , Radoslaw Biernacki , Marcin Juszkiewicz , Qiuhao Li , Laurent Vivier Subject: [PATCH v2 01/26] gitlab: explicit set artifacts publishing criteria Date: Mon, 26 Jun 2023 22:59:01 +0100 Message-Id: <20230626215926.2522656-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230626215926.2522656-1-alex.bennee@linaro.org> References: <20230626215926.2522656-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x332.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: <20230623122100.1640995-2-alex.bennee@linaro.org> Message-Id: <20230503145535.91325-2-berrange@redhat.com> Signed-off-by: Alex Bennée --- .gitlab-ci.d/buildtest-template.yml | 4 +++- .gitlab-ci.d/buildtest.yml | 2 ++ .gitlab-ci.d/crossbuild-template.yml | 1 + .gitlab-ci.d/crossbuilds.yml | 2 ++ .gitlab-ci.d/opensbi.yml | 1 + 5 files changed, 9 insertions(+), 1 deletion(-) 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 1e0e6c7f2c..34f9df2be9 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