fix(orb): isolate APR transfer probe failures so polls never throw (#8331)#8461
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 #8461 +/- ##
==========================================
- Coverage 92.50% 89.60% -2.90%
==========================================
Files 791 98 -693
Lines 79333 22761 -56572
Branches 23960 3892 -20068
==========================================
- Hits 73386 20396 -52990
+ Misses 4807 2187 -2620
+ Partials 1140 178 -962
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
Warning ⏸️ LoopOver review result - manual review recommendedReview updated: 2026-07-24 15:00:47 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. 🟩 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
probeAprRepoTransfercatches token-mint / fetch failures and returns{ state: "pending" }, making its documented "Never throws" contract true.pollPendingAprRepoTransfersisolates each transfer in try/catch (log + continue) so one bad probe or dependency call cannot abort the rest of the batch.createInstallationToken/fetch, a rejecting probe in a multi-transfer batch, and a rejectingmarkResolvedmid-batch.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 --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.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:
npx vitest run test/unit/orb-apr-repo-transfer.test.ts --coverage --coverage.include=src/orb/apr-repo-transfer.ts→ 100% statements/branches/functions/lines onapr-repo-transfer.ts(36 tests). No UI change.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
N/A — Orb backend poll/probe fix only; no visible UI change.
Notes
console.error(JSON.stringify({ level, event, ... }))convention (apr_repo_transfer_poll_item_failed).