From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 137ADAC0E35 for ; Thu, 29 Feb 2024 08:53:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=obEuVHnrnu1C6jLFv5+aJE9RpoDZwELLknLET9D1zYQ=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1709196800; v=1; b=ZIZEDSgZO20cWTUXgTmAjZEg2IkvqifHBWoOUQv3DJphvAvcCDYddg3dqBkXF44e+NwhQGLv /LL2Tkd9fXLpvzsCFAOZQrxQmroV7j/wybcAeJ+wWQKH8hI7CDPu0CJXj1SJ6+e4E1E7NPVTmp7 ZpZrb4911+NJaNegH9MxkDb8= X-Received: by 127.0.0.2 with SMTP id B2lqYY7687511xxdJaoR5PhE; Thu, 29 Feb 2024 00:53:20 -0800 X-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com [40.107.243.53]) by mx.groups.io with SMTP id smtpd.web11.19907.1709196800126066878 for ; Thu, 29 Feb 2024 00:53:20 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hu+7xGQnpcyCvoqm0FzlU0Qbi+DZEWlibmyW3Gl7d8jhydQm9QDB+F2dcFmG4rgcoy/Hd6yYXOYOQ2kJlxmpGxquRle41cbZ/D9cLRyLZCislU/pwLZQqLX0w6FJ1RpS3XX+03ZuEezK9TedmTWxc+Qz5x6JgdS0n/Ol4cnchn42Iaq/NLRtcqV9M8u2nMbnRQwsK83aO/SqTduYHcrgcy35y7g99s7WtNx3VTep91l/cKoWn68ZrqXpvQn2pZcVTUpmDSLChsGuSEy7uR9GtKsJCmCbDWj2LRaviFnmYm2W3VL12TRpxhGc2sn3uKmIVYT9Sz5ySayk1LVVNj4zUw== 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=S8VolHboEN+ye6r1nq5/qFHzdOytTNfTNE5L+Yh3JXs=; b=JbxPMtzP0sA3fU4aEuQDjjyy9+E2EMXDZwAOEYVkevVI0i4F2dQquALV4ZCPFbMs8e3qfjBs7PknuVmPPbwn4XpOycOpua9wzGPgzgTgo/oUbNQAUNNhhhp4llp7Wps66pkYn89LAXgrH2OVA/e3t2ADNF4rAp3U8WzMOVasgPbGNEKpVuXgukD56kTFcYZbEWbhHxS1yAidXXCYbdR6gsdm55ySTlM7i7WgDpjL7gYZ2TZ+SHOo1A0qN2Be5L8lglQf2+8ToDco8djVynVWhfptNYKhe8VbPDdQLVdqmP/9XqBAZrlG9YCUfbVDyy/YrnhEJtocqX+g5CQfIiCTvA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) X-Received: from BN8PR04CA0061.namprd04.prod.outlook.com (2603:10b6:408:d4::35) by MW4PR12MB5625.namprd12.prod.outlook.com (2603:10b6:303:168::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.41; Thu, 29 Feb 2024 08:53:15 +0000 X-Received: from BN3PEPF0000B06D.namprd21.prod.outlook.com (2603:10b6:408:d4:cafe::4a) by BN8PR04CA0061.outlook.office365.com (2603:10b6:408:d4::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.27 via Frontend Transport; Thu, 29 Feb 2024 08:53:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C X-Received: from mail.nvidia.com (216.228.117.161) by BN3PEPF0000B06D.mail.protection.outlook.com (10.167.243.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.0 via Frontend Transport; Thu, 29 Feb 2024 08:53:15 +0000 X-Received: from rnnvmail202.nvidia.com (10.129.68.7) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Thu, 29 Feb 2024 00:53:00 -0800 X-Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail202.nvidia.com (10.129.68.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Thu, 29 Feb 2024 00:52:59 -0800 X-Received: from NV-CL38DL3.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Thu, 29 Feb 2024 00:52:58 -0800 From: "Nickle Wang via groups.io" To: CC: Abner Chang , Igor Kulchytskyy Subject: [edk2-devel] [edk2-redfish-client][PATCH 01/13] RedfishClientPkg/.github: do not run uncrustify to deleted file. Date: Thu, 29 Feb 2024 16:52:58 +0800 Message-ID: <20240229085258.111854-1-nicklew@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF0000B06D:EE_|MW4PR12MB5625:EE_ X-MS-Office365-Filtering-Correlation-Id: 95f4ae6f-084b-4ec0-f9b6-08dc3903de3d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: O9hq+crYkp3mdFWzlWiruZdDoQiH8U03y22j2KIJfAJMrlqaNTjIlvHlNS3i0w7ljgeZ3CHazW7DR/HYzVwm0eW74ZUuWa+ecnYnZGLXScD7ldTU5492i4/TQCoXrOP4aOur8NTMj4ilMhdtH8nxj9O2vnp4HNsPRt/hYcuQI6as60aX8N/pCFOqRQ4NalnTHf528v5K38mlnKakREnR6mieNgf31fmX0KDZljjB9ON+1JG6Wxw6ubAIzwTRzdr+HgXVHtCpclxCLvyVJcBKmZ4uFAvQ7AuDFsnnXIbT4Wfp9KTfgumvHK1FVhrVM/nHUVsTONNwGQP3Re4GBpxa5Zf5Hr5J9axvANB2TmI9I57G55q0U01dbhc2PYA0imgkFmim+tStnNCHyvedfUuYvQPgKvRh9X1Ul8IbqMkI+tm4Zn0oTl+KDQ7Z10fLO1yKU7MidGTlL4iMIeiAVC+PygvKgxG4HcgeJWCV/mUsZxgaKRpKQw2BTcpa6Iwo1LYga9N6uNOljUyee9paKscfRNw9BscUdP8S6mbseJTqcBOkamnvigF0BtgD6TNgsFzXOhb8o3KukCp5AAXqC4AQOr7TgyqDh8ZScPZdwUnGCGvAkjtTmjCjJ2pyaDjTtKShouWapm9wHI92GrRMLwWPznWSN4hHkXuAgWvTPp3f3oYYaVDV/o3lnz2jHKZBHfyLoB8B5J7OFC6oFpvGo+lJTbmne1m/UIfSPoUUz0Uvyi0nbeO4QBomUOmGIusTaI83 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Feb 2024 08:53:15.4025 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 95f4ae6f-084b-4ec0-f9b6-08dc3903de3d X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN3PEPF0000B06D.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5625 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,nicklew@nvidia.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: UnwVgszI4URUP5uew5KCDgKax7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-Spam-Flag: yes X-Spam-Level: ************ X-GND-Spam-Score: 190 X-GND-Status: SPAM Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=ZIZEDSgZ; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Check to see if file exists or not before running uncrustify. The file in change list may be a deleted file. Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy --- .github/workflows/uncrustify-check.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/uncrustify-check.sh b/.github/workflows/uncr= ustify-check.sh index 7c1765cff..e6cf00b1f 100755 --- a/.github/workflows/uncrustify-check.sh +++ b/.github/workflows/uncrustify-check.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved= . +# Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights res= erved. # # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -40,12 +40,17 @@ fi =20 for file in $CHANGED_FILES do - echo "Uncrustify check file: $file" - uncrustify -c $CONFIG_FILE -f $file --check - if [ $? -ne 0 ] + if [ -e "$file" ] then - echo "Uncrustify check failure on file: $file" - FAILURE=3D1 + echo "Uncrustify check file: $file" + uncrustify -c $CONFIG_FILE -f $file --check + if [ $? -ne 0 ] + then + echo "Uncrustify check failure on file: $file" + FAILURE=3D1 + fi + else + echo "File does not exist (deleted file?): $file" fi done =20 --=20 2.34.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116141): https://edk2.groups.io/g/devel/message/116141 Mute This Topic: https://groups.io/mt/104640215/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-