<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/BaseTools/Plugin/HostBasedUnitTestRunner, branch dependabot/github_actions/actions/github-script-9</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=dependabot%2Fgithub_actions%2Factions%2Fgithub-script-9'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2026-03-31T22:24:43+00:00</updated>
<entry>
<title>BaseTools/Plugin: Add lcov error tolerance for vendored source trees</title>
<updated>2026-03-31T22:24:43+00:00</updated>
<author>
<name>Doug Flick</name>
<email>dougflick@microsoft.com</email>
</author>
<published>2026-03-30T21:17:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=233eddb8e30d137597119a80a473c449cba3e351'/>
<id>urn:sha1:233eddb8e30d137597119a80a473c449cba3e351</id>
<content type='text'>
lcov v2.0+ treats several gcov/source-related conditions as fatal
errors that were previously warnings in v1.x. This causes coverage
capture to abort when the build tree includes vendored third-party
sources (e.g. OpenSSL) that produce gcov mismatches, missing source
references, unexpected gcov output, or non-zero gcov return codes.

Signed-off-by: Doug Flick &lt;dougflick@microsoft.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/Plugin/HostBasedUnitTestRunner: Add missing quotes for Windows</title>
<updated>2026-01-06T20:52:29+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2026-01-06T19:31:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=923a951e8a77ab62b089295a7e73b78b39940ab8'/>
<id>urn:sha1:923a951e8a77ab62b089295a7e73b78b39940ab8</id>
<content type='text'>
Add missing double quotes for lcov_cobertura --excludes option.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/Plugin/HostBasedUnitTestRunner: Merge clang coverage files</title>
<updated>2025-12-22T08:09:04+00:00</updated>
<author>
<name>Cosmo Lai</name>
<email>cosmo.lai@intel.com</email>
</author>
<published>2025-11-28T10:00:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=9e1a3bb474c9722bee1199b0da301dad55b602d9'/>
<id>urn:sha1:9e1a3bb474c9722bee1199b0da301dad55b602d9</id>
<content type='text'>
For clang build, enable to generate coverage file under Build folder to
merge coverage files of all module.

Signed-off-by: Cosmo Lai &lt;cosmo.lai@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/Plugin/HostBasedUnitTestRunner: Add CLANG support</title>
<updated>2025-09-28T23:38:21+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2025-08-22T03:16:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=3c454cf7d43c59f7ff0000ca6ac333e8f359673e'/>
<id>urn:sha1:3c454cf7d43c59f7ff0000ca6ac333e8f359673e</id>
<content type='text'>
Update HostBasedUnitTestRunner to generate merged Cobertura
coverage.xml output file using CLANG code coverage data
from -fprofile-instr-generate -fcoverage-mapping options.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/HostBasedUnitTestRunner: lcov ignore mismatch errors</title>
<updated>2025-06-24T19:32:41+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2025-06-19T05:05:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=3f278768fab371ca2d9d2515a85894f8ee3194f9'/>
<id>urn:sha1:3f278768fab371ca2d9d2515a85894f8ee3194f9</id>
<content type='text'>
Ignore mismatch errors for lcov 2.x in all locations that lcov
is run. When building more complex unit tests, these mismatch
errors are showing up in different phases of the code coverage
collection.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/Plugin/HostBasedUnitTestRunner: Set ASAN env vars</title>
<updated>2025-01-21T05:02:38+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2024-12-04T03:39:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=139cbb266b4847d1b63a20c568a5df9b26f7489b'/>
<id>urn:sha1:139cbb266b4847d1b63a20c568a5df9b26f7489b</id>
<content type='text'>
The environment variable `GTEST_CATCH_EXCEPTION` must be
set to `0` for so all exceptions are handled by the
address sanitizer and not GoogleTest. This allows stack
back trace and other details to be logged by the address
sanitizer so the source of the issue identified address
sanitizer can be determined.

The environment variable `ASAN_OPTIONS` must be set to
`detect_leaks=0` to disable memory leak detection. The
unit test frameworks may have memory leaks and some
firmware code under test use cases may perform a memory
allocation without a matching memory free as their
expected behavior.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>BaseTools: Coverage: Detect lcov version</title>
<updated>2024-12-05T00:05:47+00:00</updated>
<author>
<name>Oliver Steffen</name>
<email>osteffen@redhat.com</email>
</author>
<published>2024-12-04T11:10:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=47ef19787356e003042d6f37d3853b9a47cb5d9e'/>
<id>urn:sha1:47ef19787356e003042d6f37d3853b9a47cb5d9e</id>
<content type='text'>
Detect the version of lcov and only apply
version 2 workaround when needed.

