From patchwork Tue Feb 14 15:17:26 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: 653464 Delivered-To: patch@linaro.org Received: by 2002:adf:f90f:0:0:0:0:0 with SMTP id b15csp3099090wrr; Tue, 14 Feb 2023 07:17:54 -0800 (PST) X-Google-Smtp-Source: AK7set9jGjzfVcPi1Mp5yDA3msYWG8jH/jmIcEhuDYgw6l4FrPTWJRxbJ0Z/KybVoHbG+NT+PR3t X-Received: by 2002:a05:6214:1744:b0:56e:961a:b454 with SMTP id dc4-20020a056214174400b0056e961ab454mr21518731qvb.21.1676387874251; Tue, 14 Feb 2023 07:17:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676387874; cv=none; d=google.com; s=arc-20160816; b=rkaw9b8lEUXRH1IHCIkmbDmUWGSDDc4s/2rtuhvUKeot6N7PN7xAvKlu8ENWWu2HJN 5Y1KlzFe0/rJLIZuP4g5fCq3fh/2Z0H7mKKN7cbVnGzAthX82gpCjbBvL3hU5dK5IvY3 +jOM6KHi7CHZpYxOmxNOSnVjtpfBYEmEL7GyzRxEWqfyiewct9dhzmL2EDG17TqDh6Xp Eqxc6ihKSOPWKWQz0ZPBy/NKMLV8a1ub+PnRq+wiW2HvzU41EyaNR6wZQcyzn4P4ApFs Zp6jAYtahw0d9jRUynuze1xLw5SOeXCiPdJWamlhU+eluJES7HTmrPBMJ5Mxb+6OceVd wBtg== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=fU/yBgdFMVlopZf6+UCk25Y+63cTrg34eGsGdzxBXFg=; b=xsUmHBFplsNBz3REaxRdKzNzDXhZg45VmwRUMhNdIDQKJHIGOXN1XV+w8FE/1QdWmu h1SegXBfPajzTl0myzsCQEp3hjOg5Jm4PF1NhsIun2ap1++KhVqVBwplEo+ppTE7oAyk AjTH24u9KhaWOx/g+UcznF3euEaL6gzwWcbjmVOttyTMdjV2RWIdR7XwTxum5v3/zc5o lJYDv2XoCrQruVxqUoBoSx0mBu+lL6yMPWFcC1KFpp0VyUGnqKkv5BUXcdxqawKwG8y6 SBfqTEiw5ov2EyEW6FW9Kpsdy5hXE82ouv1YDlmuC3TllmwymP0U81r8jWSwNQZ48NbX UZRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EWLr4GVa; 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 w16-20020a05620a0e9000b0071f43db84cfsi11372184qkm.671.2023.02.14.07.17.54 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 Feb 2023 07:17:54 -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=EWLr4GVa; 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 1pRx3r-0005o1-4o; Tue, 14 Feb 2023 10:17:39 -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 1pRx3p-0005mO-92 for qemu-devel@nongnu.org; Tue, 14 Feb 2023 10:17:37 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRx3n-0005Ti-LS for qemu-devel@nongnu.org; Tue, 14 Feb 2023 10:17:36 -0500 Received: by mail-wr1-x429.google.com with SMTP id y1so16035373wru.2 for ; Tue, 14 Feb 2023 07:17:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=fU/yBgdFMVlopZf6+UCk25Y+63cTrg34eGsGdzxBXFg=; b=EWLr4GVawRKkMIByEgAxV3FgELypY7bdPH0UYY7dWW6TJQnY2QxqEThPzps6e41r+P Hiz80J5rEvqNol/Y7Ak7/QPzp99KLGKbcO0GkhK3cKUa4YD7x95sgjLp5//YnDOfqrgi DuN9YLIfFrZ3tTQMO9OfZzTPSTmeoBZRrINhG9WiK9puhN12G7yUGk/xyq5mV/iSCA+g zBKKaqzgUX2sr8nCoCV933GK1HGmSmUuiqJgOsqrbUIRN2HDjuya/fcCOVjNa97NldMy laX8BBE7e1SP2fPD9Bb52beG6+B5kt7sTUqPCh514TqgsaEFmrae4fW8r6Yy8fk9OxZh z7fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=fU/yBgdFMVlopZf6+UCk25Y+63cTrg34eGsGdzxBXFg=; b=yVePCb69aczVrqoOudI5mBsLJZL9cEJzPthE+Q5cg2VmoWplmwADRhllupEkCBDzef YxwyOujq9mUyAzufH2QI4J8wRXEGRYSF18k76V0R5aOEl3VOBCG5qEed1ClPYbVV+IiO Il1vXH5TXpNhxL/EHo+nafYNaDVvYRg1GGdaJqjM9sfZAgM/KtN5EWM45MJNotCufqtB THovk4qVRgVG5TRZUzjSHSOgGduiBHfT0X7JCpbzBWMC/QrS5JPrTWUiXlkPbiKXWL0q aB0MIDBWcKnHmtm6ueoIgrZ7DWLfcVjKeXRi6uqcvQhGrb25W0zjOimoCOr4lj/NbaBk laQw== X-Gm-Message-State: AO0yUKUNRAv/HbhHveMagq15k0LSmOuxEaI0KYh7gq93tIh/sQbv8tA1 FqxdCLYMIerrCctnrwh6vnuYJA== X-Received: by 2002:adf:e48b:0:b0:2c5:4480:b590 with SMTP id i11-20020adfe48b000000b002c54480b590mr2329844wrm.54.1676387854139; Tue, 14 Feb 2023 07:17:34 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id o7-20020a056000010700b002c559def236sm4620778wrx.57.2023.02.14.07.17.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 07:17:33 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2DB8A1FFB7; Tue, 14 Feb 2023 15:17:33 +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?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [RFC PATCH] tests: ensure we export job results for some cross builds Date: Tue, 14 Feb 2023 15:17:26 +0000 Message-Id: <20230214151726.3844382-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.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 --- .gitlab-ci.d/crossbuild-template.yml | 11 +++++++++++ .gitlab-ci.d/crossbuilds.yml | 6 +++--- 2 files changed, 14 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..ab783e90db 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -44,7 +44,7 @@ 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 +52,7 @@ 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 +60,7 @@ 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