feat(ci): bring miner package under Codecov patch gate (#4864)#5305
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-12 13:46:42 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5305 +/- ##
==========================================
+ Coverage 94.37% 94.40% +0.03%
==========================================
Files 474 548 +74
Lines 40128 43834 +3706
Branches 14631 14631
==========================================
+ Hits 37869 41381 +3512
- Misses 1583 1777 +194
Partials 676 676
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Summary
Adds
packages/gittensory-miner/lib/**/*.jsto the vitest v8 coverageincludelist so changed miner library lines appear in the uploadedlcov.inforeport. Codecov's existing 99%patchgate then applies to miner diffs the same way it already does forsrc/**andpackages/gittensory-engine/src/**.Miner tests already run in CI (
test:miner-pack, path-filtered validate-tests); this closes the gap where those tests could pass without any patch-coverage obligation on miner code.Closes #4864
Changes
vitest.config.tspackages/gittensory-miner/lib/**/*.jsin coverage collectioncodecov.ymlignoreentries)test/unit/codecov-policy.test.tsScope notes
packages/gittensory-miner/lib/**/*.jsonly — same pattern as engine'ssrc/**focus; thinbin/entrypoints stay out of the include list (mirrors howsrc/server.tsis codecov-ignored).test/**(codecov-ignored) and non-src/**config files.src/**.Test plan
npm run test:unit -- test/unit/codecov-policy.test.tsnpm run test:ci(full gate)npm run test:coverage— confirm merged lcov listspackages/gittensory-miner/lib/**pathscodecov/patchevaluates changed miner linesNotes
help wanted,gittensor:priority,gittensor:feature— confirm contributor eligibility before opening..claude/skills/contributing-to-gittensory/reference.mdstill says coverage include issrc/**/*.tsonly; a separate doc tweak may be warranted after this lands.test/unit/miner-*.test.tsalready import frompackages/gittensory-miner/lib/**; no new behavioral tests required for this wiring change.