From bd34220e8559a954e151289f8c577019a1a656eb Mon Sep 17 00:00:00 2001 From: Agent Driver Date: Fri, 27 Nov 2026 13:29:42 -0500 Subject: [PATCH] Fix Specs coverage in CI builds and raise VerificationGlue to 0.5.0-preview.1 coverlet.console does not read the CoverletSourceRootsMapping file, so the /_/ source paths of a ContinuousIntegrationBuild left it no local sources and it skipped every module. The coverage build now keeps real source paths. Co-Authored-By: Claude Opus 5.5 --- Directory.Build.props | 2 +- scripts/test-verificationglue.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 12e7d9a..b01a726 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -65,7 +65,7 @@ on. It targets net10.0 only. No shipping package references it. --> - 0.3.0-preview.1 + 0.5.0-preview.1 diff --git a/scripts/test-verificationglue.sh b/scripts/test-verificationglue.sh index 1d39977..db665cb 100755 --- a/scripts/test-verificationglue.sh +++ b/scripts/test-verificationglue.sh @@ -34,6 +34,13 @@ PROJECTS=( if [ -n "${COVERAGE_DIR}" ]; then (cd "${REPO_ROOT}" && dotnet tool restore >/dev/null) + + # A CI build sets ContinuousIntegrationBuild, which writes /_/... source paths into the PDBs. + # coverlet.console cannot map them back to the checkout: it does not read the + # CoverletSourceRootsMapping file that coverlet.collector's build targets write. It then finds + # no local source for any module, skips them all, and reports 0%. Keep real source paths in + # the coverage build. + PROPERTIES+=("-p:DeterministicSourcePaths=false") fi for project in "${PROJECTS[@]}"; do