Repository navigation
feat(edge): stream binary Docker request bodies - #1172
Conversation
…-body # Conflicts: # CHANGELOG.md
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedNext included review available in 33 minutes. View limit detailsLimit details: You’ve used all 2 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (8)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@greptileai Review exact head |
|
| Filename | Overview |
|---|---|
| app/agent/EdgeAgentAdapter.ts | Implements bounded capability-gated body streaming, request correlation, timeout handling, cancellation, and upload-state cleanup. |
| app/agent/AgentClient.ts | Preserves raw request bytes for capable agents while retaining legacy JSON parsing for older agents. |
| app/api/portwing-ws.ts | Filters and forwards agent-advertised capability strings into the edge transport. |
| app/agent/EdgeAgentAdapter.test.ts | Covers byte preservation, chunk pacing, response correlation, limits, timeout, disconnect, write failures, and real-receiver interoperability. |
| scripts/edge-body-interop.sh | Builds a local Portwing receiver and runs the opt-in exact-byte interoperability test. |
| content/docs/current/api/portwing.mdx | Documents capability negotiation, frame sequencing, limits, cancellation behavior, and interoperability testing. |
Reviews (1): Last reviewed commit: "Merge remote-tracking branch 'origin/dev..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
CodeRabbit CLI review completed against I checked the finding against the sender and Portwing receiver. Request/chunk write callbacks finish before Greptile reviewed this same head with no actionable findings. The independent correctness, security, performance, tests, and simplification review was also clean. Actual TypeScript-to-Go interoperability verified all 131,075 binary bytes. Full local test/build hooks passed. This records the real CLI review; the GitHub app has not completed a review. |
biggest-littlest
left a comment
There was a problem hiding this comment.
Reviewed d18bb31 with the recorded CodeRabbit CLI finding verification, clean Greptile result, independent review, and binary interoperability evidence. No actionable findings remain.
ALARGECOMPANY
left a comment
There was a problem hiding this comment.
Reviewed d18bb31 against the documented upload framing and cancellation contract. The timer finding is refuted by frame ordering and the passing boundary tests; Greptile and independent review are clean.
Docker API requests over Portwing edge connections now preserve raw bytes, including tar build contexts. The gateway passes the agent's advertised capabilities to the transport; capable agents receive
bodyStreamrequests, 32 KiB base64 chunks paced by WebSocket write callbacks, and a terminalstream_end. Older agents keep the inline JSON path and reject binary input before sending a request.Uploads are bounded to 512 MiB per body and per connection in aggregate, and stop after 30 seconds without write progress. Timeout, remote rejection, write failure, and disconnect release upload state and stop further chunks. Interrupted uploads send a keyed
request-cancellederror instead ofstream_end; older Portwing agents ignore the error and expire the incomplete upload safely. Cancellation does not stop a Docker operation already dispatched.Tests cover binary/JSON byte preservation, capability negotiation, backpressure, streaming response correlation, limits, late callbacks, timeout, disconnect, and write failures. The opt-in integration test drives the actual Go Portwing receiver over WebSocket and verifies exact binary bytes at a Unix Docker socket. Run
bash scripts/edge-body-interop.sh /path/to/portwing. Independent correctness, security, performance, tests, and simplification review found no issues.Completes the controller half of CodesWhat/portwing#205. This targets
dev/v1.8; stable availability follows the Drydock release for that development line.