fix(queue): isolate per-repo failures in generateSignalSnapshots - #9363
Conversation
…Nbored#9293) Use Promise.allSettled so one repo's data-gathering or persist error no longer skips siblings in the same multi-repo invocation, then surface an aggregate error listing the failed repos (same shape as JSONbored#8355). Co-authored-by: Cursor <cursoragent@cursor.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9363 +/- ##
==========================================
- Coverage 75.38% 75.35% -0.04%
==========================================
Files 275 276 +1
Lines 58023 58043 +20
Branches 6181 6182 +1
==========================================
- Hits 43739 43736 -3
- Misses 14014 14037 +23
Partials 270 270
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-27 15:22:15 UTC
Review summary Nits — 5 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. Decision record
🟩 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
generateSignalSnapshotsfrom a bare sequentialforloop toPromise.allSettledover per-repo work so one repo's data-gathering or persist failure no longer silently skips every subsequent repo in the same multi-repo invocation.#8355backfill-registered-repospattern: attempt every repo once, log a structuredgenerate_signal_snapshots_repo_failederror per failure, then throw one aggregate error listing the failed repo full names.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.Validation
git diff --checknpx vitest run test/unit/queue-trends.test.ts— 10 passeddiff-covervsorigin/mainonsrc/queue/signal-snapshot.ts— 100% patch lines (32/32)npm run actionlintnpm run typechecknpm run test:coveragenpm audit --audit-level=moderateIf any required check was skipped, explain why:
Focused queue isolation fix; targeted queue-trends coverage includes the multi-repo partial-failure regression. Full
test:cileft for CI.Safety
site/,CNAME,**/lovable/**, or rootCHANGELOG.md.UI Evidence
N/A — backend queue orchestration only; no visible UI change.
Notes for reviewers / gate
fanOutRepoSignalSnapshotJobsor the per-repo queue-job fan-out path.