fix(miner): remove stale not-yet-migrated cast/comment for resolveReplaySnapshotDbPath - #8715
Conversation
…laySnapshotDbPath replay-snapshot.ts's resolveReplaySnapshotDbPath has typed env as Record<string, string | undefined> (matching every sibling resolver) since commit 321a734 -- before migrate-cli.ts's comment was even written and a day before the same stale comment was copied into status.ts. The casts were harmless no-ops but actively misled a reader into thinking a real type inconsistency still existed. Verified via typecheck: removing both casts introduces no new error at either call site. Closes JSONbored#8642
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8715 +/- ##
==========================================
- Coverage 93.79% 90.63% -3.16%
==========================================
Files 797 98 -699
Lines 79480 22700 -56780
Branches 24078 3962 -20116
==========================================
- Hits 74545 20575 -53970
+ Misses 3563 1945 -1618
+ Partials 1372 180 -1192
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-26 00:30:28 UTC
Review summary Nits — 2 non-blocking
CI checks failing
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver 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://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 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 LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (validate, validate-code)). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
packages/loopover-miner/lib/migrate-cli.tsandpackages/loopover-miner/lib/status.tsboth carried a comment and a type cast claimingresolveReplaySnapshotDbPath'senvparameter was still typed asNodeJS.ProcessEnv("not yet migrated"). This is no longer true:replay-snapshot.ts'sresolveReplaySnapshotDbPathhas typedenvasRecord<string, string | undefined>(matching every sibling resolver) since commit321a734b7— which landed beforemigrate-cli.ts's comment was even written, and a day before the same stale comment was copied intostatus.ts. The casts were harmless no-ops but actively misled a future reader into thinking a real type inconsistency still existed.resolveReplaySnapshotDbPath(env)directly with no cast.No production behavior change — the two casts were already no-ops at runtime.
Scope
type(scope): short summaryConventional Commit format.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #8642
Validation
npm run typecheck— passes with both casts removed, no new error surfaces at either call site.git diff --checknpm run docs:drift-checknpm run manifest:drift-checkresolveReplaySnapshotDbPath.Per the issue's own Test Coverage Requirements: this is a type-level/comment-accuracy fix with no behavioral change, so no new test is required —
npm run typecheckpassing is the verification.