feat(miner): wire GITTENSORY_MINER_VERSION build-time override (#4310) - #4336
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4336 +/- ##
=======================================
Coverage 93.94% 93.94%
=======================================
Files 397 397
Lines 36744 36744
Branches 13430 13430
=======================================
Hits 34519 34519
Misses 1569 1569
Partials 656 656 🚀 New features to boost your workflow:
|
…red#4310) Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-09 04:46:21 UTC
✅ Suggested Action - Approve/Merge
Review summary Blockers
Nits — 4 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🟩 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.
|
Summary
Closes #4310
Adds a build-time-injectable miner version override so fleet Docker images can report their real built ref instead of always echoing package.json.
packages/gittensory-miner/lib/version.jsexportsMINER_PACKAGE_VERSION(JSON import at module load) andresolveMinerVersion(env)GITTENSORY_MINER_VERSIONwins over package.json when set (mirrors rootGITTENSORY_VERSION/ARG→ENVpattern)--version/printVersionandstatus --jsonviacollectStatusValidation
npx vitest run test/unit/miner-version.test.ts test/unit/miner-status.test.ts -t GITTENSORY_MINER_VERSIONnpm run build:minerMade with Cursor