From patchwork Tue Feb 28 19:06:41 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: 657488 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3098287wrb; Tue, 28 Feb 2023 11:11:21 -0800 (PST) X-Google-Smtp-Source: AK7set+YIOou11FE29Tnd0rWz/M737LuOUNfBa7SB/g0+oHPgPUA/Z5VhuOzLl8iZkzDjwPChA2r X-Received: by 2002:a05:6214:124e:b0:56b:f1f7:c67f with SMTP id r14-20020a056214124e00b0056bf1f7c67fmr8400545qvv.6.1677611481224; Tue, 28 Feb 2023 11:11:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677611481; cv=none; d=google.com; s=arc-20160816; b=sY7CfCUXYMk/w/n9OFvokmFBsa8axN18rOPOcYsIhFrkxNiC4E8THQr0cHCdwWaq1H jbsrXtwH1xEgmhI23dpWncYFtLGZNYc6X8bYd0oP25U0p/E67OQlO9qedixzcJAeloBr kQUI5evAXHRC/C5D/N0xonyTHh/AoK/kTddbGeXbkCzYn2rhnwzVuSPj5fz0COotT+G9 pSsxBRWKyecpA4VfFq/GdT32mhXJFrS50/nC7wHIvdSRx6XrEBTHAJFnI5CbNu2J86Fp pmGQILgXU1vVxN8Zo3hILFRcVmfC+nobVkXlMjIi9IX69XADRURUnD0pj5Zi0UAalP1S l3rA== 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=d4/zhLSmWu13QgiQEwsSfeYVh8tCmBtEQrl59j5YpTg=; b=PIrN4XCIsV/OEI8S2ezH91eUWM/pCK5D8oiDmL2Ts6GBIjpF2J9cIrrJS5P4R2zQ+D vRr3vbVBQ49wIiBaUNlXDaQ78UBoiONqQpvGKT6GoY0aGHEcPUY5z+1+IgwSufWyAnN1 L+/1oEJupHl52BCgEDgtJF7prb2zxwQ3a1UQEhiLpMEtgkyj0ccf/oUOJ1syEfGrxBL7 iyz2VKK8JLr25ZDELSD0N2giw5Ecj+mAugfnyHD5tSpRhqzT+J9HnF7/DDO8+ZdDc3jI d6JmNEx68awTepSvyk8fr8bGaZB6k+ufkdk0gcsJcJCnBom/afhS/pokqdqOXZNm3q/G i66g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rC4TFznc; 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 r9-20020a0c8d09000000b004c6d681587asi9243790qvb.15.2023.02.28.11.11.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 11:11:21 -0800 (PST) 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=rC4TFznc; 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 1pX5KE-0002Z9-8W; Tue, 28 Feb 2023 14:07:46 -0500 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 1pX5Jk-0002JP-Gb for qemu-devel@nongnu.org; Tue, 28 Feb 2023 14:07:18 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pX5JV-0002lm-CV for qemu-devel@nongnu.org; Tue, 28 Feb 2023 14:07:12 -0500 Received: by mail-wm1-x32a.google.com with SMTP id j19-20020a05600c1c1300b003e9b564fae9so10325123wms.2 for ; Tue, 28 Feb 2023 11:07:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=d4/zhLSmWu13QgiQEwsSfeYVh8tCmBtEQrl59j5YpTg=; b=rC4TFzncAMB3T8V8Yj44eWdFnaC9m1ZYtwQGg9xS11jJmWPrpvBHBpjt6HTaeDtMZF CLXYAQWThT3G2blEqiJhr1S/vl0FaUCFjYAQZTK454yq7kViK/Obg6vZu3nOKyaxBd1Y IXtP7B8h5tt1bxs3y9k5dqSeQ8zLTkUFGY0SSiHrv+N9VRorCoqCZddi10KM97kR1jsr zr3csqoqom6gedCTZfcJcjswivk2ziZB/UBptZAU+61llKr17aIYnpxCzV2JsV56FPp1 mOluBmQjK4VjlgVZkN5l76I2VSSD7dW4uFuUYZqxjwXoSUcGAGkZ1JtWiI63GZzmTFsi wz+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=d4/zhLSmWu13QgiQEwsSfeYVh8tCmBtEQrl59j5YpTg=; b=VR8YVcN/xNRcaBuoZBXEUP7cdCQW2PyyuOsZowIBSCKwpDSRH1MjII/6wegWbwltbW ucMPchx3okI4YDgbRA3Saz13zKdXreGS6LWI6Abj0isS0yXDgY5ryqJH/jR4DhkXSa2T yPisrQA/CtiOXxkYcNqp32FaqSLELNmFLmVf4zQljnR4aj4yrXZI/z4lltL8beFZkSE4 BZxD6rPWXCueZKIH8arUlp+8e/AEslqND7G376iSku3xFJx4BpWKlpeKshsz6jolszvU 1Fp4/pW7YBdNJvnqbsh+rmU6MU8NJajbdPLjTU6RA5iVOMEifyUcH7G+Vbl3LZ5E2kO/ 3cSg== X-Gm-Message-State: AO0yUKXTriQl7f2Jo+cyEOsYqVhHLM5HH2tK1K9p5zoJ46lgx0bH9S7S p+jFNaVYszyvnBCFTB4G2iOMqQ== X-Received: by 2002:a05:600c:a694:b0:3dc:4b87:a570 with SMTP id ip20-20020a05600ca69400b003dc4b87a570mr3395774wmb.35.1677611220433; Tue, 28 Feb 2023 11:07:00 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id m4-20020a05600c4f4400b003e209b45f6bsm18218045wmq.29.2023.02.28.11.06.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 11:06:56 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id B15711FFC2; Tue, 28 Feb 2023 19:06:54 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Michael Roth , Peter Maydell , Kevin Wolf , =?utf-8?q?Alex_Benn=C3=A9e?= , Beraldo Leal , Alexander Bulekov , Aurelien Jarno , Markus Armbruster , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Darren Kenny , Hanna Reitz , Cleber Rosa , John Snow , Ed Maste , qemu-arm@nongnu.org, Fam Zheng , Thomas Huth , Yonggang Luo , qemu-block@nongnu.org, Paolo Bonzini , Stefan Hajnoczi , Bandan Das , Li-Wen Hsu , Pavel Dovgalyuk , Laurent Vivier , Bastian Koppelmann , Qiuhao Li , Wainer dos Santos Moschetta Subject: [PATCH v3 12/24] tests: ensure we export job results for some cross builds Date: Tue, 28 Feb 2023 19:06:41 +0000 Message-Id: <20230228190653.1602033-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230228190653.1602033-1-alex.bennee@linaro.org> References: <20230228190653.1602033-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.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 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 We do run tests on some cross builds. Provide a template to ensure we export the testlog to the build artefacts and report the test results via the junit. Signed-off-by: Alex Bennée Reported-by: Peter Maydell Reviewed-by: Thomas Huth Message-Id: <20230221094558.2864616-14-alex.bennee@linaro.org> --- .gitlab-ci.d/crossbuild-template.yml | 11 +++++++++++ .gitlab-ci.d/crossbuilds.yml | 12 +++++++++--- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.d/crossbuild-template.yml b/.gitlab-ci.d/crossbuild-template.yml index d07989e3b0..4f93b9e4e5 100644 --- a/.gitlab-ci.d/crossbuild-template.yml +++ b/.gitlab-ci.d/crossbuild-template.yml @@ -49,3 +49,14 @@ nios2-linux-user or1k-linux-user ppc-linux-user sparc-linux-user xtensa-linux-user $CROSS_SKIP_TARGETS" - make -j$(expr $(nproc) + 1) all check-build $MAKE_CHECK_ARGS + +# We can still run some tests on some of our cross build jobs. They can add this +# template to their extends to save the build logs and test results +.cross_test_artifacts: + artifacts: + name: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG" + expire_in: 7 days + paths: + - build/meson-logs/testlog.txt + reports: + junit: build/meson-logs/testlog.junit.xml diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml index 101416080c..d3a31a2112 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -44,7 +44,9 @@ cross-arm64-user: IMAGE: debian-arm64-cross cross-i386-system: - extends: .cross_system_build_job + extends: + - .cross_system_build_job + - .cross_test_artifacts needs: job: i386-fedora-cross-container variables: @@ -52,7 +54,9 @@ cross-i386-system: MAKE_CHECK_ARGS: check-qtest cross-i386-user: - extends: .cross_user_build_job + extends: + - .cross_user_build_job + - .cross_test_artifacts needs: job: i386-fedora-cross-container variables: @@ -60,7 +64,9 @@ cross-i386-user: MAKE_CHECK_ARGS: check cross-i386-tci: - extends: .cross_accel_build_job + extends: + - .cross_accel_build_job + - .cross_test_artifacts timeout: 60m needs: job: i386-fedora-cross-container