Skip to content

feat(ci): guard against new *-coverage.test.ts bolt-on files#8589

Merged
JSONbored merged 1 commit into
mainfrom
test/guard-coverage-bolton-filenames
Jul 24, 2026
Merged

feat(ci): guard against new *-coverage.test.ts bolt-on files#8589
JSONbored merged 1 commit into
mainfrom
test/guard-coverage-bolton-filenames

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Closes #8580. Last piece of the #8574 epic.

Summary

Adds scripts/check-coverage-bolt-on-filenames.ts, a drift-style check (same shape as docs:drift-check/manifest:drift-check/engine-parity:drift-check) that fails when a test file matches *-coverage.test.ts or *-branch-coverage.test.ts, with an allowlist for genuine exceptions (rees-coverage-script.test.ts tests scripts/rees-coverage.js, real coverage tooling — the name is a coincidence). Wired into test:ci right after docs:drift-check.

The whole existing bolt-on family (predicted-gate-engine-coverage.test.ts, reward-risk-engine-branch-coverage.test.ts, focus-manifest-engine-branch-coverage.test.ts, signals-coverage.test.ts) has now merged via #8581/#8582/#8584/#8586, so this check lands green.

Also updates the contributing-to-loopover skill (SKILL.md Phase 3 + reference.md's CI check table) so future contributors are pointed at extending a module's existing suite instead of bolting on a new coverage-named file.

Test plan

  • npm run coverage-boltons:check — clean against current main
  • npx vitest run test/unit/check-coverage-bolt-on-filenames-script.test.ts — 8/8 pass
  • npm run typecheck — clean

Adds scripts/check-coverage-bolt-on-filenames.ts, a drift-style check
(alongside docs:drift-check/manifest:drift-check/engine-parity:drift-check)
that fails when a test file matches *-coverage.test.ts or
*-branch-coverage.test.ts, with an allowlist for genuine exceptions
(rees-coverage-script.test.ts tests scripts/rees-coverage.js, real
coverage tooling -- the name is a coincidence). Wired into test:ci
right after docs:drift-check.

This closes out epic #8574: the whole existing bolt-on family
(predicted-gate-engine-coverage.test.ts, reward-risk-engine-branch-
coverage.test.ts, focus-manifest-engine-branch-coverage.test.ts,
signals-coverage.test.ts) has now merged, so the check lands green.

Also updates the contributing-to-loopover skill (SKILL.md Phase 3 +
reference.md's CI check table) so future contributors are told to
extend a module's existing suite instead of bolting on a new
coverage-named file.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 24, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
loopover-ui 200b3ee Commit Preview URL

Branch Preview URL
Jul 24 2026, 10:56 PM

@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@JSONbored JSONbored self-assigned this Jul 24, 2026
@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

@JSONbored
JSONbored merged commit 626bc33 into main Jul 24, 2026
6 checks passed
@JSONbored
JSONbored deleted the test/guard-coverage-bolton-filenames branch July 24, 2026 23:00
@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 24, 2026
@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.54%. Comparing base (30e77ba) to head (200b3ee).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8589   +/-   ##
=======================================
  Coverage   92.54%   92.54%           
=======================================
  Files         796      796           
  Lines       79850    79850           
  Branches    24135    24135           
=======================================
  Hits        73899    73899           
  Misses       4802     4802           
  Partials     1149     1149           
Flag Coverage Δ
backend 93.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Guard: block new '*-coverage.test.ts' bolt-on files

1 participant