Message ID | 0f90dc2b-227a-42fd-964e-4086d00e9694@siemens.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <jan.kiszka@siemens.com> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C40E5C3271E for <webhook@archiver.kernel.org>; Fri, 5 Jul 2024 15:36:08 +0000 (UTC) Received: from EUR02-DB5-obe.outbound.protection.outlook.com (EUR02-DB5-obe.outbound.protection.outlook.com [40.107.249.50]) by mx.groups.io with SMTP id smtpd.web11.19936.1720193766690245461 for <cip-dev@lists.cip-project.org>; Fri, 05 Jul 2024 08:36:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@siemens.com header.s=selector2 header.b=rkTIZDM0; spf=pass (domain: siemens.com, ip: 40.107.249.50, mailfrom: jan.kiszka@siemens.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WE3yeZzTKyeDm/HfrG5b5UAuElbWkg5AFvLAXtMGIVoq10PlPASnuQazDYHT5PPtN0p30YQpfS+ntAOxiBiWhPgKlR9vT5lkzg4DmlQ04JddReKdQ2sXGRc10MPpRZp87pFq4kKxv+3cPkU3t3soYh1Dmys5xrz2CD1WXPdiIzSx3hEY/cEooCSB5CLwCmvekxUVZZdr5+vWoSF0orRx0kUaAQf47AGO0RVj5jSxbg+vpSGpLnmQvWm8g7p3Vy7oNTIrV4fYZs48vCMskc7njFwPZoqOfYW5rX7Yr3ZuQUg/ZHGfTzOcXdyMfnkDxiAR2vLujxGMMnrCY5XeX4SgoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sjY8EFEgAM08er4He/3GiBVOpxVvTCn2zQ0oQ8lM7rQ=; b=YQAymduzGsRn6DNg0bw3BMyKvIxkkGPnfJIwpKG/r4RlyG9ebGUZUVN5Q802gPxzK6zFXHm4aL1dqzRxsKRm5ReBueb4+5tx06ZJxDWmeGOq7I+14nI5cHemBe09QFtDj6qr6ijLlQWDM8pfJPJ2zmfivGFLahyHGrfC23ND2KyseQ98yE/iGeWcmUPgqFIDKRjntS19XkVKtceKSfU/T8l6RliiwG5vm64Auc70Bezki8zGrlnzhkVsSRRg6EOSp2tRM1asyeWQJSoBAac+Og9q4+InPs6haAZhuGOKGk+7DCPgKNoA0MPUprt+POU4jxG1jPgeJr4cMMau/tbX6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sjY8EFEgAM08er4He/3GiBVOpxVvTCn2zQ0oQ8lM7rQ=; b=rkTIZDM0V5W3s1rkudZkQHZOIm6KvIapPAnzMfRzZyjTLSzga+rV8/tL8OnaCYQ1d1DamDGolXj+c1d2xQALwhGGG//pxnf49n8kRAMEEVQaqxAIGyOASQLuTOn1M0k81HLdfE6srAw/Xl2I3Er3A5QS1CWhriE8xGoJcNWvG4MpkSe4U2h6n84Z2dP+FukzhmPM2ocdKl8qYeqpocM77U2gRxXKzTCzLRGFxV+AN8uzCFDqoA7zL315BmG1yug/Hpn9ih5zUfq1S0dVhAjr8ckKH49/kZL60LpEosNQDkxPRgHGHH6CiV0pb1dMJa87UllGWnuK8uRC/70Oxchgsw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) by DB9PR10MB7338.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:462::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.25; Fri, 5 Jul 2024 15:36:04 +0000 Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8fe1:7e71:cf4a:7408]) by AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::8fe1:7e71:cf4a:7408%4]) with mapi id 15.20.7741.027; Fri, 5 Jul 2024 15:36:03 +0000 Message-ID: <0f90dc2b-227a-42fd-964e-4086d00e9694@siemens.com> Date: Fri, 5 Jul 2024 17:36:01 +0200 User-Agent: Mozilla Thunderbird From: Jan Kiszka <jan.kiszka@siemens.com> To: cip-dev <cip-dev@lists.cip-project.org> Subject: [isar-cip-core][PATCH 1/3] ci: submit_lava: Improve detection of failed jobs Content-Language: en-US Cc: Sai Sathujoda <Sai.Sathujoda@toshiba-tsip.com>, Kazuhiro Hayashi <kazuhiro3.hayashi@toshiba.co.jp> Autocrypt: addr=jan.kiszka@siemens.com; keydata= xsFNBGZY+hkBEACkdtFD81AUVtTVX+UEiUFs7ZQPQsdFpzVmr6R3D059f+lzr4Mlg6KKAcNZ uNUqthIkgLGWzKugodvkcCK8Wbyw+1vxcl4Lw56WezLsOTfu7oi7Z0vp1XkrLcM0tofTbClW xMA964mgUlBT2m/J/ybZd945D0wU57k/smGzDAxkpJgHBrYE/iJWcu46jkGZaLjK4xcMoBWB I6hW9Njxx3Ek0fpLO3876bszc8KjcHOulKreK+ezyJ01Hvbx85s68XWN6N2ulLGtk7E/sXlb 79hylHy5QuU9mZdsRjjRGJb0H9Buzfuz0XrcwOTMJq7e7fbN0QakjivAXsmXim+s5dlKlZjr L3ILWte4ah7cGgqc06nFb5jOhnGnZwnKJlpuod3pc/BFaFGtVHvyoRgxJ9tmDZnjzMfu8YrA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Z23ouiMf+ojVZ7kycLjz+nFr5A14w/B7uHjz uL6tnA+AtGCredDne66LSK3HD0vC7569sZ/j8kGKjlUtC+zm0j03iPI6gi8YeCn9b4F8sLpB lBdlqo9BB+uqoM6F8zMfIfDsqjB0r/q7WeJaI8NKfFwNOGPuo93N+WUyBi2yYCXMOgBUifm0 T6Hbf3SHQpbA56wcKPWJqAC2iFaxNDowcJij9LtEqOlToCMtDBekDwchRvqrWN1mDXLg+av8 qH4kDzsqKX8zzTzfAWFxrkXA/kFpR3JsMzNmvextkN2kOLCCHkym0zz5Y3vxaYtbXG2wTrqJ 8WpkWIE8STUhQa9AkezgucXN7r6uSrzW8IQXxBInZwFIyBgM0f/fzyNqzThFT15QMrYUqhhW ZffO4PeNJOUYfXdH13A6rbU0y6xE7Okuoa01EqNi9yqyLA8gPgg/DhOpGtK8KokCsdYsTbk= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR5P281CA0051.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:f0::20) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|DB9PR10MB7338:EE_ X-MS-Office365-Filtering-Correlation-Id: a7720d44-260c-455b-b645-08dc9d082df9 X-MS-Exchange-AtpMessageProperties: SA X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?RcUvPgjW381YtKw8onTE0Ne2mIepwL4?= =?utf-8?q?L6Y64YaJB5ulyLteUqcMvWw/yYDT4kyNlfvlx4Pr20TKnG5nnALSkDoQmOR55OT/W?= =?utf-8?q?B/t8XhLzkj8LlcyJdIA4YtddFmws5HhCGHouwHM1sjbhY1ijDENX1GLIhwUEKknjx?= =?utf-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aliHJb8YYO5G7QONMN9SKN/wUf+w75irJlb4jZzwb3T4Qr1AtJV4ex9?= =?utf-8?q?dRfRA3wb5J83gnonA2Df5PFMnXu/U7/gbFFaPqv/WXeITL4howEIiWOHIhnYlWSj+?= =?utf-8?q?8c4hJ5X2vRQCWhIoIV+80RlE90BNtdoPQUIMaUCu2iBXNzUh+9pch27sTablEyHQ3?= =?utf-8?q?paINeg51hsn9mtN8QCt+qBD/rG4CnZvV6PynBhW8lR1OTFSTT+bTBvLli4DKAnaxM?= =?utf-8?q?CYLdO57jErxIxSQNGTkQBtemSBn10HKmDwQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Ge8ZtC03S+4DWZRf42WPN0le0ts6?= =?utf-8?q?T/Gjm99oPI+IiukaMD6C9Cvc8s21UaWKT6usAkRjfIR5u3kR17XBW6A3OTDUkyEB7?= =?utf-8?q?6u0TBs3PW0msZxp4VYkIyIt9WxQVcXbNhSvVfG7XccLmhUcb49FPIH+ma7qv+I15T?= =?utf-8?q?5K8/1hsL5/6CLz5MFXvT23jaGHYv/HxFQ+IbF56rQT2xHZSmot8cwHWMT/z5LVp1U?= =?utf-8?q?lwENjVvDo1ikwA16AuH2deAWFLAgzqnGu3KBlVjcHfZoqOaoaEFZODD3Pu+zsmD9M?= =?utf-8?q?L5/hr5wi4nZksNd3VqSU1nqXmSUyR5L/zoEbapJ7sGBAAbk00OHt3nDiKQBVrrcFr?= =?utf-8?q?ouJJpdLB0RM1EW0hgFx7Zdu1/EWS58W3GxM8nZ6O/JPrVU2inXaY7dn+AhsnDREA5?= =?utf-8?q?CnpnCF8Tb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NWqPEWMGWZbS+dCHvrj6DZQq3QuFDExBppnhZ6/oKCNvV7PYkV5uE?= =?utf-8?q?mYlujY7plt+r8uNdvSXxorjoNmzItQ2IvxK9WOtbARop7JS6axRwCMX5Z5B+4Doxg?= =?utf-8?q?/Lm0NPDGfP5Exhh/kxZd8KRhSeVrzNX30wSAmt5slZg00xE4YWzUw/e//YR4aX4Wz?= =?utf-8?q?pwGZ1q1jUvgR2eQF+3Py6rjcXYT9N+cNFF49I8FcGbshgg5ao1x2FUF9OjKQ7TPTz?= =?utf-8?q?IZzYLe9/gBH9FRJlOkngGsY9fy/RwFOSqQ=3D=3D?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7720d44-260c-455b-b645-08dc9d082df9 X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2024 15:36:03.7893 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZpmD/xESPeqn0+3nmO91tQE9KezanGixIFkm6AlNsPsoHqeLd8wMlJs1jUjSMzG1szrsl9v1cGoTkAabwrCIjw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR10MB7338 List-Id: <cip-dev.lists.cip-project.org> X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for <cip-dev@lists.cip-project.org>; Fri, 05 Jul 2024 15:36:08 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/16419 |
Series |
[isar-cip-core,1/3] ci: submit_lava: Improve detection of failed jobs
|
expand
|
diff --git a/scripts/submit_lava.sh b/scripts/submit_lava.sh index 7f151697..b9015f3d 100755 --- a/scripts/submit_lava.sh +++ b/scripts/submit_lava.sh @@ -35,7 +35,7 @@ image_args[qemu-arm]="-cpu cortex-a15 -machine virt -device virtio-serial-device set_up (){ echo "Installing dependencies to run this script..." - sudo apt update && sudo apt install -y --no-install-recommends lavacli curl + sudo apt update && sudo apt install -y --no-install-recommends lavacli curl xmlstarlet job_dir="$(mktemp -d)" } @@ -225,9 +225,7 @@ get_junit_test_results () { curl -s -o "${RESULTS_DIR}"/results_"$1".xml "${LAVA_API_URL}"/jobs/"$1"/junit/ # change return code to generate a error in gitlab-ci if a test is failed - errors=$(get_first_xml_attr_value "${RESULTS_DIR}"/results_"$1".xml errors) - failures=$(get_first_xml_attr_value "${RESULTS_DIR}"/results_"$1".xml failures) - if [ "${errors}" -gt "0" ] || [ "${failures}" -gt "0" ]; then + if xmlstarlet sel -t -v "/testsuites/testsuite/testcase[@name='job']/failure/@type" "${RESULTS_DIR}"/results_"$1".xml; then ERROR=true fi }