Add end-to-end coverage for large enclave responses - #8174
Open
Amaury Chamayou (achamayou) with Copilot wants to merge 11 commits into
Open
Add end-to-end coverage for large enclave responses#8174Amaury Chamayou (achamayou) with Copilot wants to merge 11 commits into
Amaury Chamayou (achamayou) with Copilot wants to merge 11 commits into
Conversation
Co-authored-by: achamayou <4016369+achamayou@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add end-to-end test for large HTTP responses
Add end-to-end coverage for large enclave responses
Aug 18, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Amaury Chamayou (achamayou)
approved these changes
Aug 19, 2026
Amaury Chamayou (achamayou)
marked this pull request as ready for review
August 19, 2026 19:06
Copilot started reviewing on behalf of
Amaury Chamayou (achamayou)
August 19, 2026 19:06
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Adds end-to-end coverage for enclave-generated HTTP responses at/above the ringbuffer capacity, to complement existing KV stress tests and close #5039.
Changes:
- Added a new readonly, authenticated
/batch/generateendpoint that returns a response body of requested size. - Added an e2e test that requests 16 MiB and 32 MiB responses and verifies status, size, and boundary bytes before existing stress tests.
- Updated the “run to destruction” entrypoint logic to adjust
max_msg_size_bytesaround the new large-response coverage.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| tests/e2e_batched.py | Adds large-response e2e test and updates max message size configuration around destruction runs. |
| src/apps/batched/src/batched.js | Adds response generator handler that returns a body of requested size. |
| src/apps/batched/app.json | Registers the new /batch/generate endpoint with authn/readonly/no-forwarding settings. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Copilot stopped reviewing on behalf of
Amaury Chamayou (achamayou) due to an error
August 19, 2026 19:27
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Amaury Chamayou (achamayou)
approved these changes
Aug 20, 2026
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.
Existing stress tests cover large requests and KV writes, but not enclave-generated responses near or above ringbuffer capacity.
Changes
memory.circuit_sizeandmemory.max_msg_sizefrom the active primary's rendered configuration.memory.max_msg_size, preserving headroom for QuickJS and response serialization.Closes #5039