Message ID | 34fe48eb-2b6d-4e96-b7fd-041ce43b98c7@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 F2CB1C27C4F for <webhook@archiver.kernel.org>; Sat, 29 Jun 2024 15:14:50 +0000 (UTC) Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.45]) by mx.groups.io with SMTP id smtpd.web10.8010.1719674081701595164 for <cip-dev@lists.cip-project.org>; Sat, 29 Jun 2024 08:14:42 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@siemens.com header.s=selector2 header.b=x7sBwuq7; spf=pass (domain: siemens.com, ip: 40.107.20.45, mailfrom: jan.kiszka@siemens.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cMfs4H1IbBVlQa9+BUc2TVoJA5zpNQZE6Vxl+0Zi8gDeY9gaYyE/cs0O5arxx+KtIj1CH6DfcPWD0/aZ6+d00QYHhQ3Bh2EceoqxI++1nqQVQCijbkYXctp7y5f1wgFmHhD+1QgbF8/HzFQTa6jBBDcpTqEnduLMqalhdlIuLj9GlgLB75XjvrLUyj3QbF6019WPs6tsjPoOgppkjbZWe3yrLfL7bL8I4Qs2FMB56xerqpcRKWFiU5ocSZIcypVGaYpv0sEWp2IGqUHh6s3sMFk9XOURelUFJYG1Br9VT+Dqrzr18zF/K1/vhBfuOciEh64MfQ/aVraLGiwWFsQlFA== 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=7eN5pGTMyLd7lYiFXT7xA3iSvTxKvWYisnEcQvZa/Yc=; b=M47MjmE9VhA2iuRDaxjD3wZK8WKQmeJmHxFU+b7wG8k2iBvWq6DQNrKyTkjEr9MwtWFxvCcWrj0mknQ+3b5ROIDAfr5cBeQcqy2hGAOr8SKCHP+kLKeYUAcYwf73hIWFDHg5Yym0EctYZxewZi2Gq+Ovem1+pfjmh2cuGYkMPpLxNaX5Pb4jnebECfASlWtcGmL4xqQBXmaK07fX1gvB5rB9/sssHgVoaI8squtIUl5nMOTSUmYdigtxXHL4x15naqQ+GxgHJDBMs+0rygKivc64sYKjEobq90tJvy/Tfgs3ULkHOccHNGwNgNTwPLgMPoBDU4N5pdo+b8xoqJNZmA== 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=7eN5pGTMyLd7lYiFXT7xA3iSvTxKvWYisnEcQvZa/Yc=; b=x7sBwuq7/RlTJtQjOUoDVyCYZn1Irx4QfCDe+/D48Mg53cMdRqwvo9wLIUjxfsnmik6+nWrCvnFY/NGdJG1HXol6Qy4rU8kxUgItqaE1e8xwk+HwRod+dcJBZArP/XOePRVgIdqnDRaADSYEEjkFPvr3Qssz+JXSsVGqqY2IQzyEPYg8Pj01Kjc96thKC+7Fo6CN+nU8i5wI+FywwrDDaELaVpCYtbhTl6r3jj6ML0L6DEZ+bBNJEGcN76eD46r9fsnig2fJRQpCbuwLJV+uKCXhIU1Lxc+GgEn9Bgu9NsIsw1akJddkzNi+RwzH1ly0ukaEXdJhKSQuICOuvni5+A== 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 AM0PR10MB3170.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:180::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.28; Sat, 29 Jun 2024 15:14:38 +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.7719.022; Sat, 29 Jun 2024 15:14:38 +0000 Message-ID: <34fe48eb-2b6d-4e96-b7fd-041ce43b98c7@siemens.com> Date: Sat, 29 Jun 2024 17:14:36 +0200 User-Agent: Mozilla Thunderbird Subject: [isar-cip-core][PATCH v2 4/4] ci: submit_lava: Reduce validate_jobs to handle only a single one From: Jan Kiszka <jan.kiszka@siemens.com> To: cip-dev@lists.cip-project.org Cc: Sai Ashrith Sathujoda <sai.sathujoda@toshiba-tsip.com> References: <cover.1719642474.git.jan.kiszka@siemens.com> <306d108ad904f0c8c4afa31fa0f34fa80a51e3a8.1719642474.git.jan.kiszka@siemens.com> Content-Language: en-US Autocrypt: addr=jan.kiszka@siemens.com; keydata= xsFNBGZY+hkBEACkdtFD81AUVtTVX+UEiUFs7ZQPQsdFpzVmr6R3D059f+lzr4Mlg6KKAcNZ uNUqthIkgLGWzKugodvkcCK8Wbyw+1vxcl4Lw56WezLsOTfu7oi7Z0vp1XkrLcM0tofTbClW xMA964mgUlBT2m/J/ybZd945D0wU57k/smGzDAxkpJgHBrYE/iJWcu46jkGZaLjK4xcMoBWB I6hW9Njxx3Ek0fpLO3876bszc8KjcHOulKreK+ezyJ01Hvbx85s68XWN6N2ulLGtk7E/sXlb 79hylHy5QuU9mZdsRjjRGJb0H9Buzfuz0XrcwOTMJq7e7fbN0QakjivAXsmXim+s5dlKlZj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CFxZswlBW3eU2Zacdo0fDzLiJm9I0C9iPZzkJ gITjoqsiIi/5c3eCY2s2OENL9VPXiH1GPQfHZ23ouiMf+ojVZ7kycLjz+nFr5A14w/B7uHjz uL6tnA+AtGCredDne66LSK3HD0vC7569sZ/j8kGKjlUtC+zm0j03iPI6gi8YeCn9b4F8sLpB lBdlqo9BB+uqoM6F8zMfIfDsqjB0r/q7WeJaI8NKfFwNOGPuo93N+WUyBi2yYCXMOgBUifm0 T6Hbf3SHQpbA56wcKPWJqAC2iFaxNDowcJij9LtEqOlToCMtDBekDwchRvqrWN1mDXLg+av8 qH4kDzsqKX8zzTzfAWFxrkXA/kFpR3JsMzNmvextkN2kOLCCHkym0zz5Y3vxaYtbXG2wTrqJ 8WpkWIE8STUhQa9AkezgucXN7r6uSrzW8IQXxBInZwFIyBgM0f/fzyNqzThFT15QMrYUqhhW ZffO4PeNJOUYfXdH13A6rbU0y6xE7Okuoa01EqNi9yqyLA8gPgg/DhOpGtK8KokCsdYsTbk= In-Reply-To: <306d108ad904f0c8c4afa31fa0f34fa80a51e3a8.1719642474.git.jan.kiszka@siemens.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0158.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a2::8) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|AM0PR10MB3170:EE_ X-MS-Office365-Filtering-Correlation-Id: e91723d5-dbf7-4301-e38c-08dc984e3190 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?KY0NVJJSoGWflqPH1/xAz7hJIBXDfeY?= =?utf-8?q?o+UiF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kk14ieL3xVbOSweoJFqMm5kowuuAtuHTov?= =?utf-8?q?qGEQK+8dwEa+pNJdYLTeZps3t+IgZemJ0hamT31BjtHqU2So+MUVPsugW6FgI8nyL?= =?utf-8?q?MPeB5xDilqxyFq4ccdzS24KaS42cWzNeY3VTNpZdUDnnc7a6CwWjw2P99altwf0Hw?= =?utf-8?q?uuvPDQObIJVwAmElw/1xwcn2qecMJxNbDwAG8lDVoQQ1HlWqR+Oc7n3gz6D6H2Y8h?= =?utf-8?q?K6S6gyDYGpEMh14QUxQburI4DVqx0qLKq9zZPakSIks3wyvrS32x8cZx2r9Pf41Wv?= =?utf-8?q?XqyEOydwFrc2XrfEM/r63nwtFliO4z3wOXDTSlCVgkm8htlKpZiLK/bHU=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?Uga66TY0nfThUDGHtSdq95La+hKh?= =?utf-8?q?MwCHYHyPviYYEjYrm0wTB6tG1SvV+hBFmp2iKoqIFmRILQ7bJ/951M3/Eqc+38YUM?= =?utf-8?q?aBuyNwmQmgDd1/guKa0EwMShZSq6+k0CRNijZyQpk4jiXfShLPi7nt5d9dp9u07wz?= =?utf-8?q?+FT4oVUikF0ZSjpNKtQNT9f3tKLV2+zMYA+LV2AicICkhvBfcemAfKkp+ytsbwcQ9?= =?utf-8?q?nrViqOuyTCpkW9SHiHfBURV2IReU1oW3FCjw3IPnLtwMjRRnGUT33aH9/ckzAR6Iw?= =?utf-8?q?3e+/jRGlIY5ajuujPsbRy2BnZ0imyvWYUCGh8ABdDysK8kn1ox2xyEyaCifunsQXJ?= =?utf-8?q?G+5LpapyIHBppPfk4Sh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lJRvnVZEKMFlDMDr+UqtyNwZOX6ev+TVG3zuvHkz4uD1CKVLWc?= =?utf-8?q?wshQyHnBXHGayGC6+pqtA17jp/I2TZ+jXM60U1dbDqE1K625ypM7qfiwg/76N9T+c?= =?utf-8?q?eQuRQwfzGSa74ZguPnI+VeQJO2/ZHG1UTA41CjppPMtEggguNeHoxo4b5RJVtloae?= =?utf-8?q?Mm47/vFb/WJYEEti3Eo6xnWG89axNzdf99PFd2ZBRNhQ1CC3MpLj+IqIBWbWCJmGE?= =?utf-8?q?+0X7pr+reMJpdqK8i2zzF2aNLqbC027eTfFCErmlUbQ14EtdW5HoWbNvPap4CvQwg?= =?utf-8?q?u4a3b6TWBknj?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: e91723d5-dbf7-4301-e38c-08dc984e3190 X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2024 15:14:38.7205 (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: Q7zSNIWDvCUKTCsFnyiSSEa6kKYkBav3f6QN0X94+pTPniJIUqyP5Fh0RaMSxRDQM1D8oIvS9LEGGtW8YIYjQw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR10MB3170 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>; Sat, 29 Jun 2024 15:14:50 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/16350 |
Series |
None
|
expand
|
diff --git a/scripts/submit_lava.sh b/scripts/submit_lava.sh index 6bf844bf..7f151697 100755 --- a/scripts/submit_lava.sh +++ b/scripts/submit_lava.sh @@ -196,25 +196,21 @@ is_device_online () { return 1 } -# This method is added with the intention to check if all the jobs are valid before submit -# If even a single definition is found to be invalid, then no job shall be submitted until -# it is fixed by the maintainer -validate_jobs () { - local ret=0 - for JOB in "${job_dir}"/*.yml; do - # shellcheck disable=2086 - if lavacli $LAVACLI_ARGS jobs validate "$JOB"; then - echo "$JOB is a valid definition" - if ! submit_job $JOB; then - clean_up - exit 1 - fi - else - echo "$JOB is not a valid definition" - ret=1 +# This method checks if the job is valid before submitting it later on. +validate_job () { + # shellcheck disable=2086 + local job=$(find "${job_dir}"/*.yml) + if lavacli $LAVACLI_ARGS jobs validate "${job}"; then + echo "$job is a valid definition" + if ! submit_job $job; then + clean_up + exit 1 fi - done - return $ret + else + echo "$job is not a valid definition" + return 1 + fi + return 0 } get_first_xml_attr_value() { @@ -237,9 +233,10 @@ get_junit_test_results () { } set_up + create_job "$TEST" "$TARGET" -if ! validate_jobs; then +if ! validate_job; then clean_up exit 1 fi