From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.107.236.40]) by mx.groups.io with SMTP id smtpd.web10.64352.1686586795643758227 for ; Mon, 12 Jun 2023 09:19:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ami.com header.s=selector1 header.b=kxvEqs3Y; spf=pass (domain: ami.com, ip: 40.107.236.40, mailfrom: igork@ami.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i+fZz9qx7gFEOg5Ygoqqw3777oC38uCa/1AtDPtkRvjD4NCtVNNyyeKDS/wsrMfacTPt/hbgv7Tlff6TlopQKAvpKyAdL4S5SSLaIytmcL5AGb3V70K5+naHWXmO5FErBsPhaaN2Oh7M9d0T2ES50CbyeJsGCYbuyDDOr4p9BrpHQE3BUlCbF3dUfgRCrIuKKWQFS9jMe2FhQ6tdAMmqhiDkzcf9J6GDoCjHxf+uxmmzsE2F4yUfvVix6Nq+i+2C6USx0fKW29NCQSJsZEdqN5f81KJeYEvlkzd6DVmhP4KV/y1IRo5v0rrMFgvJYewgC9V9puKVGGBUUS6/RAb/lg== 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=C8Tf9XTVW1q/PeqOrrERQ0o+nP4nyF84Op3IiJll0cU=; b=iojXsN/3Nu+wJZrIac9SeQpOHz7wIGdEhJ4DP7Ih+G+JuX3K8SpqbVi6d1Aq5MFEs0sZHp1S4qdfgi+PyMqRLv63VUQ84hhI7gU/Cu1jVLQWegHySV8txn3+R+RgMdf/v4WVYuyi7g2QodYHSYztmD/13jJXQEUvOiaqQ1mxC3nZj3u9YHnRVnZtNjy6hvvegMnPVs04KGaBnLGuhCZVQVxHcKNJbVb4Qp8H2XbiDqVc61aCaDwPjVaWKJKk59Opd6fcbAZorCseCL02gI/+xNKkR15Uu60RqED9TdvD4dq0+XkVLQmZbgtuD2hHImMUmXFGzzk/F8F2h9+FAf+NgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ami.com; dmarc=pass action=none header.from=ami.com; dkim=pass header.d=ami.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ami.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C8Tf9XTVW1q/PeqOrrERQ0o+nP4nyF84Op3IiJll0cU=; b=kxvEqs3YANI8m5DWLQm8C/8tAegkWHRQ+L1z1bXcoCrRxFZV2PR7jY19Iszqol/NEgFeIf9TsoAi8cGCJzCYD9bPivbuTgI2czpGDrGpppb/Q+7G9a7A/LGF3/nQgxwNwAfQBi86CxwtsCGgKKxOMAM843uTmnQp+EwlCQrOje4= Received: from BLAPR10MB5185.namprd10.prod.outlook.com (2603:10b6:208:328::16) by CO1PR10MB4449.namprd10.prod.outlook.com (2603:10b6:303:9d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.44; Mon, 12 Jun 2023 16:19:51 +0000 Received: from BLAPR10MB5185.namprd10.prod.outlook.com ([fe80::ea0:65a4:e78d:b722]) by BLAPR10MB5185.namprd10.prod.outlook.com ([fe80::ea0:65a4:e78d:b722%3]) with mapi id 15.20.6477.031; Mon, 12 Jun 2023 16:19:51 +0000 From: "Igor Kulchytskyy" To: Nickle Wang , "devel@edk2.groups.io" CC: Abner Chang Subject: Re: [edk2-redfish-client][PATCH] RedfishClientPkg/.github: add patch check Thread-Topic: [EXTERNAL] [edk2-redfish-client][PATCH] RedfishClientPkg/.github: add patch check Thread-Index: AQHZnUDIb1pRUatXnEqFr6W1fiLtA6+HWLig Date: Mon, 12 Jun 2023 16:19:51 +0000 Message-ID: References: <20230612151520.11496-1-nicklew@nvidia.com> In-Reply-To: <20230612151520.11496-1-nicklew@nvidia.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ami.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BLAPR10MB5185:EE_|CO1PR10MB4449:EE_ x-ms-office365-filtering-correlation-id: 7c29eef0-d889-4a43-22af-08db6b60d96e x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: iIw45fyZSrw/GV68m9jj8Qw/NfvSNkbiGY3e2bZPbg85YmKc2h0G+bICx3OOBI/JMzzVV2SokUz7092M33QP6CBI2Xwn20JKwpuyDnEUh9V3DXF/E+KSH1w3u+3eiIeg8GIbXfYCCUqiL01a40FcSs62HDNp3wIsbqO7MkoGaf0iH3AFj5NPpGa0HquxaRtChpTbck48Cnfb8rJ7S3++EMnnhoujsRqIw/ihZW1Vfg69xoGhWH85y7jStqfGxsbjXydxcJQTTInnySsCCSQc0Nx6r/xYoEr0Y3IcVGvH6/nJ4IDWOIpZGZTRHD0/TvSTQ2ydUSeMyxDv5h7U5vkuBuDhxRGt/AaCYKguii4Kb6UPu0jU1LU7r72av6PYnpK/8uci7eMTO2KPxgClyOM5pjE+JfXVUM+VLnDhIfeNAKpbQXyGOYlUZRJl76+wz233LE4QNrvDAsuBQlsLCggx6QUBt5V/c9SI04mfhkPAkn6aJIa6eKRBzH5xNuLDk4PlHnCLAmAMzx0XwvQzD4GXQVN0nqpTlU17osyb816it/qPT5ygP9G9+Wirzr8Wi0EDkatDpWmA0zeQDhYp2vynDQtQBFkZ0zrCEIZbGncL2dvqB6Bqo58KRg8s4JlOGme94qinhFptsqLMDTYUiavi0Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BLAPR10MB5185.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39850400004)(376002)(366004)(396003)(346002)(136003)(451199021)(52536014)(5660300002)(8936002)(8676002)(33656002)(40140700001)(2906002)(122000001)(83380400001)(38100700002)(38070700005)(86362001)(55016003)(53546011)(9686003)(6506007)(26005)(186003)(19627235002)(76116006)(71200400001)(64756008)(4326008)(66946007)(66446008)(66476007)(66556008)(478600001)(84970400001)(7696005)(110136005)(316002)(45080400002)(41300700001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LiPHZt9SZ3vAmCxn9NE/SvnKHyTwbA7Al+Zkwkh7r7Kbgas1pFLpGORr1HkI?= =?us-ascii?Q?fpzH8ssWPbXNYfEU6QNtXscx82SGeGli7DxyYq7t9xtDR9NVlvj4zaT5FFhz?= =?us-ascii?Q?CxE03A9zlY+QabPZXLmKQ3wE8jQQbCVdXgFrGsbMt0o37aisrUtDWmKdXLUv?= =?us-ascii?Q?+9p3aOr1Ed375rrOQvJrtjmclSbMOR/nOgXSqnMp5WGY1FvOkP1Fpic+AA/w?= =?us-ascii?Q?oquj8bGVcDvPUr20p55CUcone2tXDBkjgqsGNiglVHMkp2FDWecj6A+my1se?= =?us-ascii?Q?7q48FEqqM5xeMrhcEoGFT2uUd7SElUV25wwV4DFaZSLDMutYIeZRBIj1rwfR?= =?us-ascii?Q?Cc3vjVNnnZeYhdVAzxH9gGbsO/vSikq1+BBE38n1Yu7yAQdjQ4zhlGGGsn9N?= =?us-ascii?Q?xM2vZFa97LB82duvHwt+XP77VZoXm7UIT4CXY9Shg+Y6DtZnKf2uLdwX/W8c?= =?us-ascii?Q?ISuJOPt7N33Lw85pEH5Y1veE03/evMg7powLT3plJgioTVJ1nfCpPf/pf7hx?= =?us-ascii?Q?ox1gJvdU1BtQHGr2B/rTlTvgI8nS7duW8Bc/cr0BDxKy30DDIcr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6XtXNNmCiaTHVa4vv7VGWWz3d1Eb0SVb+QiwdHoM0K9CVZqEGvFC?= =?us-ascii?Q?b1TZOZH31CHiD5TXh33DE21prq7I+qic/Wa3XoTrt747e6/46216tn3yekQc?= =?us-ascii?Q?CLHPY7ov33ROkv7Nx+I=3D?= MIME-Version: 1.0 X-OriginatorOrg: ami.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BLAPR10MB5185.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c29eef0-d889-4a43-22af-08db6b60d96e X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2023 16:19:51.1678 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 27e97857-e15f-486c-b58e-86c2b3040f93 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: +ClQN2Lj67vWi2lcHXhU8D6wfa8FsvO6THlrrK54O7/WsQvmnjAh4mTGhGd6cUrs X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR10MB4449 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Igor Kulchytskyy -----Original Message----- From: Nickle Wang Sent: Monday, June 12, 2023 11:15 AM To: devel@edk2.groups.io Cc: Abner Chang ; Igor Kulchytskyy Subject: [EXTERNAL] [edk2-redfish-client][PATCH] RedfishClientPkg/.github: = add patch check **CAUTION: The e-mail below is from an external source. Please exercise cau= tion before opening attachments, clicking links, or following guidance.** - Run /BaseTools/Scripts/PatchCheck.py to check changes on pull request. - Create main.yml to handle push check on main branch. And show the status of RedfishClientPkg on README.md Signed-off-by: Nickle Wang Cc: Abner Chang Cc: Igor Kulchytskyy --- .github/workflows/build.yml | 3 -- .github/workflows/main.yml | 58 +++++++++++++++++++++++++++++++ .github/workflows/patch-check.sh | 47 +++++++++++++++++++++++++ .github/workflows/patch-check.yml | 39 +++++++++++++++++++++ README.md | 3 ++ 5 files changed, 147 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/main.yml create mode 100755 .github/workflows/patch-check.sh create mode 100644 .github/workflows/patch-check.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f44184b3..e5a61992 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,9 +7,6 @@ ## name: "RedfishClientPkg Build" on: - push: - branches: - - main pull_request: branches: - main diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..4bfd5e8f --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,58 @@ +# @file +# GitHub Workflow for build checks +# +# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved= . +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +## +name: "RedfishClientPkg Build" +on: + push: + branches: + - main + paths-ignore: + - '**/*.bat' + - '**/*.md' + - '**/*.py' + - '**/*.rst' + - '**/*.sh' + - '**/*.txt' + +jobs: + edk2-redfish-client-build: + strategy: + fail-fast: false + matrix: + include: + - Target: "DEBUG" + ArchList: "X64" + ToolChain: "GCC5" + - Target: "RELEASE" + ArchList: "X64" + ToolChain: "GCC5" + - Target: "NOOPT" + ArchList: "X64" + ToolChain: "GCC5" + runs-on: ubuntu-latest + container: + image: ghcr.io/tianocore/containers/ubuntu-22-dev:latest + options: --user root -v ${{ github.workspace }}:/home/edk2 + env: + EDK2_DOCKER_USER_HOME: "/home/edk2" + name: edk2 build test + steps: + - name: checkout edk2 + uses: actions/checkout@v3 + with: + repository: tianocore/edk2 + path: ./edk2 + submodules: recursive + - name: checkout edk2-redfish-client + uses: actions/checkout@v3 + with: + path: ./edk2-redfish-client + - name: edk2 build + run: | + ./edk2-redfish-client/.github/workflows/build.sh ./edk2 ./edk2-r= edfish-client ${{ matrix.ArchList }} ${{ matrix.Target }} ${{ matrix.ToolCh= ain }} + shell: bash + diff --git a/.github/workflows/patch-check.sh b/.github/workflows/patch-che= ck.sh new file mode 100755 index 00000000..8cc63bd5 --- /dev/null +++ b/.github/workflows/patch-check.sh @@ -0,0 +1,47 @@ +#!/bin/bash +# +# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved= . +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +# + + +if [ $# -ne 2 ] +then + echo "usage: $0 [PATH to PATCH-SET] [PATH to EDK2 REPO.]" + exit 1 +fi + +PATCH_FOLDER=3D"$PWD/$1" +REPO_PATH=3D"$PWD/$2" +FAILURE=3D0 + +if [ ! -e "$PATCH_FOLDER" ] +then + echo "$PATCH_FOLDER does not exist" + exit 1 +fi + +if [ ! -e "$REPO_PATH" ] +then + echo "$REPO_PATH does not exist" + exit 1 +fi + +for file in `ls $PATCH_FOLDER/*.patch` +do + echo "Check patch: $file" + python3 $REPO_PATH/BaseTools/Scripts/PatchCheck.py $file + if [ $? -ne 0 ] + then + echo "Patch check failure on file: $file" + FAILURE=3D1 + fi +done + +if [ $FAILURE -eq 0 ] +then + exit 0 +fi + +exit 1 diff --git a/.github/workflows/patch-check.yml b/.github/workflows/patch-ch= eck.yml new file mode 100644 index 00000000..2fdef679 --- /dev/null +++ b/.github/workflows/patch-check.yml @@ -0,0 +1,39 @@ +# @file +# GitHub Workflow for patch check +# +# Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved= . +# +# SPDX-License-Identifier: BSD-2-Clause-Patent +## +name: "Patch check" +on: + pull_request: + branches: + - main + +jobs: + patch-check: + runs-on: ubuntu-latest + name: EDK2 Patch check + steps: + - name: checkout edk2 + uses: actions/checkout@v3 + with: + repository: tianocore/edk2 + path: ./edk2 + - name: checkout edk2-redfish-client + uses: actions/checkout@v3 + with: + path: ./edk2-redfish-client + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 0 + - name: generate format patch + run: | + mkdir format-patch + cd edk2-redfish-client + git format-patch --subject-prefix=3D"edk2-redfish-client][PATCH"= -${{ github.event.pull_request.commits }} HEAD -O ../edk2/BaseTools/Conf/d= iff.order -o ../format-patch/ + ls ../format-patch/ + - name: run PatchCheck.py + run: | + ./edk2-redfish-client/.github/workflows/patch-check.sh ./format-= patch/ ./edk2/ + shell: bash diff --git a/README.md b/README.md index 478f319b..0babe593 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,9 @@ and provides the functionality to support Redfish service h= osted by Board Manage Please check [Readme.md](https://github.com/tianocore/edk2/blob/master/Red= fishPkg/Readme.md) for the design of UEFI Redfish EDK2 implementation. +# Status +[![RedfishClientPkg Build](https://github.com/tianocore/edk2-redfish-clien= t/actions/workflows/main.yml/badge.svg)](https://github.com/tianocore/edk2-= redfish-client/actions/workflows/main.yml) + # License The majority of the content in the EDK Redfish Client open source project = uses a [BSD-2-Clause Plus Patent License](LICENSE). The EDKII Redfish client open= source project contains the following -- 2.17.1 -The information contained in this message may be confidential and propriet= ary to American Megatrends (AMI). This communication is intended to be read= only by the individual or entity to whom it is addressed or by their desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. Please promptly notify the sender by reply e-mail or by telephone= at 770-246-8600, and then delete or destroy all copies of the transmission= .