Skip to content

chore: trim residual ceremony from coverage chain#22

Merged
david30907d merged 3 commits into
mainfrom
claude/trim-coverage-ceremony
May 25, 2026
Merged

chore: trim residual ceremony from coverage chain#22
david30907d merged 3 commits into
mainfrom
claude/trim-coverage-ceremony

Conversation

@taiiiiiiiiiiii
Copy link
Copy Markdown
Contributor

Three small follow-ups in the spirit of the prebuild:packages cleanup that landed in #21 (commit a7e9fc3), surfaced by surveying what was left after that PR merged.

Changes

# What File Δ
1 Drop the explicit pnpm prebuild:packages step from the CI coverage job .github/workflows/ci.yml -3 lines + ~15s CI wall time
2 Compose coverage:check from coverage:summary instead of duplicating the prefix package.json -1 verbose script
3 Delete the unused test:coverage:check Turbo task turbo.json -5 lines of dead code

Total: -9 LOC, behavior unchanged.

Why

1. CI coverage job prebuild

pnpm coverage:check (baseline path) and pnpm coverage:summary (no-baseline path) both invoke turbo run test:coverage --filter=!@zapengine/mobile. The test:coverage task in turbo.json declares dependsOn: ["^build"], so Turbo auto-builds internal packages before the test run. Explicit prebuild:packages is duplicate work — exactly the same reasoning that justified removing it from check:local / check:ci / check:ci:core in #21.

2. Compose coverage:check

After #21 made coverage:check self-sufficient (it now runs test:coverage itself), the two scripts shared an identical turbo run test:coverage --filter=!@zapengine/mobile && tsx scripts/coverage-summary.ts prefix. Now:

coverage:check = coverage:summary + regression gate

Single source of truth for the test+summary behavior; the relationship between the two scripts is explicit.

3. Delete test:coverage:check

Verified via repo-wide grep — defined in turbo.json but never invoked anywhere (no package.json script, no CI step, no docs). Vestigial from an earlier iteration. The actual regression gate is composed at the package.json script level, not as a Turbo task.

Verification

  • rm -rf packages/*/dist && pnpm turbo run test:coverage --filter=@zapengine/intent-engine --filter=@zapengine/types → 3/3 successful (packages auto-rebuilt via ^build)
  • pnpm exec tsx scripts/coverage-summary.ts → aggregates correctly
  • grep -rn "test:coverage:check" → 0 matches in repo
  • pnpm lint:repo → drift checks green
  • prettier --check on all 3 files → clean

No business logic changes; just config trimming.

https://claude.ai/code/session_01VCU2uisRq7X58rrnWA2Ckd


Generated by Claude Code

Three small follow-ups in the spirit of the prebuild:packages cleanup
in a7e9fc3, surfaced by surveying what was left after PR #21:

1. .github/workflows/ci.yml coverage job: dropped the explicit
   `pnpm prebuild:packages` step. `pnpm coverage:check` (and
   coverage:summary) both invoke `turbo run test:coverage`, which
   declares `dependsOn: ["^build"]` in turbo.json — Turbo handles
   package prebuild automatically. Same reasoning as a7e9fc3.

2. package.json: composed `coverage:check` from `coverage:summary`
   instead of duplicating its prefix. After 00b37f6 made
   coverage:check self-sufficient, the two scripts shared an
   identical `turbo run test:coverage --filter=!@zapengine/mobile
   && tsx scripts/coverage-summary.ts` prefix. Now it's:
     coverage:check = coverage:summary + regression gate.

3. turbo.json: deleted the `test:coverage:check` task definition —
   verified by repo-wide grep that nothing invokes it (not in any
   package.json, not in any workflow, not in any doc). Vestigial.
   The actual regression gate is composed at the package.json
   script level, not as a Turbo task.

Verified locally:
- rm -rf packages/*/dist + pnpm turbo run test:coverage on packages
  with no DB needs → 3 successful, packages auto-built via ^build
- pnpm exec tsx scripts/coverage-summary.ts → aggregates correctly
- pnpm lint:repo → drift checks green
- prettier --check on all 3 files → clean

https://claude.ai/code/session_01VCU2uisRq7X58rrnWA2Ckd
@vercel
Copy link
Copy Markdown

vercel Bot commented May 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
zap-engine-frontend Ready Ready Preview, Comment May 25, 2026 12:15pm
zap-engine-landing-page Ready Ready Preview, Comment May 25, 2026 12:15pm

@david30907d david30907d merged commit 91e586c into main May 25, 2026
4 of 8 checks passed
@david30907d david30907d deleted the claude/trim-coverage-ceremony branch May 25, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants