fix(connectors): honor provider retry deadlines - #7211
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThe PR preserves validated provider retry deadlines when scheduling failed connector syncs, centralizes sanitized retryable HTTP error construction, and improves Atlassian discovery diagnostics.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/lib/atlassian/discovery.ts | Validates accessible-resource entries before selection and gives distinct diagnostics for malformed payloads and credentials with no site grants. |
| apps/sim/lib/knowledge/connectors/sync-engine.ts | Propagates validated retry delays through connector failures and bounds scheduling between the existing failure ladder and one-day ceiling. |
| apps/sim/lib/knowledge/documents/utils.ts | Centralizes bounded retryable HTTP error creation, sanitizes rate-limit diagnostics, cancels omitted bodies, and exposes retry delays through error cause chains. |
| apps/sim/lib/knowledge/documents/secure-fetch.server.ts | Reuses the shared retryable HTTP error builder for SSRF-safe connector requests. |
| apps/sim/lib/knowledge/documents/utils.test.ts | Covers sanitized rate-limit errors, response-body cancellation, retry-deadline extraction, and invalid deadline rejection. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Connector HTTP request] --> B{Retryable response?}
B -- No --> C[Return response]
B -- Yes --> D{Rate limited?}
D -- Yes --> E[Cancel response body]
D -- No --> F[Read bounded diagnostic body]
E --> G[Create sanitized HTTP error]
F --> G
G --> H[Attach validated retry deadline]
H --> I[In-process retry budget]
I --> J{Eventually succeeds?}
J -- Yes --> K[Complete sync]
J -- No --> L[Connector failure update]
L --> M[Schedule at max of failure backoff and bounded provider deadline]
Reviews (2): Last reviewed commit: "fix(connectors): validate retry response..." | Re-trigger Greptile
There was a problem hiding this comment.
All reported issues were addressed across 7 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
waleedlatif1
force-pushed
the
codex/connector-403-investigation
branch
from
August 28, 2026 09:09
aef04c8 to
24ec909
Compare
Collaborator
Author
Collaborator
Author
|
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Type of Change
Testing
bun run type-checkinapps/simbun run lintbun run check:audits(38/38)Checklist