Skip to content

Limit result sizes across factors#3411

Open
fibonacci1729 wants to merge 8 commits intomainfrom
limit-result-sizes
Open

Limit result sizes across factors#3411
fibonacci1729 wants to merge 8 commits intomainfrom
limit-result-sizes

Conversation

@fibonacci1729
Copy link
Collaborator

@fibonacci1729 fibonacci1729 commented Feb 25, 2026

This PR limits buffered response sizes across various factors: sqlite, outbound-pg, outbound-mysql, key-value, llm, outbound-http.

This protects Spin from allocating an arbitrarily large amount of memory to
buffer an incoming query result.

I plan to do the same for other database factors and spin outbound HTTP in later
commits.

Note that I've copied tests/runtime-tests/tests from
https://github.com/fermyon/conformance-tests/tree/main/tests/sqlite since
otherwise tests/test-components/components/sqlite would not be run.
This builds on the corresponding PR for `factor-sqlite` and refactors that a bit
to minimize redundancy.
This builds on the corresponding PRs for `factor-sqlite` and
`factor-outbound-pg`.
This builds on the corresponding PRs for `factor-sqlite`, and
`factor-outbound-pg`, and `factor-outbound-mysql`.
This builds on the corresponding PRs for `factor-sqlite`, and
`factor-outbound-pg`, `factor-outbound-mysql`, and `factor-key-value`.
This builds on the corresponding PRs for `factor-sqlite`, and
`factor-outbound-pg`, `factor-outbound-mysql`, `factor-key-value`, and
`factor-llm`.
This builds on the corresponding PRs for `factor-sqlite`, and
`factor-outbound-pg`, `factor-outbound-mysql`, `factor-key-value`, `factor-llm`,
and `factor-outbound-http`.

Signed-off-by: Brian Hardock <brian.hardock@fermyon.com>
Signed-off-by: Brian Hardock <brian.hardock@fermyon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants