From patchwork Thu Feb 23 15:57:19 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: 655984 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp409756wrb; Thu, 23 Feb 2023 08:00:21 -0800 (PST) X-Google-Smtp-Source: AK7set8wFBl1BiA8akO9u1nxecwdqP44C3HCd0C5K9y/1rEqmM56+XPQQE1SevUxSlKpnDw5GEdW X-Received: by 2002:a5d:6a06:0:b0:2bf:e443:ea70 with SMTP id m6-20020a5d6a06000000b002bfe443ea70mr11303565wru.1.1677168021083; Thu, 23 Feb 2023 08:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677168021; cv=none; d=google.com; s=arc-20160816; b=tsPXkHd8c1H4MjGI+DsLroLXOR1Y2ApDc9FuqC2NN5fEGII7ZGPQk1sNm/7OVLKAJD Mf5u7JXgYv9Bmnj+TgYP5HnUY204ArPOZRBy5LcrLsr86pwvNrViviGt6Lq6nPzsJecJ liGbj7RX30TvMGiYJy9IpqiVu/M73hDKLNdsC1rtZglAD4q/SapGrNL4rDeTQF1TSifL XEKxjpKz0tXuIszI0h704PnNnraWW1pqw1SaIck2KYHDts1eAkIHwC5LKmfo36/zYB7S zzkpQHEigYbDI39POPxUKJoSJIK1Ob5Zy7Sf5HE/AwJHlbnETLeRYkxLpm1CQQU7TsA4 c6Fg== 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=N0gT91TwddcekKpXGf8wUv0YctxEtYUGFWLQ38Ww0OA=; b=Zsc9CZX+n91l+jsrvJQD5QDXnFaoynBKam8FeYBEmC2BHO0uqOwc/mHae8HdEFdGvL sY6DiOfyR4Gs3pJqiOacY8jov+o6bnLmVswY0nzpSUUOeOvyf5gSAJaoBk0lyqGqbO2V Vt/JyFQM1eVozKmzWjijLDajhPuk2+n37zvU+VIg0otHi0yalKveJmHD8JcOflm1vWCW /FD9XHGJJx+2POfhpr6BuvqlqcjrPW/4org/qB0ssEZ+aXVEFClC2DeY9efK2wfaEP9c fTvOoF8gNIBIJUFuDo0/2lef9dlMWCaUPMmjBiC0WvKEuT6a91jKC4b7DEISwxL8K9is GKsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tWcmn04N; 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 b5-20020adff245000000b002c54782793dsi12824259wrp.76.2023.02.23.08.00.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2023 08:00: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=tWcmn04N; 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 1pVDyU-0000gR-0B; Thu, 23 Feb 2023 10:57:38 -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 1pVDyM-0000DH-IA for qemu-devel@nongnu.org; Thu, 23 Feb 2023 10:57:30 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVDyJ-0004kX-Qx for qemu-devel@nongnu.org; Thu, 23 Feb 2023 10:57:30 -0500 Received: by mail-wm1-x32c.google.com with SMTP id o4-20020a05600c4fc400b003e1f5f2a29cso11048256wmq.4 for ; Thu, 23 Feb 2023 07:57:27 -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=N0gT91TwddcekKpXGf8wUv0YctxEtYUGFWLQ38Ww0OA=; b=tWcmn04Ni5qFG25NrV+kVowGr37vhOaHoghCfuPNm3Pj8mhb4Pvr1Kc+QKih1b0EtX e65tKaMEglDV6Ua00DIgfe7f9Yxyyka72RFAF98k3BpDOFCQLl14um8fK/NebTlYj/5c TZkU7ChKC8icSmqo5VGWsvcvvANFg2NG9wACt59Gy+nIRV3+8P8jB6l1hRWlyFI7biQl woXJYshDIxl/U29iXSdRyCbM5qXxox0cXGmNj6AZGqRpCN68pQfPT7KVLvklRbu/+8uC HM19sCC4gm/pKNJ4OXFwqbgXaNURVh7tWxQAt+LrZ481eTLccC1ptwXJMzjY48ckQiXV FDIw== 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=N0gT91TwddcekKpXGf8wUv0YctxEtYUGFWLQ38Ww0OA=; b=azeLpSqK6lR7kNKhfMwTkF4qb2NvdzVrEfuODPg+ytw5sBbApkmVmcgie5kuxbwSQS UQ9Ebiu4RZMkDf+4nhwaOIqDIPbBks4fv2/c02rdFGKRfRLMY4tpXeqVZIdPqY+PjHOU QzzZtFZxN8j4poZx9I5NRurpZFRL+bGYj7b2X1dZe0lwakX96EXWE8dzC38T0T30zcHO WirZMtwSLML8dMJkGPi4l1//EgccKDGbxfvC2kmrWK1mwVMVqRRephSFrRaSFCnoNODs t0JeENS18eMFLjvpNIbDUylhDUwXHu/JRIX1+lQo74eK66uudRObT5d3Nb/iEOtTXrYY hG9w== X-Gm-Message-State: AO0yUKVQp3nK9UmlQvDceoYMDyd11eQx9W0A2vM4wWGkiyor0XGGlZew pjLMGGbXpiE6WIOMpqqvfvE9SA== X-Received: by 2002:a05:600c:2e93:b0:3e1:f8af:8ef1 with SMTP id p19-20020a05600c2e9300b003e1f8af8ef1mr8569068wmn.22.1677167846073; Thu, 23 Feb 2023 07:57:26 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id r26-20020a05600c2f1a00b003eae73ee4a1sm307879wmn.17.2023.02.23.07.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Feb 2023 07:57:23 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 044421FFC2; Thu, 23 Feb 2023 15:57:22 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 12/13] tests: ensure we export job results for some cross builds Date: Thu, 23 Feb 2023 15:57:19 +0000 Message-Id: <20230223155720.310593-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230223155720.310593-1-alex.bennee@linaro.org> References: <20230223155720.310593-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32c.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> diff --git a/.gitlab-ci.d/crossbuild-template.yml b/.gitlab-ci.d/crossbuild-template.yml index 6d709628f1..24a41a7b21 100644 --- a/.gitlab-ci.d/crossbuild-template.yml +++ b/.gitlab-ci.d/crossbuild-template.yml @@ -48,3 +48,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 74d6259b90..bbc013725c 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