feat(selfhost): add boot environment preflight#2579
Conversation
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-02 11:12:12 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 6 non-blocking
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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2579 +/- ##
=======================================
Coverage 95.98% 95.99%
=======================================
Files 229 230 +1
Lines 25810 25864 +54
Branches 9389 9410 +21
=======================================
+ Hits 24774 24828 +54
Misses 425 425
Partials 611 611
🚀 New features to boost your workflow:
|
d046703 to
0be2195
Compare
0be2195 to
c592da8
Compare
c592da8 to
5f01a65
Compare
Summary
Adds a self-host environment preflight that reports all missing or invalid boot requirements at once instead of failing one variable at a time. Closes #2080.
What changed
preflightEnvvalidator with formatted boot errors.Why
Self-host operators should get one actionable startup report for required configuration instead of a restart loop that reveals each missing variable separately.
Validation
npx vitest run test/unit/selfhost-preflight.test.ts --coverage.enabled true --coverage.include src/selfhost/preflight.ts --coverage.reporter textnpm run typecheckgit diff --checknpm run test:cinpm audit --audit-level=moderateNotes