From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (NAM04-DM6-obe.outbound.protection.outlook.com [40.107.102.87]) by mx.groups.io with SMTP id smtpd.web10.63563.1686585104455495180 for ; Mon, 12 Jun 2023 08:51:44 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amd.com header.s=selector1 header.b=ZHuFjFbZ; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.102.87, mailfrom: abner.chang@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZfeSXHDN5Yv1Cb7X5yoENhrbmF2gN/L2X5gHZGKhSjbv4L0Z1ENrvxZlCXMGaTO5X0mkt+7HplYmoDrt39ZHj81S1QhY7hO80p9V1xAwhvWPe8lnoS2XIU28iKxc10quist3u43oJxRULA4g7NXrvbBLXR+2WLjZ8Eac+infgvH60lsFmJtImjYzqGpybgj+ooT+henbqcWCVh/u9dAY+QvoWL9egK9HOCoJrQPfCNG/OrO4KY5sgSIMzZaU7gTDFsixZuDYGVp3a8gMoCr8/CyAqP4zJ+z+raThY2+ppHzybe+2GM+BkS6TzoFVE1GrOfYH7t9GyKb5SVFXSz0wWA== 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=rqz2vVVJeY6TywaglnNzdkdTOPiSnWrWpS8CrS2hJmA=; b=Bf6obe7CFuvkkHfnHw8rf5AzaCiSz1qijrS0PBpMdIpn6RzxRdqc2e/07LVk6DBRgPRw/InjlebihB48K3MLgNZYC0lR4YDCMVL+IeDOG4UP3XmbZNHajimKf2xJK9rDKOIZThk6vpWZmxrbYB9kBAuubby9IwkzRVe9+ryF4J/nMsA9/3s/DvYRymwo8dUNA7G/vnhQCX2tztbIGvyBXnvIuBnGXxBzZsMRZQLz4Aq3K2tesTZek2WDWv9/E9orhGNa5PA735VpY2vY4+H+Zo4nnDLfM8yfou0zlossjpR2UIuTJoSQ4osrwLKidyGCXuLcKoRvShlRTuN88KKY5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rqz2vVVJeY6TywaglnNzdkdTOPiSnWrWpS8CrS2hJmA=; b=ZHuFjFbZ75rwzoYyXTFQ7FvxHu/RRn1QvOVbakLiQuYFsTThZVPPWMSuE+q7yPz4zOmuc9Xps90eiNeeLaPa9jNzYZMmT8d8rtV1YnRlMG5IHfHoNcb6rqNz/zG6o4FR2LYiqhddVAaqmflUiK43xVfWKcyHDP2LR8SkWONL/9w= Received: from MN2PR12MB3966.namprd12.prod.outlook.com (2603:10b6:208:165::18) by DS0PR12MB8562.namprd12.prod.outlook.com (2603:10b6:8:164::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.39; Mon, 12 Jun 2023 15:51:42 +0000 Received: from MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::edb0:bed8:c650:5040]) by MN2PR12MB3966.namprd12.prod.outlook.com ([fe80::edb0:bed8:c650:5040%6]) with mapi id 15.20.6455.043; Mon, 12 Jun 2023 15:51:42 +0000 From: "Chang, Abner" To: Nickle Wang , "devel@edk2.groups.io" CC: Igor Kulchytskyy Subject: Re: [edk2-redfish-client][PATCH] RedfishClientPkg/.github: add patch check Thread-Topic: [edk2-redfish-client][PATCH] RedfishClientPkg/.github: add patch check Thread-Index: AQHZnUDFWsls9MmqOE6a6xQIgYzDUq+HUPnQ Date: Mon, 12 Jun 2023 15:51:42 +0000 Message-ID: References: <20230612151520.11496-1-nicklew@nvidia.com> In-Reply-To: <20230612151520.11496-1-nicklew@nvidia.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=94a19b49-bee8-4666-bc9c-b245aeeaa1b6;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=0;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2023-06-12T15:51:24Z;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN2PR12MB3966:EE_|DS0PR12MB8562:EE_ x-ms-office365-filtering-correlation-id: 3d845db6-527a-4db6-2596-08db6b5cead7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: F4U3/qQD0Zb46n1wC25BD/IAu6HrpLiTmDJCqTSBScwgeGc6JHCrak3Tj8f5jH/SurcHsO0X7mUXauMEJbkiE6s/EZOSUhyM+8NGJF1ugIgEMDc3x9uZNvd2JMTEUMXBAzUGHx/LvNrTWDzWjQuZI3Rd5NQX3leAwtdPIs1Z7eMynVWelbHmq7+1r+rXW5UM/W7KSl3p7MkZ71X/Wj3nQU/2/TjRYS+urvqPMxyZSW3wjWgq8Dr2+hWgC8uNEkUjRcMq47VRGYfkMPofx583PHeyPEssLjxD1eKOkaY+hvMfogWu4forTEQGwlW3QaQd4hCdDlAqrpbH4nYv0tiM+2WwbEXq0R1D7l0CuN0Sox72zTjv6QTFJAus322IhBu1zEBbBnrfGDwOQKp13K+BdmD4RvxSLSkrk6gjXUAyjNrGJuaShFkZEVXiY+Pmv/5tzTYY1j6ZPOiJRol9D2ka1Nl+EQWUj4/PE7v5kMTWd4KKJFw8A55pHyU+uZraO2gd6vr0gHhB84mGUdM9EZH9s4T/7NArTr5lWHjuqPtZfWJHnr/bu3C/1q1Ect7T+ESpHuDK1Gjn2YKguRrh5CT/eFbQpzChsXjnqAYogvBtNpbuYQ3Vlx+TIUzudEnc2LPr+Z5B4g3SArevROnJNKeFXA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3966.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(136003)(39860400002)(346002)(366004)(376002)(451199021)(86362001)(33656002)(2906002)(38070700005)(84970400001)(55016003)(7696005)(71200400001)(83380400001)(186003)(26005)(53546011)(9686003)(6506007)(122000001)(478600001)(19627235002)(110136005)(316002)(8676002)(64756008)(4326008)(76116006)(66946007)(8936002)(66556008)(66476007)(41300700001)(66446008)(5660300002)(52536014)(38100700002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?uCB9NioMO4wL92coKTWvvWUur1x9gEggjwwsBaA91kJWgpdHIp7WxP7cPQYK?= =?us-ascii?Q?MFI54yQYLS5Zd1/47RsXUAYNdW0S+A22QFV0ldpRkBdPL4tkgX5IVAxraeWO?= =?us-ascii?Q?g8YPp2XnYcqYr+03DRxatE2sbiL+DmOlJ/jWWH/WG7bm6IyZMzfO41h5q7Fh?= =?us-ascii?Q?69zgOlL8m5Ge/yEKEMzXxeW6p5ne+v+QGWFk84xrbLjMEcTcI7Uf0zvuAE66?= =?us-ascii?Q?eH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f1gz9YEP8e9goYtaw0ginXC?= =?us-ascii?Q?SSXsrgcYvQYygzTHqEf+ggX5aBIx0OxlukEXoEAoCr8ziFlqA4MmmXS0Ayx1?= =?us-ascii?Q?7GuQRJzEoyCZmasXGfV7s2T0VT2tf7j/6e+PgTYkCUTs0khcIVrYHQAj7HXe?= =?us-ascii?Q?DlW7Cm3PS1S/VyNeXmCjxmgr/8AMJMBvY5l7a3dyRpQswrclomaUVX5OGID/?= =?us-ascii?Q?JtPpUfSlUjLiIpFAjln3Ao7Z5tOHPLR1shPdNHWUtMaHUHE29MmI+FkKAJ6a?= =?us-ascii?Q?B+M087oe5ESJqhKPCGkUOYbD3+MpY6ETNQEVj9c8FpMaiYXaYEIDQOaMWByl?= =?us-ascii?Q?ZUP7kJx8vkRNZmlGhwC5RpdqPlbqa0Kzy+m6kKKRYlslCuDkyx58lpu8Y+wx?= =?us-ascii?Q?qmvrquz1my2/kwVIKXmRYCjelHincnmN4gRkF9I/rn8dX1QWl7EvYTsw/nnE?= =?us-ascii?Q?KPNlOBv238RA0tkcgCo=3D?= MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3966.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3d845db6-527a-4db6-2596-08db6b5cead7 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2023 15:51:42.3811 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZVlHYQ+nsPZFajwb0Ibz5TZ6j0igiFadcUyiMFw8GZGf5DgPoGJvOnpi/MXXIDmFbc5ITSaTjY0JRwusv86lIA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB8562 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable [AMD Official Use Only - General] Reviewed-by: Abner Chang > -----Original Message----- > From: Nickle Wang > Sent: Monday, June 12, 2023 11:15 PM > To: devel@edk2.groups.io > Cc: Chang, Abner ; Igor Kulchytskyy > > Subject: [edk2-redfish-client][PATCH] RedfishClientPkg/.github: add patch > check > > Caution: This message originated from an External Source. Use proper caut= ion > when opening attachments, clicking links, or responding. > > > - 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= - > redfish-client ${{ matrix.ArchList }} ${{ matrix.Target }} ${{ matrix.Too= lChain }} > + shell: bash > + > diff --git a/.github/workflows/patch-check.sh b/.github/workflows/patch- > check.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- > check.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][PATC= H" - > ${{ github.event.pull_request.commits }} HEAD - > O ../edk2/BaseTools/Conf/diff.order -o ../format-patch/ > + ls ../format-patch/ > + - name: run PatchCheck.py > + run: | > + ./edk2-redfish-client/.github/workflows/patch-check.sh ./forma= t- > 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 > hosted by Board Manage > Please check > [Readme.md](https://github.com/tianocore/edk2/blob/master/RedfishPkg/ > Readme.md) for the design of > UEFI Redfish EDK2 implementation. > > +# Status > +[![RedfishClientPkg Build](https://github.com/tianocore/edk2-redfish- > client/actions/workflows/main.yml/badge.svg)](https://github.com/tianocor > e/edk2-redfish-client/actions/workflows/main.yml) > + > # License > The majority of the content in the EDK Redfish Client open source projec= t uses > a > [BSD-2-Clause Plus Patent License](LICENSE). The EDKII Redfish client op= en > source project contains the following > -- > 2.17.1