From patchwork Tue Feb 21 09:45:57 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: 655362 Delivered-To: patch@linaro.org Received: by 2002:adf:9bcd:0:0:0:0:0 with SMTP id e13csp1868985wrc; Tue, 21 Feb 2023 01:47:38 -0800 (PST) X-Google-Smtp-Source: AK7set/NyMxwpxdkiD3qcSgLP8z5/PTBRbWvORfJG1sFxQpJsp/IV1AiEox7d6AtoxNTZj8zmas4 X-Received: by 2002:a05:6214:f2d:b0:56b:4e51:acd5 with SMTP id iw13-20020a0562140f2d00b0056b4e51acd5mr10831984qvb.12.1676972858355; Tue, 21 Feb 2023 01:47:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676972858; cv=none; d=google.com; s=arc-20160816; b=MBMBXfHTnIpP2E5T5VBxQ+iAvaNVkc5TwdxjgIr8UHgKWGMvaJrcS3JIrLnO+q5+vg 2gDNZ0oYp/y3KKW/lRSAADOahYO+f7pVPiAr5SzJuhR0Jn/oLqGWgjZhM7qdjZWeUPW+ sUjwq6IR0gz3hMT9YP6UGDw3vNhRJGu4TcwP6bbeQBBf/uz0HSzMfvYyDnyjwTuHbXbz ZqQLrrfMbkFlQIdGMbd1aeeVb4e9ZkrsZgJ0gqarFncF76ZonQKL9PRWOE3b1oIzLKTK zilntJ5h9izczXAz10DTLdKlvd1HL7TwBEbCaJu/LhL44HtQ3pMGMjhTRam/d/Kd/rSf dFSg== 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=HrkxQ4C8k4Tf9raZcUSEIFG81EdtIwTYG8FkdkShoug=; b=muoRIKMpiX6O+xVYEwS34zYapr1PLxigaDLcmulEGHnv08XJEX2DqCaE1f1mh4OuQE lfDkX4joK0S+Qi5JCijNgOmi+aUXpJRsyJj11f3kS4U3mwQDykRGnMk3QAgY4YmysV7k 7c63FI2tjkNNQdwTgzzbm3BJ0/sR4sPoqbOxazquKuYjYT6OptetCG0N2M/Z7s6LuTlW xQGLerqZM3ld9hAqwPGPC7XGnp7y7Ewxu8PTM2LOPycZeDmcNvwJ4a2lDsLoRcqGK0oJ GK1bY0zZafDtzGOry30A1zp8Wd+nBWQD52F4Qeq7c68JNgC38gsoxwdJA1V4eigJxwau wHrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OA0ew+Xl; 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 q6-20020a0c8cc6000000b0056e97f3d1b0si11154189qvb.59.2023.02.21.01.47.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Feb 2023 01:47:38 -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=OA0ew+Xl; 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 1pUPEB-0006oL-5Y; Tue, 21 Feb 2023 04:46:27 -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 1pUPDy-0006Zq-N2 for qemu-devel@nongnu.org; Tue, 21 Feb 2023 04:46:15 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUPDs-0005lg-0f for qemu-devel@nongnu.org; Tue, 21 Feb 2023 04:46:14 -0500 Received: by mail-wr1-x42a.google.com with SMTP id p8so3840754wrt.12 for ; Tue, 21 Feb 2023 01:46:07 -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=HrkxQ4C8k4Tf9raZcUSEIFG81EdtIwTYG8FkdkShoug=; b=OA0ew+Xl2SPqL6tHjc/p7983chG8UO+pwRXwW/gWbT/u5iW4Ke9ifraMKY3yjsoL5t lL865P7ikBD4RzepmOt1ucSgPt/yg/fHFD6nT8Id9VsUOpKN4riuDINi/CYcQBqojUMj iyb4aG+/nktaZy8r5rWwG/LpQMH9iKCB2giEaqYOZPKMZGkKfPJQ3PThFRIvVfKi0H/s 9TGabpsk/KV4V7Sp7XzZX/C5l/h5hoWrXj5ZzLDhNSwWPg6CMM5EejzUo1Ejqlj5FzTz di2aW/M61XqcxeOxmIY/xplY2Q0nI9HZbLLwjcMnAGI1J+QOdb1ChPVsCaPI+hB2gH4j iFJg== 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=HrkxQ4C8k4Tf9raZcUSEIFG81EdtIwTYG8FkdkShoug=; b=oRBzTvep6b220yMFAHYfFrMT71+j7ck2x6qXrcxz8s08pOYd8LVmElWcmllb91YOaF edr38VN9EIJim3tAo5iAXbJiThNTboVkfabkeHIUNdiF7nncFdUhmvXQxO42V6VMTf5J EHe0s+rbzkqxzRRS0cUs6jSfTYUDzriwTZfZkTPc+KIJCC2EJn4Cd4cKMFbq2wTb7mG0 wfyDxNqb2AL0+NrDon4NGX3hfmqDcQ3+qrlryMeExaioWHqBGLQg629kPwbb197tPVzV xAeZriA1FsZvzYrYbsY6ORtQ/qYL0gHv77xCjKK59hYF7PUrlLOaV3hozJWzgRA9L0Vk d2PQ== X-Gm-Message-State: AO0yUKU1GgHywFdtyFR8IzE94VBW3JMtH6KFfYNUJbH1hl5peICmBJzk 8YZ+BDSW6ByG2yaDJHq0hyNoRA== X-Received: by 2002:adf:dfd0:0:b0:2bf:f735:1310 with SMTP id q16-20020adfdfd0000000b002bff7351310mr3548320wrn.2.1676972766191; Tue, 21 Feb 2023 01:46:06 -0800 (PST) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id j9-20020adff009000000b002c3ea5ebc73sm4712403wro.101.2023.02.21.01.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 01:46:03 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9020A1FFC3; Tue, 21 Feb 2023 09:46:00 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Markus Armbruster , Peter Maydell , Yonggang Luo , Li-Wen Hsu , Paolo Bonzini , Thomas Huth , Ed Maste , Bandan Das , Cleber Rosa , Qiuhao Li , qemu-block@nongnu.org, Beraldo Leal , Hanna Reitz , qemu-arm@nongnu.org, Michael Roth , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Pavel Dovgalyuk , Alexander Bulekov , Darren Kenny , Aurelien Jarno , Bastian Koppelmann , Wainer dos Santos Moschetta , Stefan Hajnoczi , Kevin Wolf , John Snow , =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Daniel_P?= =?utf-8?q?=2E_Berrang=C3=A9?= Subject: [PATCH v2 13/14] tests: ensure we export job results for some cross builds Date: Tue, 21 Feb 2023 09:45:57 +0000 Message-Id: <20230221094558.2864616-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230221094558.2864616-1-alex.bennee@linaro.org> References: <20230221094558.2864616-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42a.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 --- v2 - properly format extends --- .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 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