From 84cc745efde15e40787ae4446c0236b2addbdcb1 Mon Sep 17 00:00:00 2001 From: Molecule AI CP-BE Date: Thu, 23 Apr 2026 21:24:24 +0000 Subject: [PATCH] fix(ci): correct coverage-gate path-strip to match allowlist format (#1885) sed was stripping only github.com/Molecule-AI/molecule-monorepo/platform/, leaving workspace-server/internal/handlers/workspace_provision.go. The allowlist uses internal/handlers/workspace_provision.go (no workspace-server/). Fix strips the full prefix so grep -qxF exact match succeeds. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1350f68c..a612c837 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,7 +142,7 @@ jobs: # Strip the package-import prefix so we can match .coverage-allowlist.txt # entries written as paths relative to workspace-server/. - rel=$(echo "$file" | sed 's|^github.com/Molecule-AI/molecule-monorepo/platform/||') + rel=$(echo "$file" | sed 's|^github.com/Molecule-AI/molecule-monorepo/platform/workspace-server/||') if echo "$ALLOWLIST" | grep -qxF "$rel"; then echo "::warning file=workspace-server/$rel::Critical file at ${pct}% coverage (allowlisted, #1823) — fix before expiry."