From patchwork Tue Jun 27 16:09:08 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: 696869 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp3865233wrm; Tue, 27 Jun 2023 09:12:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Zf/Dr3kJhL63WoDncz2gUDRGN8F9EmMdE7TytN4I9vhn6TTEyDgNLnGHBm65a0eojc1U2 X-Received: by 2002:a05:6214:ac8:b0:635:4693:e400 with SMTP id g8-20020a0562140ac800b006354693e400mr11331317qvi.7.1687882352199; Tue, 27 Jun 2023 09:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687882352; cv=none; d=google.com; s=arc-20160816; b=QUuCRYbXwWJRWrjvurKqmqjK+a6VwFAEk/vDB6OK7ryujQMNAUo4WSxX9dsoH5T4e/ 0VQSTcz1kSsnKSOQ2Zp4cH24PjGrBP8mqhK5zQT6FiGB/hCzsiKKdFrtXPdfXatZ6GCj /3KSRzgf8cfHcgH7xKv0WzifIsk0NT9TjE3AsOwIqdO2KR+g8GOIGOzvh7MnB0MFeTby LXuvPpW6tdxEqalo1wzDCeOS7+wvCSq8zfs+v6KIv9ufFUlyhBKPoEDa6RrxsbNbgnqO kH8vxNjGi3KhBk156XxAlsznl6tq94hrnzXWak7cTtbqdup2P5paoYK7g9ptJi0hppLP b8DQ== 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=ArV5Yx1z9lg+jufSSsiXTUg87d1rJ5PmrQDHLSB2i58=; b=u3bgsORpfju2JF8b0IyZ/3jHoboloQoxGieLUs5vVasqMEVpwY5Cr5u13x0i8y+kVg feon4Fy8VnkYatu7D/mOi0cCkojKYxJJWPNTH6eeWBMISWb6G7Ry3eSkSY4EDFFAAX99 FTdA17WaQgO/Lcd+uiuARZYLbBNMfDW9nRC5Qagobseq/zwOaWNZhyG6T5DJJzoyEkVi XnH8uOMX1sbHyD6BzOuhQg4HueOD0maK9Boy32GdyNqufx+5UImThgbLMPXMj00pY5eG gfOy6CtRkqiObbs1Gq+GS3kV/HXMYw4DvOiqgf02vx8s4R1n5bgL1bMWm2FTjGxXkZI4 aZCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=avrPSdph; 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 kl6-20020a056214518600b0062fe3ca10b5si3479409qvb.186.2023.06.27.09.12.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 27 Jun 2023 09:12:32 -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=avrPSdph; 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 1qEBGL-00087i-RK; Tue, 27 Jun 2023 12:09:53 -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 1qEBGI-0007lG-GM for qemu-devel@nongnu.org; Tue, 27 Jun 2023 12:09:50 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qEBGE-0005mE-Fy for qemu-devel@nongnu.org; Tue, 27 Jun 2023 12:09:50 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-3fbab489490so3652575e9.1 for ; Tue, 27 Jun 2023 09:09:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687882185; x=1690474185; 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=avrPSdphFNnoKpd5wAWXzCBGmTQh19SGXRW3saRBwtSfhLBGkv/N/evNr5rfyMQ+UM KYeGNvNdV2UANPSauIoOGYiWkTN1UWHTj3Bnm9kX3SEfTZhLYuvQC8AQ4daiCj0MU3eo igp4Fos883p4biTUpGEjpnU5HW+vt0yKPDcoUs3zYx7T+P8Q+nFEFJ9TLlB/rOCSNxAK 0OcseXGwcisSxNsbG39SILdtT3Kn0qcXcilQ0gdSf3CzDStgrlt/eih9ikqmtxX4+qcF Kk3v13anYATAQolYNjrgT1EtO3Mj1LjMvPYD9BeQ/iMO93bLHDpuNsVkgLZ/+wfq0rUC H+lQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687882185; x=1690474185; 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=OxFCouPdnHluk7ZmDBcy2qeH6nXqa78LpjBZNHbZ/I7Xcgm8Hrsjc6rGizOEWBXjiM 1m4XUhXjJ/iBMwAZrVAmhN3Ecnsql/UnMA0Iqx8BTxyq3rR0QBNc0HR4WUdcxtVcAYS/ Vg2ck/0ajoI0dzB3bOsl1IUJe3N/mIo5ZMO6MY5vfOD4jgeKT4wPCsmNGcBLIvI1Yudl 1AMznzvZdk5Df02oniCbpleNf9vT0iodzmUy+Ue5sQZ2MKYG4sXrskBrlJdrjyNHutNJ YAWqzc+hktC1pBhUhp2khz61agmhez1R0c7qq4uFeHu8T0bo9UohSinVDLTFq80YtMne mQDQ== X-Gm-Message-State: AC+VfDz8uFZC4F++kGzwnCzhglPgwcw9824sLyHMCrK3NAhVahOx4UnU oZ3elCCl69OaNdYSV/627TD+JQ== X-Received: by 2002:a05:600c:20a:b0:3fb:416d:6358 with SMTP id 10-20020a05600c020a00b003fb416d6358mr3221537wmi.16.1687882184940; Tue, 27 Jun 2023 09:09:44 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id y19-20020a05600c365300b003fa8dbb7b5dsm7523406wmq.25.2023.06.27.09.09.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 09:09:44 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0F74B1FFBD; Tue, 27 Jun 2023 17:09:44 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Wainer dos Santos Moschetta , Juan Quintela , Thomas Huth , Cleber Rosa , Leonardo Bras , Beraldo Leal , Peter Maydell , Bin Meng , Yanan Wang , Darren Kenny , Alexander Bulekov , Marcel Apfelbaum , Peter Xu , Radoslaw Biernacki , Laurent Vivier , Paolo Bonzini , Eduardo Habkost , qemu-arm@nongnu.org, Stefan Hajnoczi , Richard Henderson , Bandan Das , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?Dani?= =?utf-8?q?el_P=2E_Berrang=C3=A9?= , Alexandre Iooss , Marcin Juszkiewicz , Leif Lindholm , Laurent Vivier , Qiuhao Li , Mahmoud Mandour , Riku Voipio , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v3 01/36] gitlab: explicit set artifacts publishing criteria Date: Tue, 27 Jun 2023 17:09:08 +0100 Message-Id: <20230627160943.2956928-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230627160943.2956928-1-alex.bennee@linaro.org> References: <20230627160943.2956928-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.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=unavailable 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