From patchwork Fri Jun 30 18:03:46 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: 697954 Delivered-To: patch@linaro.org Received: by 2002:adf:fcc5:0:0:0:0:0 with SMTP id f5csp592860wrs; Fri, 30 Jun 2023 11:06:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlF6rNGSnH0/xuVPZhuxQlvQ8YpUiz+VWm+f2695jQPOr6/SmuwuiNNmd6t+jRW/BSYh3rLM X-Received: by 2002:a05:620a:4256:b0:767:2e70:a511 with SMTP id w22-20020a05620a425600b007672e70a511mr3250875qko.72.1688148370235; Fri, 30 Jun 2023 11:06:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688148370; cv=none; d=google.com; s=arc-20160816; b=QRtEfKeFcODsXGGlh/W2smdzb8+1K0owQMcRuwXyi1GNluaN0vaHeP5Nyk/jO+/q7a A8tmfvWZSO8cTBP5g3+rJjWLFfmyte4aeyhBfSatGPazmXjccj60mDQq+Euino9AtFwQ 5n0mTFdQVC8VmHiIMkk+H1MurQehhFHL8WbstOvWCQs5LDAJkqG/3dtxItP9iZu0l/kB oyYMh0hwQKBrggMuXmgpR3gj1gCHXzTNvyHxEXe6oc18KjiEET/Ew3lX7+79h6PZqYl4 BhQsbfs94CYm5KdOYw+XHCSeI1HpAQPbilUVKLi2kqSsmgr7uazIroIWeI+vKlmxMtiU EGAg== 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=TRLND/FsJP/7sFVhRXujI3BG1g81af0/qiaTT1E8hck=; fh=OltHerz+Vf7zZkebZbScoRT4WgVwJDskRS7DoEjx2Hw=; b=HofDbIeSSwfqE48MMoiR0YYNCM4z/7iMmtpMX9QupOezKFjQbL1Wyi8k3HnvhTFpi5 yc9JSRENmRYtGbUPFVJKqmHYSyzOWLaB/p64tME6qpLNuoqeNaFwh2CffJZSuFhtZp0g pO/vjf+67T2G05dxnU+xzwIMxMvd89e3k2buuHUM+O5p+o8SLjD6nNR3vSAG2pshIHT1 80n0bPvnKIcNnWttm/PfCTmp2lnA2QaP8k6PrEEuPgLRnBl4k8Qnw7fKfPFz+4NMNqtT TBCaj9lu9ksDdvS5849STNwrfqHQoCjLT9Sd3n49HZH6cGWyfPvk5r1KtwMraHVUW+8X dl9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oyBMZlpD; 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 v19-20020a05620a091300b007654177397bsi6039670qkv.345.2023.06.30.11.06.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 30 Jun 2023 11:06:10 -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=oyBMZlpD; 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 1qFITz-0008IE-MX; Fri, 30 Jun 2023 14:04:35 -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 1qFITu-0008Gz-Ki for qemu-devel@nongnu.org; Fri, 30 Jun 2023 14:04:30 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFITr-0006y8-N0 for qemu-devel@nongnu.org; Fri, 30 Jun 2023 14:04:30 -0400 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fbc244d386so17432945e9.2 for ; Fri, 30 Jun 2023 11:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688148266; x=1690740266; 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=TRLND/FsJP/7sFVhRXujI3BG1g81af0/qiaTT1E8hck=; b=oyBMZlpDSBxckYDa7f5eSaZ6VDlXW0xk6+XnXPl9sUWEJalNR0LgK3MwdRWZ9QiZ4P 7klpbwwESHVP7g9Bl6oEvJZyUkH8I8vdCdE54+dit/8fb9tgmFAXKo23G+GQpnMhkCkM DUNBa8B7VC00GPTjK/jUsBXqfwZdD5LDFhWp/ekx4OKxA6cEhcRAAeEOexnqPnhpcfJ9 S5FbGypbjKKr5oRPQWPGFXDRHMxyzyXE0uECckMps3KPer/Frrzsiz9zGzWqdCM5fJwb 2+is+7c/izXRaVNXI2m2/wvjwiG2lcRp3LYGU3pgUu8OBVyAjjFhcIwJUEUF3qrb4XxK AwYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688148266; x=1690740266; 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=TRLND/FsJP/7sFVhRXujI3BG1g81af0/qiaTT1E8hck=; b=MVBBw0ijKKi3aOPGABe/sN8eU3VP7jYOx7aU05GBo12k8SuD9zil2aEKp4ba8mjgRs otlWhNWg2mF5ReApES4j65KAdoqQNpsXR+nmyhpHbeVflhb0yFUq1fv9kf6o7qoeN5TS +S6ak7b9wDiKzJjrK+eDi6FUvlKw6ZsuRyt4KjBN2Vw6fn/Hhvu7dQjyXSvKKI+MjB4U rHCLxXqJQ0QOG+7KajEMmwanapxYnGiKLvP1qzJWK5UFOevIpq+QFB9Es0vXBhFl4kMm pze0/CyTmW1ld/gEdcFrV9VhOvhB4iANRGz+ckOUpWdfNZ2w9DpXMRjLGm2dNeHoz0+C ad3Q== X-Gm-Message-State: ABy/qLaTgrXn64dXDih9+U03VqnW4YKNrLOXh116Ma0Et+T2jLCwjOvJ UbpogsRCJAdVEZql2P6mFjiPAA== X-Received: by 2002:adf:e6cc:0:b0:30a:e9cb:1a2e with SMTP id y12-20020adfe6cc000000b0030ae9cb1a2emr2538200wrm.65.1688148266147; Fri, 30 Jun 2023 11:04:26 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id i6-20020adff306000000b00311339f5b06sm18754525wro.57.2023.06.30.11.04.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 11:04:24 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 0F3B41FFBC; Fri, 30 Jun 2023 19:04:24 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Paolo Bonzini , Stefan Hajnoczi , Leonardo Bras , Laurent Vivier , Peter Xu , Juan Quintela , Beraldo Leal , Radoslaw Biernacki , Qiuhao Li , Peter Maydell , Yanan Wang , Riku Voipio , Wainer dos Santos Moschetta , Mahmoud Mandour , Alexandre Iooss , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Eduardo Habkost , Thomas Huth , Laurent Vivier , Bin Meng , Marcel Apfelbaum , Bandan Das , Cleber Rosa , Richard Henderson , Leif Lindholm , Marcin Juszkiewicz , qemu-arm@nongnu.org, Darren Kenny , Alexander Bulekov Subject: [PATCH v4 01/38] gitlab: explicit set artifacts publishing criteria Date: Fri, 30 Jun 2023 19:03:46 +0100 Message-Id: <20230630180423.558337-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230630180423.558337-1-alex.bennee@linaro.org> References: <20230630180423.558337-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.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 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