Fixes 61c714285f8c

Signed-off-by: Oliver Steffen &lt;osteffen@redhat.com&gt;
</content>
</entry>
<entry>
<title>BaseTools: Coverage: make lcov v2.0 work</title>
<updated>2024-12-04T06:08:05+00:00</updated>
<author>
<name>Oliver Steffen</name>
<email>osteffen@redhat.com</email>
</author>
<published>2024-09-30T18:32:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=61c714285f8cb83aa89b91798255f82260fa4ac2'/>
<id>urn:sha1:61c714285f8cb83aa89b91798255f82260fa4ac2</id>
<content type='text'>
lcov 2.0 and newer does additional error and consistency checking
compared to previous versions. This can lead to CI jobs failing due to
new/unexpected errors showing up.

See:
- https://edk2.groups.io/g/devel/message/116138
- https://github.com/linux-test-project/lcov/issues/209
- https://github.com/linux-test-project/lcov/issues/238

Signed-off-by: Oliver Steffen &lt;osteffen@redhat.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/HostBasedUnitTestRunner: Promote Unittest error to CI fail.</title>
<updated>2024-07-15T16:50:00+00:00</updated>
<author>
<name>v-bhavanisu</name>
<email>144935558+v-bhavanisu@users.noreply.github.com</email>
</author>
<published>2024-07-12T17:45:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=8e6ba0dcae40bfd4c191b2cd47e08f38186513d1'/>
<id>urn:sha1:8e6ba0dcae40bfd4c191b2cd47e08f38186513d1</id>
<content type='text'>
Some unit tests would fail to execute or execute and not produce any output
logs. In these cases, the only output would be in the CI Log as
`UnitTest Execution Error`.

A UnitTest Execution Error should be considered the same as a unit tests
test failing.

Signed-off-by: Aaron Pop &lt;aaronpop@microsoft.com&gt;
</content>
</entry>
<entry>
<title>BaseTools/Plugin: Too many execute files cause "cmd too long" failure</title>
<updated>2023-05-11T05:45:51+00:00</updated>
<author>
<name>Gua Guo</name>
<email>gua.guo@intel.com</email>
</author>
<published>2023-05-08T10:45:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=6dd64168ed1f74c6226784233fa36a619a985a66'/>
<id>urn:sha1:6dd64168ed1f74c6226784233fa36a619a985a66</id>
<content type='text'>
Windows command prompt have 8191 characters limitation,
enhance it to make command too long can be resloved.

Provide an example, if have too many cov files, it causes to run single
command over the 8191 characters limitation.
&gt; OpenCppCoverage
&gt;  --export_type binary:coverage.cov
&gt;  --working_dir={workspace}Build
&gt;  --input_coverage=AAA.cov
&gt;  ...
&gt;  --input_coverage=NNN.cov

The solution is passing many coverage files in single command line to
breaking it up into many command lines with one coverage file per
command line in order to prevent single line is over to 8191 characters.

- Command Line 1
&gt; OpenCppCoverage
&gt;  --export_type binary:coverage.cov
&gt;  --working_dir={workspace}Build
&gt;  --input_coverage=AAA.cov
&gt;  --input_coverage=coverage.cov
...

- Command Line N
&gt; OpenCppCoverage
&gt;  --export_type. binary:coverage.cov
&gt;  --working_dir={workspace}Build
&gt;  --input_coverage=NNN.cov
&gt;  --input_coverage=coverage.cov

Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Cc: Sean Brogan &lt;sean.brogan@microsoft.com&gt;
Cc: Michael Kubacki &lt;mikuback@linux.microsoft.com&gt;
Cc: Rebecca Cran &lt;rebecca@bsdio.com&gt;
Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Bob Feng &lt;bob.c.feng@intel.com&gt;
Cc: Yuwei Chen &lt;yuwei.chen@intel.com&gt;
Signed-off-by: Gua Guo &lt;gua.guo@intel.com&gt;
Reviewed-by: Michael Kubacki &lt;mikuback@linux.microsoft.com&gt;
Reviewed-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
</feed>
