From nobody Thu Oct 30 18:43:34 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 ' (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 1753889189312524.6784404393096; Wed, 30 Jul 2025 08:26:29 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1064145.1429905 (Exim 4.92) (envelope-from ) id 1uh8gy-0001Rp-FL; Wed, 30 Jul 2025 15:26:08 +0000 Received: by outflank-mailman (output) from mailman id 1064145.1429905; 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 1uh8gy-0001Px-BY; Wed, 30 Jul 2025 15:26:08 +0000 Received: by outflank-mailman (input) for mailman id 1064145; Wed, 30 Jul 2025 15:26:07 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uh8gx-0001LF-Lu for xen-devel@lists.xenproject.org; Wed, 30 Jul 2025 15:26:07 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1uh8gx-009CRv-14; Wed, 30 Jul 2025 15:26:07 +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 1uh8gx-00H2I4-0D; Wed, 30 Jul 2025 15:26:07 +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=FGhlhnnA/UY57kgH1UOTTJizQb27/f6qp8QYokK43kg=; b=zgSeii7A3gOQ0UnmAPQfsGF8d0 9Gbv2gUGtpiDMw36EfR46Q46LR6hIFDlQRSukkvUHZfhprVOYQ1R0P1fLm5hTVsdCDz9nTnm/F7BI yAbNjOLwNQDM+kbstLCBeOsf2VnQUyd9Sj5FVwnajVQFZ2PoEuySoGZkb3WFoGP/7hDg=; 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 2/3] CI: Upload junit result as artefact Date: Wed, 30 Jul 2025 17:26:01 +0200 Message-Id: <20250730152602.45436-3-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: 1753889191115116600 Content-Type: text/plain; charset="utf-8" From: Anthony PERARD This allows to investigate the junit file in cases of parse error. Signed-off-by: Anthony PERARD Reviewed-by: Marek Marczykowski-G=C3=B3recki --- Notes: Changes in v2: - more concise patch description. automation/gitlab-ci/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml index 1f0b27b237..feb03cc7ed 100644 --- a/automation/gitlab-ci/test.yaml +++ b/automation/gitlab-ci/test.yaml @@ -155,6 +155,7 @@ paths: - smoke.serial - '*.log' + - tests-junit.xml when: always rules: - if: $SELECTED_JOBS_ONLY && $CI_JOB_NAME =3D~ $SELECTED_JOBS_ONLY --=20 Anthony PERARD From nobody Thu Oct 30 18:43:34 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=1753889182; cv=none; d=zohomail.com; s=zohoarc; b=F6GV3lfV6QhYDL7/yKgwGTqPmtQZAMFRrLJ46V3EE/cOGJMG7fUjWCfc9ZHe96YycKlyfdOu2XjjvHhXQCoChwfRa3fg/QyMM4UN0SR2KTLzIanSNnQHQUfd9VdJ+9uJTSa+NTNtOGGdrZ2QcoY0tP9RbFQODCuL6JOtUirhxJI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1753889182; 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=SJ8Q0YZBG9Hjpz8ROy4E6w65UdeOskQvBHIbE84vhW4=; b=khGvhh6WqgzR6d1ju2HBQUBG+mtzo6KO8O2DsMT/ezksXANUt9oB1uWgdVKwG0uE67MJCpXUkfG0OLU4EVBnxLMFa48n4FDFnnK4yUsvVRrNZWPhzryQiTJ5wa6woby+M+Ellqqcv6UbfF9MeF3W3LMXUmLX63pGsvpd4VnpOJo= 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 1753889182416656.8262985520136; Wed, 30 Jul 2025 08:26:22 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.1064146.1429918 (Exim 4.92) (envelope-from ) id 1uh8gz-0001oa-MA; Wed, 30 Jul 2025 15:26:09 +0000 Received: by outflank-mailman (output) from mailman id 1064146.1429918; Wed, 30 Jul 2025 15:26:09 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uh8gz-0001oJ-Ik; Wed, 30 Jul 2025 15:26:09 +0000 Received: by outflank-mailman (input) for mailman id 1064146; Wed, 30 Jul 2025 15:26:08 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1uh8gy-0001aP-OS for xen-devel@lists.xenproject.org; Wed, 30 Jul 2025 15:26:08 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.96) (envelope-from ) id 1uh8gy-009CS3-1a; Wed, 30 Jul 2025 15:26:08 +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 1uh8gy-00H2I4-0i; Wed, 30 Jul 2025 15:26:08 +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=SJ8Q0YZBG9Hjpz8ROy4E6w65UdeOskQvBHIbE84vhW4=; b=BUyMokG1Pvjzz/6xext42AZ6JS S63Ww+ahD2G5LOdIgBz7tWsEb6mCJESgVR/nibvHJE+IM8XeshlYhtqtyLHHMmT1UPIDHqczNFke9 M/ZDWcuRq0glWKg66W9RMRzuDOZfHwL7g3o2k3tqIL1hrGTtAcfHLxhgSXXQWNMQ9oiA=; 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 3/3] CI: Workaround extra content in junit Date: Wed, 30 Jul 2025 17:26:02 +0200 Message-Id: <20250730152602.45436-4-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: 1753889184065116600 Content-Type: text/plain; charset="utf-8" From: Anthony PERARD Signed-off-by: Anthony PERARD --- automation/scripts/qubes-x86-64.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/automation/scripts/qubes-x86-64.sh b/automation/scripts/qubes-= x86-64.sh index 21dcd9b063..f1b7e02e63 100755 --- a/automation/scripts/qubes-x86-64.sh +++ b/automation/scripts/qubes-x86-64.sh @@ -298,6 +298,12 @@ TEST_RESULT=3D$? =20 if [ -n "$retrieve_xml" ]; then nc -w 10 "$SUT_ADDR" 8080 > tests-junit.xml /q' tests-junit.xml > /dev/null + extra_line_in_junit=3D$(($(wc -l < tests-junit.xml.old) - $(wc -l < te= sts-junit.xml))) + if [ $extra_line_in_junit -gt 0 ]; then + echo "WARNING: Found $extra_line_in_junit too many lines in junit." + fi # Findout if one of the test failed if ! grep -q '' tests-junit.xml; then echo "ERROR: tests-junit.xml is incomplete or missing." --=20 Anthony PERARD