audk/.azurepipelines
Michael D Kinney 2ad22420a7 UnitTestFrameworkPkg: Use TianoCore mirror of cmocka repository
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3301

The cmocka repository https://git.cryptomilk.org/projects/cmocka.git
has gone down a few times in past year.  When it is down, it blocks
EDK II CI.  A mirror of this repository has been created in the
TianoCore organization at https://github.com/tianocore/edk2-cmocka.git
and uses a GitHub Action to auto-sync changes from
https://git.cryptomilk.org/projects/cmocka.git.

* Update .gitmodules to use https://github.com/tianocore/edk2-cmocka.git
  instead of https://git.cryptomilk.org/projects/cmocka.git.

* Update README.rst to reference the COPYING file in
  https://github.com/tianocore/edk2-cmocka.git with the cmocka license.

* Update Azure Pipelines YML files to remove a temporary workaround that
  used an alternate GitHub mirror of cmocka.  With the workaround removed,
  EDK II CI always uses the TianoCore mirror of cmocka.

Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Andrew Fish <afish@apple.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2021-04-14 17:28:46 +00:00
..
templates UnitTestFrameworkPkg: Use TianoCore mirror of cmocka repository 2021-04-14 17:28:46 +00:00
ReadMe.md .azurepipelines: Add Platform CI template 2020-04-28 18:07:59 +00:00
Ubuntu-GCC5.yml .azurepipelines: Enable EDK II CI for stable/* branches 2020-12-22 22:11:48 +00:00
Ubuntu-PatchCheck.yml .azurepipelines: Enable EDK II CI for stable/* branches 2020-12-22 22:11:48 +00:00
Windows-VS2019.yml .azurepipelines: Enable EDK II CI for stable/* branches 2020-12-22 22:11:48 +00:00

ReadMe.md

Azure DevOps Pipelines

These yml files are used to provide CI builds using the Azure DevOps Pipeline Service. Most of the CI leverages edk2-pytools to support cross platform building and execution.

Core CI

Focused on building and testing all packages in Edk2 without an actual target platform.

See .pytools/ReadMe.py for more details

Platform CI

Focused on building a single target platform and confirming functionality on that platform.

Conventions

  • Files extension should be *.yml. *.yaml is also supported but in Edk2 we use those for our package configuration.
  • Platform CI files should be in the <PlatformPkg>/.azurepipelines folder.
  • Core CI files are in the root folder.
  • Shared templates are in the templates folder.
  • Top level CI files should be named <host os>-<tool_chain_tag>.yml

Lessons Learned

Templates and parameters

They are great but evil. If they are used as part of determining the steps of a build they must resolve before the build starts. They can not use variables set in a yml or determined as part of a matrix. If they are used in a step then they can be bound late.

File matching patterns

On Linux this can hang if there are too many files in the search list.

Templates and file splitting

Suggestion is to do one big yaml file that does what you want for one of your targets. Then do the second one and find the deltas. From that you can start to figure out the right split of files, steps, jobs.

Conditional steps

If you want the step to show up in the log but not run, use a step conditional. This is great when a platform doesn't currently support a feature but you want the builders to know that the features exists and maybe someday it will.

If you want the step to not show up use a template step conditional wrapper. Beware this will be evaluated early (at build start). This can hide things not needed on a given OS for example.