Swift 5.1.4 (via swift:5.1 official docker image)
GitLab CI cloud runner
GitHub Actions cloud ubuntu-latest
Local docker (mac mini 2018 - macOS 10.15.2)
I've been trying to use llvm-cov in the Swift docker images to generate and output code coverage reports.
On my local machine, the following commands work and I get expected test coverage output within the official swift:5.1 docker image (Swift 5.1.4):
On GitLab CI, all of the command executes fine - but llvm-cov finds no coverage data and just reports empty lines with 0 coverage.
GitHub Actions also works, but it correctly provides the expected code coverage like I get on my local machine.
I have confirmed that all 3 environments are using the exact same Docker image by verifying the digest SHA and Image ID.
The only difference I can find is the CPU architecture through llvm-cov --version.
|Environment||Reported CPU||Generates Report?|
|Local Docker (iMac 2011)||sandybridge||yes|
|Local Docker (mac mini 2018)||skylake||yes|
|GitHub Actions docker||skylake-avx512||yes|
|GitLab CI docker||haswell||no|