From nobody Thu Oct 30 22:45:55 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1753889185; cv=none; d=zohomail.com; s=zohoarc; b=SKMZmfrjTnXDPvlSpp9e9Fh2OlzpHUHZxFi/3eogz7oUoM4WTlAZHGG6owhd2kqUl0qjphvxnJ4IE0OWTBbORG9w9Lis8cMuIHWyUFHTBszoQKnaBfNXuPPk/WAEB8Cy3H0mmDxY5gwihiCTteXMxx9zS3W26D2Kk7QBccTnd5M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753889185; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=MIYbHa/6UkyjSyxP87Vd8S0DL7hvgl8cGe6zaQ3oB5Q=; b=J3qumIQS6YkirXDS244NPHCLMkCl2C4TgxHsPFYCo6gFGjASETXfg1JtgvZaG3gFV8Fj2CAarXUfrAzQQy9fhrHSKmqWp/E1QYoPF807K6l6e79ndhlJB7nlPmOJ9wKGF566NsqBLjKV06ALemf9of+Cx3nyheaP9266duWGgvU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1753889185266871.5198716182019; Wed, 30 Jul 2025 08:26:25 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1064144.1429899 (Exim 4.92) (envelope-from ) id 1uh8gy-0001Lu-2b; Wed, 30 Jul 2025 15:26:08 +0000 Received: by outflank-mailman (output) from mailman id 1064144.1429899; Wed, 30 Jul 2025 15:26:08 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uh8gx-0001Ln-Vy; Wed, 30 Jul 2025 15:26:07 +0000 Received: by outflank-mailman (input) for mailman id 1064144; Wed, 30 Jul 2025 15:26:06 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uh8gw-000182-DV for xen-devel@lists.xenproject.org; Wed, 30 Jul 2025 15:26:06 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1uh8gw-009CRn-0e; Wed, 30 Jul 2025 15:26:06 +0000 Received: from [2a01:cb15:80df:da00:4c1a:a750:6210:2b8] (helo=l14.home) by xenbits.xenproject.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uh8gv-00H2I4-2x; Wed, 30 Jul 2025 15:26:06 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xenproject.org; s=20200302mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=MIYbHa/6UkyjSyxP87Vd8S0DL7hvgl8cGe6zaQ3oB5Q=; b=d8CiOdEAtQGZ85dnMb2b/K5xFM F4WxXa1uRH1iP8vLEXUyxV0vimTVYOx9NB/jiN6NbjZ26Ulsj6a1u+Cy90ciO2iMoMuPVfAL36b7X gowYPpTk8u+SsIMO2kn7fS2zWe5ReqUO7QCDSeoD99AFQzHrNqbHDYDpk7UNoxBYGGQ8=; From: Anthony PERARD To: xen-devel@lists.xenproject.org Cc: Andrew Cooper , =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= , Anthony PERARD , Doug Goldstein , Stefano Stabellini Subject: [XEN PATCH v2 1/3] CI: Rework run-tools-test exit path Date: Wed, 30 Jul 2025 17:26:00 +0200 Message-Id: <20250730152602.45436-2-anthony@xenproject.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250730152602.45436-1-anthony@xenproject.org> References: <20250730152602.45436-1-anthony@xenproject.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @xenproject.org) X-ZM-MESSAGEID: 1753889186108116600 Content-Type: text/plain; charset="utf-8" From: Anthony PERARD The main script expect to find the string "$passed" or it just timeout and doesn't try to download the junit file in this case. So we ignore the return value of run-tools-test to always print "$passed" and instead look for failure in the generated junit file. If the junit report is incomplete, this will also result in a failure of the job. Signed-off-by: Anthony PERARD --- Notes: Changes in v2: - This squash both patch "CI: Ignore run-tools-test return value" and "CI: Have the gitlab job fail on tools/tests failure" - grep for '' automation/scripts/qubes-x86-64.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/automation/scripts/qubes-x86-64.sh b/automation/scripts/qubes-= x86-64.sh index 2750d24eba..21dcd9b063 100755 --- a/automation/scripts/qubes-x86-64.sh +++ b/automation/scripts/qubes-x86-64.sh @@ -135,10 +135,11 @@ done ### tests: tools-tests-pv, tools-tests-pvh "tools-tests-pv"|"tools-tests-pvh") retrieve_xml=3D1 - passed=3D"test passed" + passed=3D"run-tools-test over" domU_check=3D"" dom0_check=3D" -/root/run-tools-tests /usr/lib/xen/tests /tmp/tests-junit.xml && echo \"${= passed}\" +/root/run-tools-tests /usr/lib/xen/tests /tmp/tests-junit.xml ||: +echo \"${passed}\" nc -l -p 8080 < /tmp/tests-junit.xml >/dev/null & " if [ "${test_variant}" =3D "tools-tests-pvh" ]; then @@ -297,6 +298,14 @@ TEST_RESULT=3D$? =20 if [ -n "$retrieve_xml" ]; then nc -w 10 "$SUT_ADDR" 8080 > tests-junit.xml ' tests-junit.xml; then + echo "ERROR: tests-junit.xml is incomplete or missing." + TEST_RESULT=3D1 + # Only match "type=3Dfailure" to allow to "tolerable" for example. + elif grep -q '