feat(health): expose liveness metadata - #2528
Conversation
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-02 08:40:27 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 #2528 +/- ##
==========================================
+ Coverage 95.95% 95.97% +0.02%
==========================================
Files 226 228 +2
Lines 25387 25709 +322
Branches 9234 9350 +116
==========================================
+ Hits 24359 24674 +315
- Misses 417 425 +8
+ Partials 611 610 -1
🚀 New features to boost your workflow:
|
Summary
/health: image/package version, uptime seconds, and active DB backend./healthbinding-free for load balancers: it does not perform DB, Redis, or optional-backend reads.0090_*migration filenames and grandfathers that duplicate in the migration guard so existing migration ledgers never replay a bareALTER TABLEunder a new filename.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires >=99% coverage of the lines and branches changed.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
npm run test:cigate and focusednpx vitest run test/unit/selfhost-health.test.ts --coverage.enabled true --coverage.include src/selfhost/health.ts --coverage.reporter text, which reported 100% statements, branches, functions, and lines forsrc/selfhost/health.ts.Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
No visible UI, frontend, docs, or extension changes.
Notes
/readyremains the backend-touching readiness endpoint;/healthremains liveness-only./healthschema describes the Worker/Hono app health route, which is unchanged.