From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web12.47828.1595818868396755417 for ; Sun, 26 Jul 2020 20:01:08 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=FbIYyd6L; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: liming.gao@intel.com) IronPort-SDR: 0WFL2MKJndnCf+V6UwpZHMB239kuVPF7mo1w3gH+NHuoV226ar/Rfc7rEuma3KCh9vGGfv6mgb oVBBbP2IVypw== X-IronPort-AV: E=McAfee;i="6000,8403,9694"; a="138981941" X-IronPort-AV: E=Sophos;i="5.75,401,1589266800"; d="scan'208";a="138981941" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2020 20:01:07 -0700 IronPort-SDR: l+F8eU87ZBpQ1b2CxIiCti+2bZsKnW2W2uoqmjGpGpF37TMXRwLXAf6HTtHs4etNfsuFBWUyWT 1jPmh0fyDaZA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,401,1589266800"; d="scan'208";a="289633342" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga006.jf.intel.com with ESMTP; 26 Jul 2020 20:00:54 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Sun, 26 Jul 2020 20:00:53 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Sun, 26 Jul 2020 20:00:53 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (104.47.45.54) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 26 Jul 2020 20:00:51 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DvDJS9+o/hRv54Q+aRW9dkTSCnuUihHO+eKVdx+dXStEToFC59pN5uN+Wu+L8DMBoLgX2NvgSFqq12ZJY3Gztjr2GyWcGsehxyyrLlDXncDL2S0U3DnCWkWT9xMONJlCFcw+Kyc1G5PXU74VOx3unbiOntZzL/HhgtMe5L80JkaVGQcuTZI/HEyvR6WU/FlwNC6zOx1wbvjFvpVBPN5Z4uxd44W592pOXcopSWwKbT5uSzLpA9ODo7lw2RfRKy12Ve6coUokNbSiDMl5sKhrU1fywMXgYMzvf+mpZutwxhtyYh0/jvn/FYVyj8uH5HN6ILiVgL41nvb+Sq1Iq3Lx/g== 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-SenderADCheck; bh=Stq72m+YNuBrr+aW7igivvCwwRdH+d03pnULAbeVuuU=; b=l3+B23287SE4H9owjeD51wDlIUzIZK5ZUbjQiXcgGy/n2zW0oPFhmfsOplsjMi2Blm8aiJ/RR+ViEpQs7Y6VBt7pHoUwPgazEq97cNnx9nf4Sc6Ar6rrM0K9Cfhr36XAWwYFxDZmeL47Ce1QIZXprA+IkGbjTttfBZWv/t4v3eCcaS3lMb4P1vitAjRQgjpEH6C9zw8ViFESiwnViJkCmK+cebzQ/t5Xaggte8kz64XoIsdJQj/FUdAsBnRxeQ3BfBqMeyt9xQrHdESmGgh//bQ25VExwt7VR5Qb59gjNuD7uwNo5JSebALId46czTFuTY8gPxt0Ga7qIWmPLY8kdw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Stq72m+YNuBrr+aW7igivvCwwRdH+d03pnULAbeVuuU=; b=FbIYyd6LhicJ8viaP+KAGBvoT3hPXLmwY39yGPHUawgUGgO+BDrV2lgLLvSQVzNIgEnqqjIRLx2lzlCOXUl134zA6ReZEteur+F1Ai5FGD22/tDtuuzlpsiY7PKYqFxmW2w8EHJS0RWBXf6llCtA4UEPp/ZyN1drFaB7AufEM98= Received: from MWHPR11MB1630.namprd11.prod.outlook.com (2603:10b6:301:e::7) by MWHPR11MB1421.namprd11.prod.outlook.com (2603:10b6:300:24::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3216.23; Mon, 27 Jul 2020 03:00:47 +0000 Received: from MWHPR11MB1630.namprd11.prod.outlook.com ([fe80::7847:b564:1b55:b67e]) by MWHPR11MB1630.namprd11.prod.outlook.com ([fe80::7847:b564:1b55:b67e%6]) with mapi id 15.20.3216.031; Mon, 27 Jul 2020 03:00:47 +0000 From: "Liming Gao" To: "Zhang, Shenglei" , "devel@edk2.groups.io" CC: "Kinney, Michael D" , Sean Brogan , Bret Barkelew , "Dong, Eric" , Laszlo Ersek , "Gao, Zhichao" , "Yao, Jiewen" , Chao Zhang , "Justen, Jordan L" , Maciej Rabeda , "Wu, Jiaxin" , "Fu, Siyuan" , "Wang, Jian J" , "Wu, Hao A" , Andrew Fish , "Ni, Ray" , "Lu, XiaoyuX" , Ard Biesheuvel , "Leif Lindholm" Subject: Re: [PATCH 00/15] Add a plugin LicenseCheck in open ci Thread-Topic: [PATCH 00/15] Add a plugin LicenseCheck in open ci Thread-Index: AQHWXnEGADvncrYqckiGkA7tbZLG9akawKGw Date: Mon, 27 Jul 2020 03:00:46 +0000 Message-ID: References: <20200720083709.17264-1-shenglei.zhang@intel.com> In-Reply-To: <20200720083709.17264-1-shenglei.zhang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.2.0.6 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.194] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: af789f5f-5c40-4f00-fcca-08d831d942be x-ms-traffictypediagnostic: MWHPR11MB1421: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LK6KjXyJgPS9ioB2PrgKzQBcYfO7CXNum0QpYnrhFw4BJ56+hUM0+LwIJnjM74JARtMnOO2jrm69HuCtQnt0gNZOv3+RmICY/HztNT1OMGhphDEn5UzeBt+/7//BR6agGCqLzCsz4f3zhIRvCmUPPlDLxqwgRhLOiI0UAqTw0QdBd9ZcUQ/UR6N6Up+MoOMccZ/0nt6rYC0RVVQMi/cTI0eO4ckdiTJSqmHi/RCWcC25vVDVj9FlMNlu0A9wOLmbe6pPNO9Q6Kv7MErLweU5suUW0OVXYWZ556L4W/ztEMHRonv/0ysxWc3DhqTrrpDa1DJSkucc8NYhUkK3FaKSsI6+2xTuIl0p4sZhSrWg0R5NwWalW9+zAW7/NW3QI5lzTq6l4bPfy/Y8yGihTtqvqQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1630.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(396003)(136003)(366004)(376002)(346002)(39860400002)(53546011)(55016002)(6506007)(66446008)(64756008)(316002)(66556008)(52536014)(9686003)(478600001)(966005)(4326008)(76116006)(26005)(33656002)(86362001)(110136005)(2906002)(66476007)(8676002)(7696005)(66946007)(71200400001)(54906003)(186003)(8936002)(5660300002)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: EUQBpmBeinnQ8ECLQH/SrxHlkq6UU0+jhrkoX5WiIPfiLL+9NefUDa1xYT35Kbz+enKKU6s6pD2p5hT2Eu3JxoGNNYcMtu0kEMU+UOr4Dj3oJpK2xACN9pVJWVs6rt3YpJXBgj2/RXrf0jgTgp78xjv3e0MhESxSsd4tg+DyUHpkh3LP0f6yaLwi+cfLD5gH98WM2YcdjUNL21SKmCYvSxaYtgPfk9vLmNgvCXLkJar9sIjligGQOuae01/dkDSabIMcgN6hSH4aE7oF6NzbrPgQy54sCL06X7sPDF84ZI/WjU5otEElrZeHzlna+ayLH7Uv5UGlr19BnS/SeNTusyuShqeXOGo8oMV8C2asAWWEhTxGdVbeZhPhTjOJnZkH3BLbefji7rU6zYSmF86swAGjqpyLu6v178tT7LS9a/hGZ4ggIyg1Ok0pM53G62MbccCTIVTr6N7EywbT0+zTmke9F9nNF2j+sv5Bl0dpEJir5npxOm+GKANvfEb/VscZ MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1630.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: af789f5f-5c40-4f00-fcca-08d831d942be X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Jul 2020 03:00:46.1556 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: l3BbTeiOfNJ4R/GW6dtsHM6CWcuAZzr8PNpHXNWWsA3L9w6xY8fizjh+3wjSsiIvNm5s7i3vdS1xriJZ0tAUHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1421 Return-Path: liming.gao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable Shenglei: I have one comment. Seemly, LicenseCheck_plug_in.yaml copyright may be In= tel one.=20 Reviewed-by: Liming Gao for this patch set.=20 Thanks Liming -----Original Message----- From: Zhang, Shenglei =20 Sent: 2020=1B$BG/=1B(B7=1B$B7n=1B(B20=1B$BF|=1B(B 16:37 To: devel@edk2.groups.io Cc: Kinney, Michael D ; Sean Brogan ; Bret Barkelew ; Dong, Eric <= eric.dong@intel.com>; Laszlo Ersek ; Gao, Zhichao ; Yao, Jiewen ; Chao Zhang ; Justen, Jordan L ; Maciej Rabed= a ; Wu, Jiaxin ; Fu, Si= yuan ; Gao, Liming ; Wang, Jian = J ; Wu, Hao A ; Andrew Fish ; Ni, Ray ; Lu, XiaoyuX ; Ard Biesheuvel ; Leif Lindholm Subject: [PATCH 00/15] Add a plugin LicenseCheck in open ci REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2691 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2833 LicenseCheck is now enabled in PatchCheck.py. But there's a patch "Revert '= BaseTools/PatchCheck.py: Add LicenseCheck'" to suggest revert the change.These patch series introduce a plugin LicenseC= heck into open ci so that license issues can still be checked after the che= cker is disabled in PatchCheck.py. 1/15 is the plugin implementation. 2/15 ~ 15/15 introduce sections "IgnoreFiles" to allow developers to skip l= icense check for some files like generated files. Only BSD-2-Clause-Patent and BSD-3-Clause-Patent can pass this checker. Cc: Michael D Kinney Cc: Sean Brogan Cc: Bret Barkelew Cc: Eric Dong Cc: Laszlo Ersek Cc: Zhichao Gao Cc: Jiewen Yao Cc: Chao Zhang Cc: Jordan Justen Cc: Maciej Rabeda Cc: Jiaxin Wu Cc: Siyuan Fu Cc: Liming Gao Cc: Jian J Wang Cc: Hao A Wu Cc: Jordan Justen Cc: Andrew Fish Cc: Ray Ni Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Ard Biesheuvel Cc: Leif Lindholm Shenglei Zhang (15): .pytool/Plugin: Add a plugin LicenseCheck FatPkg/FatPkg.ci.yaml: Add configuration for LicenseCheck ArmVirtPkg/ArmVirtPkg.ci.yaml: Add configuration for LicenseCheck CryptoPkg/CryptoPkg.ci.yaml: Add configuration for LicenseCheck EmulatorPkg/EmulatorPkg.ci.yaml: Add configuration for LicenseCheck FmpDevicePkg/FmpDevicePkg.ci.yaml: Add configuration for LicenseCheck MdeModulePkg/MdeModulePkg.ci.yaml: Add configuration for LicenseCheck MdePkg/MdePkg.ci.yaml: Add configuration for LicenseCheck NetworkPkg/NetworkPkg.ci.yaml: Add configuration for LicenseCheck OvmfPkg/OvmfPkg.ci.yaml: Add configuration for LicenseCheck PcAtChipsetPkg/PcAtChipsetPkg.ci.yaml: Add configuration for LicenseCheck SecurityPkg/SecurityPkg.ci.yaml: Add configuration for LicenseCheck ShellPkg/ShellPkg.ci.yaml: Add configuration for LicenseCheck UefiCpuPkg/UefiCpuPkg.ci.yaml: Add configuration for LicenseCheck UnitTestFrameworkPkg: Add configuration for LicenseCheck in yaml file .pytool/Plugin/LicenseCheck/LicenseCheck.py | 118 ++++++++++++++++++ .../LicenseCheck/LicenseCheck_plug_in.yaml | 11 ++ .pytool/Plugin/LicenseCheck/Readme.md | 17 +++ ArmVirtPkg/ArmVirtPkg.ci.yaml | 4 + CryptoPkg/CryptoPkg.ci.yaml | 3 + EmulatorPkg/EmulatorPkg.ci.yaml | 4 + FatPkg/FatPkg.ci.yaml | 3 + FmpDevicePkg/FmpDevicePkg.ci.yaml | 3 + MdeModulePkg/MdeModulePkg.ci.yaml | 4 + MdePkg/MdePkg.ci.yaml | 4 + NetworkPkg/NetworkPkg.ci.yaml | 3 + OvmfPkg/OvmfPkg.ci.yaml | 4 + PcAtChipsetPkg/PcAtChipsetPkg.ci.yaml | 3 + SecurityPkg/SecurityPkg.ci.yaml | 3 + ShellPkg/ShellPkg.ci.yaml | 3 + UefiCpuPkg/UefiCpuPkg.ci.yaml | 3 + .../UnitTestFrameworkPkg.ci.yaml | 4 + 17 files changed, 194 insertions(+) create mode 100644 .pytool/Plugin/LicenseCheck/LicenseCheck.py create mode 100644 .pytool/Plugin/LicenseCheck/LicenseCheck_plug_in.yaml create mode 100644 .pytool/Plugin/LicenseCheck/Readme.md -- 2.18.0.windows.1