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 <noreply@anthropic.com>
This commit is contained in:
parent
84d9738b12
commit
84cc745efd
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user