[edk2-devel] generating the test matrix for local CI runs

Rebecca Cran rebecca at nuviainc.com
Thu Mar 4 17:45:20 UTC 2021


On 3/4/21 10:04 AM, Laszlo Ersek wrote:
> (Sigh, my address book pulled one over me -- resending to the correct
> list address now. Please ignore the previous posting that you may have
> gotten "in private".)
> 
> Hi All,
> 
> while I can run specific CI tests locally, using the commands listed at:
> 
> https://github.com/tianocore/edk2/tree/master/.pytool
> https://github.com/tianocore/edk2/tree/master/ArmVirtPkg/PlatformCI
> https://github.com/tianocore/edk2/tree/master/OvmfPkg/PlatformCI
> 
> I don't know how I can determine and drive the whole "test plan" locally.
> 
> When I submit a PR to github, "something" generates (say) 83 test cases.
> How can I run that "something" locally?
> 
> Assume I have the following:
> - a Linux builder VM, with up-to-date tools,
> - a Windows builder VM, with up-to-date tools,
> - a topic branch, on top of "master".
> 
> How do I generate and run those same 83 tests, locally?
> 
> It has happened to me that all my local CI steps succeeded (meaning both
> the Windows and the Linux builder), but github still rejected the PR --
> the reason was that I failed to think of a particular test that github
> would run. Composing 83 "stuart" command lines isn't something I'd like
> to do manually.

FWIW it looks like people have been looking for similar functionality of 
testing a pipeline locally, and not found it.

e.g.:
https://github.com/microsoft/azure-pipelines-agent/issues/1764
https://developercommunity.visualstudio.com/t/yaml-how-to-test-yaml-locally-before-commit/1302759

-- 
Rebecca Cran


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#72437): https://edk2.groups.io/g/devel/message/72437
Mute This Topic: https://groups.io/mt/81081846/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list