Yes this change is currently required to enable Policy 5 for a given
package. I'm tempted to move this patch series to individual patch series
so that I can merge individual changes as they are approved in a package.

We could try and set the dsc automatically as you suggested. It would be
preferred to trying to get this patch series pushed through on almost all
packages in edk2 :). However there are some issues I don't think we can
easily work around:

1. There exist very few packages that only have one dsc in them (for
various reasons, one of which is that most packages have a dsc for
testing... but others such as the ArmVirtPkg have many in general)
2. The target of this Policy is to catch changes in an INF and build all
packages that use the INF via the compiler plugin, however not all packages
utilize the compiler plugin (such as EmulatorPkg). Using  EmulatorPkg  as
an example, if Policy 5 catches that its dsc uses the changed INF, then CI
will pointlessly run for  EmulatorPkg. It is pointless because
EmulatorPkg's dsc will not be compiled, so even if there is a break in the
INF interface, it will not be caught for  EmulatorPkg, but all other CI
will run on an unchanged package, wasting time.
3. It can cause unexpected behavior for the package developer

Let me know your thoughts!
Joey


On Mon, Jun 26, 2023 at 6:00 PM gaoliming <[email protected]> wrote:

> Joey:
>   So, this change is required for all package YAML. If yes, can PrEval be
> auto set to the package dsc if only one DSC is in Package directory?
>
> Thanks
> Liming
> > -----邮件原件-----
> > 发件人: Joey Vagedes <[email protected]>
> > 发送时间: 2023年6月27日 5:34
> > 收件人: [email protected]
> > 抄送: Abner Chang <[email protected]>; Alexei Fedorov
> > <[email protected]>; Ard Biesheuvel <[email protected]>;
> > Ashraf Ali S <[email protected]>; Chasel Chiu
> <[email protected]>;
> > Chen Gang C <[email protected]>; Daniel Schaefer
> > <[email protected]>; Duggapu Chinni B <[email protected]>;
> > Eric Dong <[email protected]>; Gerd Hoffmann <[email protected]>; Guo
> > Dong <[email protected]>; Guomin Jiang <[email protected]>; Hao
> > A Wu <[email protected]>; Igor Kulchytskyy <[email protected]>; James Lu
> > <[email protected]>; Jian J Wang <[email protected]>; Jiewen Yao
> > <[email protected]>; Leif Lindholm <[email protected]>;
> Liming
> > Gao <[email protected]>; Maciej Rabeda
> > <[email protected]>; Michael D Kinney
> > <[email protected]>; Michael Kubacki
> > <[email protected]>; Nate DeSimone
> > <[email protected]>; Nickle Wang <[email protected]>;
> > Pierre Gondois <[email protected]>; Rahul Kumar
> > <[email protected]>; Ray Han Lim Ng <[email protected]>;
> > Ray Ni <[email protected]>; Sami Mujawar <[email protected]>; Sean
> > Brogan <[email protected]>; Sean Rhodes
> > <[email protected]>; Siyuan Fu <[email protected]>; Star Zeng
> > <[email protected]>; Susovan Mohapatra
> > <[email protected]>; Ted Kuo <[email protected]>; Wei6 Xu
> > <[email protected]>; Xiaoyu Lu <[email protected]>; Yi Li
> > <[email protected]>; Zhichao Gao <[email protected]>; Zhiguang Liu
> > <[email protected]>
> > 主题: [PATCH v1 00/24] Update Edk2-pytools to latest versions
> >
> > Updates Edk2-pytools to the latest versions, which introduces a new
> Policy
> > for detecting which packages must be built given a set of changes. This
> policy
> > is used when a library class instance INF is changed. When this occurs,
> it
> will
> > review the PrEval:DscPath provided in the CI YAML file and determine if
> the
> > package uses the library instance or not. If it does, it will build and
> test
> > the package.
> >
> > Due to these changes, each package must now include an entry in it's CI
> > YAML
> > file (PrEval:DscPath). If the package does not provide this entry, this
> policy
> > will be skipped, which could lead to a library instance breaking packages
> > outside
> > of it's parent package.
> >
> > Cc: Abner Chang <[email protected]>
> > Cc: Alexei Fedorov <[email protected]>
> > Cc: Ard Biesheuvel <[email protected]>
> > Cc: Ashraf Ali S <[email protected]>
> > Cc: Chasel Chiu <[email protected]>
> > Cc: Chen Gang C <[email protected]>
> > Cc: Daniel Schaefer <[email protected]>
> > Cc: Duggapu Chinni B <[email protected]>
> > Cc: Eric Dong <[email protected]>
> > Cc: Gerd Hoffmann <[email protected]>
> > Cc: Guo Dong <[email protected]>
> > Cc: Guomin Jiang <[email protected]>
> > Cc: Hao A Wu <[email protected]>
> > Cc: Igor Kulchytskyy <[email protected]>
> > Cc: James Lu <[email protected]>
> > Cc: Jian J Wang <[email protected]>
> > Cc: Jiewen Yao <[email protected]>
> > Cc: Leif Lindholm <[email protected]>
> > Cc: Liming Gao <[email protected]>
> > Cc: Maciej Rabeda <[email protected]>
> > Cc: Michael D Kinney <[email protected]>
> > Cc: Michael Kubacki <[email protected]>
> > Cc: Nate DeSimone <[email protected]>
> > Cc: Nickle Wang <[email protected]>
> > Cc: Pierre Gondois <[email protected]>
> > Cc: Rahul Kumar <[email protected]>
> > Cc: Ray Han Lim Ng <[email protected]>
> > Cc: Ray Ni <[email protected]>
> > Cc: Sami Mujawar <[email protected]>
> > Cc: Sean Brogan <[email protected]>
> > Cc: Sean Rhodes <[email protected]>
> > Cc: Siyuan Fu <[email protected]>
> > Cc: Star Zeng <[email protected]>
> > Cc: Susovan Mohapatra <[email protected]>
> > Cc: Ted Kuo <[email protected]>
> > Cc: Wei6 Xu <[email protected]>
> > Cc: Xiaoyu Lu <[email protected]>
> > Cc: Yi Li <[email protected]>
> > Cc: Zhichao Gao <[email protected]>
> > Cc: Zhiguang Liu <[email protected]>
> >
> > Joey Vagedes (24):
> >   Edk2: edk2-pytools: Update to latest versions
> >   UnitTestFrameworkPkg: CI: Add PrEval entry
> >   UefiPayloadPkg: CI: Add PrEval entry
> >   ArmPkg: CI: Add PrEval entry
> >   UefiCpuPkg: CI: Add PrEval entry
> >   ArmPlatformPkg: CI: Add PrEval entry
> >   CryptoPkg: CI: Add PrEval entry
> >   DynamicTablesPkg: CI: Add PrEval entry
> >   EmbeddedPkg: CI: Add PrEval entry
> >   FatPkg: CI: Add PrEval entry
> >   FmpDevicePkg: CI: Add PrEval entry
> >   IntelFsp2Pkg: CI: Add PrEval entry
> >   CryptoPkg: CI: Add PrEval entry
> >   SourceLevelDebugPkg: CI: Add PrEval entry
> >   SignedCapsulePkg: CI: Add PrEval entry
> >   ShellPkg: CI: Add PrEval entry
> >   SecurityPkg: CI: Add PrEval entry
> >   RedfishPkg: CI: Add PrEval entry
> >   PrmPkg: CI: Add PrEval entry
> >   PcAtChipsetPkg: CI: Add PrEval entry
> >   NetworkPkg: CI: Add PrEval entry
> >   MdePkg: CI: Add PrEval entry
> >   MdeModulePkg: CI: Add PrEval entry
> >   IntelFsp2WrapperPkg: CI: Add PrEval entry
> >
> >  ArmPkg/ArmPkg.ci.yaml                             | 3 +++
> >  ArmPlatformPkg/ArmPlatformPkg.ci.yaml             | 3 +++
> >  CryptoPkg/CryptoPkg.ci.yaml                       | 3 +++
> >  DynamicTablesPkg/DynamicTablesPkg.ci.yaml         | 3 +++
> >  EmbeddedPkg/EmbeddedPkg.ci.yaml                   | 3 +++
> >  FatPkg/FatPkg.ci.yaml                             | 3 +++
> >  FmpDevicePkg/FmpDevicePkg.ci.yaml                 | 3 +++
> >  IntelFsp2Pkg/IntelFsp2Pkg.ci.yaml                 | 3 +++
> >  IntelFsp2WrapperPkg/IntelFsp2WrapperPkg.ci.yaml   | 3 +++
> >  MdeModulePkg/MdeModulePkg.ci.yaml                 | 3 +++
> >  MdePkg/MdePkg.ci.yaml                             | 3 +++
> >  NetworkPkg/NetworkPkg.ci.yaml                     | 3 +++
> >  PcAtChipsetPkg/PcAtChipsetPkg.ci.yaml             | 3 +++
> >  PrmPkg/PrmPkg.ci.yaml                             | 3 +++
> >  RedfishPkg/RedfishPkg.ci.yaml                     | 3 +++
> >  SecurityPkg/SecurityPkg.ci.yaml                   | 3 +++
> >  ShellPkg/ShellPkg.ci.yaml                         | 3 +++
> >  SignedCapsulePkg/SignedCapsulePkg.ci.yaml         | 3 +++
> >  SourceLevelDebugPkg/SourceLevelDebugPkg.ci.yaml   | 3 +++
> >  StandaloneMmPkg/StandaloneMmPkg.ci.yaml           | 3 +++
> >  UefiCpuPkg/UefiCpuPkg.ci.yaml                     | 3 +++
> >  UefiPayloadPkg/UefiPayloadPkg.ci.yaml             | 3 +++
> >  UnitTestFrameworkPkg/UnitTestFrameworkPkg.ci.yaml | 3 +++
> >  pip-requirements.txt                              | 4 ++--
> >  24 files changed, 71 insertions(+), 2 deletions(-)
> >
> > --
> > 2.41.0.windows.1
>
>
>
>


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#106434): https://edk2.groups.io/g/devel/message/106434
Mute This Topic: https://groups.io/mt/99814224/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to