fix(orb): isolate per-installation failures in config-push relay fan-out - #8927
Conversation
The POST /v1/app/fleet/config-push handler fanned out up to 500 enqueueConfigPushRelay calls inside a bare Promise.all with no per-target guard. One installation's DB write throwing aborted the whole request -- the audit event and the response for the other ~499 targets were silently dropped, with no partial-success report. Wrap each target in its own try/catch (matching pollPendingAprRepoTransfers' per-item isolation) so one bad row can't sink the batch. Each failure is audited via a per-installation operator.config_push_target_failed event, and the summary audit plus the response now report succeededCount and the failedInstallationIds. Closes JSONbored#8880
|
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 #8927 +/- ##
==========================================
+ Coverage 90.56% 91.01% +0.45%
==========================================
Files 96 97 +1
Lines 22490 24940 +2450
Branches 3884 4673 +789
==========================================
+ Hits 20367 22700 +2333
- Misses 1945 1975 +30
- Partials 178 265 +87
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-26 13:48:12 UTC
Review summary Nits — 3 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.
|
fix(orb): isolate per-installation failures in config-push relay fan-out
The POST /v1/app/fleet/config-push handler fanned out up to 500
enqueueConfigPushRelay calls inside a bare Promise.all with no per-target
guard. One installation's DB write throwing aborted the whole request --
the audit event and the response for the other ~499 targets were silently
dropped, with no partial-success report.
Wrap each target in its own try/catch (matching pollPendingAprRepoTransfers'
per-item isolation) so one bad row can't sink the batch. Each failure is
audited via a per-installation operator.config_push_target_failed event,
and the summary audit plus the response now report succeededCount and the
failedInstallationIds.
Closes #8880
Validation
Verified locally on this branch before opening:
npm run typechecknpx turbo run build:tsc build:verifynpm run test:coverage— patch coverage 100.0% of changed lines