[Phase 9] Report object-storage reachability in the readiness check
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- node.js, postgresql, typescript
- Ambito
- backend, observability
Direzione di ricerca
Start with backend/src/health/readiness.ts and backend/tests/unit/readiness.test.ts to see how existing checks are cached and tested, then read backend/src/utils/object-storage.ts for the storage interface and local/test behavior. Add a cheap bucket HEAD check without creating or listing objects, decide and document how unavailable storage affects readiness, and test it with a fake driver. Done when the new status is cached, covered by unit tests, and the required documentation and changelog updates are present.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Phase: 9 — Deploy & CI (see ROADMAP.md)
Description
/health/ready checks configuration, database, migrations and payments RPC, but not the S3 bucket that lab results depend on (ADR 0014). If credentials expire or the bucket is misconfigured, an instance reports ready while every lab-result upload and download fails.
Requirements & context
What to do:
- Add an
objectStoragecheck (disabled | reachable | unavailable) that does a cheap HEAD on the bucket throughutils/object-storage.ts, cached like the others. - Decide whether
unavailablemakes the instance not-ready or is reported only; document the choice. - Unit tests with a fake storage driver, matching the existing readiness tests.
Files likely involved:
backend/src/health/readiness.tsbackend/src/utils/object-storage.tsbackend/tests/unit/readiness.test.ts
Edge cases / constraints:
- The local/test storage driver should report
disabledor always reachable. - The check must not create or list objects.
- Follow the
ARCHITECTURE_ESSENTIALS.mdhard rules (module boundaries, append-only orders, DB-level booking guarantees, no invented schema fields without documenting them forARCHITECTURE.md§4 in adocs.d/fragment).
Suggested execution
- Fork the repo and branch off
main:git checkout -b feat/report-object-storage-reachability-in-the-readin - Implement the changes above. If you hit a design question the issue doesn't answer, comment here before guessing.
- Run
npm run typecheck,npm testandnpm run test:integrationinbackend/. Booking, referral, order and payment flows need integration tests, not only unit tests (AGENTS.md). - Commit with a clear message, for example:
feat(health): Report object-storage reachability in the readiness check - Open a PR against
mainwithCloses #<this issue number>in the description.
Definition of done
- New readiness field
- Cached, cheap check
- Unit tests
- A
changelog.d/<issue-number>-<short-slug>.mdfragment (seechangelog.d/README.md), and, if models or endpoints changed, the newARCHITECTURE.md§4 /docs/api/README.mdlines in adocs.d/<issue-number>-<short-slug>.mdfragment (seedocs.d/README.md) - CI green
How this will be reviewed
Reviewer checks the probe is a single cheap request and stays within the readiness cache window.
Guidelines
- Claiming: comment to claim before you start, and check nobody else is assigned.
- PR description: say what changed and why, include
Closes #<issue>, and paste test output (plus screenshots for UI work). - Timeframe: open a PR within 7 days of assignment. If you get stuck, say so in the issue early rather than going quiet.
Not blocked by: any other open issue.
- Lingua principale
- TypeScript
- Stelle
- 11
- Fork
- 57
- Merge medio
- 20h 41m
- PR unite (30g)
- 67
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DocForum/docforum-core
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
DocForum/docforum-core#369 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
DocForum/docforum-core#372 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
DocForum/docforum-core#371 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
DocForum/docforum-core#370 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 66/100
DocForum/docforum-core#368 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di DocForum/docforum-core
Issue simili
-
clawsweeper:intake:bug clawsweeper:intake:needs-environment
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
openclaw/openclaw#212827 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
KT-2245 e2e specs that call the backend directly fall back to the developer's own Kronn on :3140Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Use one constant for the 10,000-character input limitForse già presa @NginxL l’ha presa oggi. Apertagood first issue refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
aniru-dh21/snap-validate#51 ·
I maintainer di solito rispondono entro 1 giorno
-
dependencies effort: small good first issue priority: low
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
TMHSDigital/screencast-mcp#509 ·
I maintainer di solito rispondono entro 1 giorno
-
from-review tech-debt testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
blamechris/chroxy#9520 ·
I maintainer di solito rispondono entro 1 giorno