fix(selfhost): bound s3-blob-store fetch calls with a per-attempt timeout (#8362)#8442
Conversation
|
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 #8442 +/- ##
==========================================
- Coverage 92.42% 89.59% -2.84%
==========================================
Files 791 98 -693
Lines 79294 22728 -56566
Branches 23950 3877 -20073
==========================================
- Hits 73291 20363 -52928
+ Misses 4866 2187 -2679
+ Partials 1137 178 -959
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-24 13:47:26 UTC
Review summary Nits — 4 non-blocking
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.
|
Summary
src/selfhost/qdrant-vectorize.ts'sQDRANT_FETCH_TIMEOUT_MS/signal: AbortSignal.timeout(...), andsrc/selfhost/ai.ts).src/selfhost/s3-blob-store.ts's threeclient.fetch()calls (get,put,delete) carried no timeout at all — a misconfigured or unreachable S3-compatible endpoint could hang each call indefinitely, which in turn hangs the screenshot/visual-review pipeline that depends on this store. Added aS3_FETCH_TIMEOUT_MSconstant and passedsignal: AbortSignal.timeout(S3_FETCH_TIMEOUT_MS)to all three calls, mirroring the qdrant-vectorize pattern exactly.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Closes #8362
Validation
git diff --checknpm run typechecknpx vitest run test/unit/selfhost-s3-blob-store.test.ts --coverage --coverage.include="src/selfhost/s3-blob-store.ts"— all 17 tests pass (14 pre-existing + 3 new), 100% branch coverage on the changed filenpm run actionlintnpm 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:
src/selfhost/s3-blob-store.tsand its unit test (no UI/MCP/worker/OpenAPI surface touched), so the UI/MCP/workers/OpenAPI-specific checks above were not run locally; they are unaffected by this diff and are still exercised by the full CI gate.Safety
UI Evidencesection below. (N/A — no visible UI change.)UI Evidence
N/A — this is a backend adapter change with no visible UI surface.
Notes
aws4fetch'sretries: 3option and all other client configuration are untouched, per the issue's own scope note.