fix(execution): make function runs rollout-safe - #7143
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
0666a1f to
8f333f1
Compare
Greptile SummaryThe PR moves trusted Function execution into the workflow owner while retaining the legacy HTTP adapter for rolling deployments.
Confidence Score: 5/5The PR appears safe to merge because no blocking failure eligible for this follow-up review remains. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/lib/function-execution/execute-request.ts | Centralizes the extracted Function request execution implementation used by direct and compatibility paths. |
| apps/sim/executor/execution/engine.ts | Replaces continuous durable cancellation polling with signal subscription and reconnect-aware durable checks. |
| apps/sim/lib/execution/cancellation.ts | Adds signal-driven execution cancellation with initial and reconnection durability checks. |
| apps/sim/app/api/workflows/[id]/executions/[executionId]/stream/route.ts | Implements detachable execution observation with event replay, active-block rehydration, and terminal stream closure. |
| apps/sim/lib/execution/event-buffer.ts | Extends Redis-backed event buffering with signaling, terminal metadata, and active-block snapshots. |
| apps/sim/lib/execution/remote-sandbox/e2b.ts | Adds exact E2B process reconnection and ambiguous-launch classification. |
| apps/sim/lib/execution/remote-sandbox/daytona.ts | Adds stable Daytona command identity, log reattachment, and launch ambiguity handling. |
| apps/sim/executor/handlers/function/function-handler.ts | Routes trusted Function blocks through the direct execution boundary instead of a long internal HTTP request. |
| apps/sim/app/api/function/execute/route.ts | Reduces the Function API route to a compatibility adapter for rolling deployments. |
Sequence Diagram
sequenceDiagram
participant UI as Browser observer
participant Owner as Workflow owner
participant Buffer as Redis event buffer
participant Fn as Function executor
participant Sandbox as Remote sandbox
UI->>Owner: Start workflow
Owner->>Fn: Execute trusted Function directly
Fn->>Sandbox: Launch command once
Sandbox-->>Fn: Stable process identity
Fn-->>Owner: Function result
Owner->>Buffer: Persist and publish execution events
UI->>Buffer: Observe via SSE
UI--xBuffer: Disconnect or refresh
UI->>Buffer: Reconnect with last event ID
Buffer-->>UI: Replay events and active-block state
Reviews (11): Last reviewed commit: "fix(execution): make function runs rollo..." | Re-trigger Greptile
There was a problem hiding this comment.
All reported issues were addressed across 43 files
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
8f333f1 to
6651a0f
Compare
|
@cubic-dev-ai review this PR. Please re-review commit 6651a0f after the addressed feedback and resolved threads. |
@icecrasher321 Incremental reviews are turned off for this repository. Comment |
|
@cubic review |
1 similar comment
|
@cubic review |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
1 similar comment
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
6651a0f to
c64afa8
Compare
|
@cubic review |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
c64afa8 to
890dd4e
Compare
890dd4e to
1b2eec6
Compare
|
@cubic review |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 45 files
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 45 files
Requires human review: Auto-approval blocked by 4 unresolved issues from previous reviews.
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Tip: cubic used a learning from your PR history. Let your coding agent read cubic learnings directly with the cubic MCP.
Re-trigger cubic
1b2eec6 to
4655ef5
Compare
|
@cubic review |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 47 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
0d02d1b to
2238082
Compare
|
@cubic review |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 47 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
2238082 to
79ae70b
Compare
|
@cubic review |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 47 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
79ae70b to
24767fe
Compare
|
@cubic review |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 47 files
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
24767fe to
4016d8e
Compare
|
@cubic review |
@icecrasher321 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
No issues found across 47 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
Summary
Runtime behavior
Testing
The standalone ad hoc rollout harness used for live validation is intentionally not included in this PR.