Skip to content

Test memory limits for composition worker - #8247

Open
jdolle wants to merge 4 commits into
mainfrom
stitching-mem-test
Open

Test memory limits for composition worker#8247
jdolle wants to merge 4 commits into
mainfrom
stitching-mem-test

Conversation

@jdolle

@jdolle jdolle commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Background

Our composition worker has a strict memory limit. This test is a regression to ensure we don't make changes that exceed the memory limit without knowing it.

Description

I did manual testing to determine that the memory usage is roughly a multiplier of the schema size.

The test generates a schema given a size requirement, and creates a worker based on a multiplier of that schema size.

This adds two checks, both with the same schema size, but with different multipliers. One passes because it's 150x the schema size (5mb schema -> 750mb worker), and the other check errors because the worker is 735mb.

The 150x multiplier is surprising. It seems very high. But based on testing it seems accurate.

@jdolle
jdolle requested a review from n1ru4l July 22, 2026 23:29
@jdolle jdolle self-assigned this Jul 22, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
hive 11.7.1-alpha-20260723190458-a1ce22d05478fab6f03a783d35c266bd68e4e3a6 npm ↗︎ unpkg ↗︎

@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

🐋 This PR was built and pushed to the following Docker images:

Targets: build

Platforms: linux/amd64

Image Tags: 11.7.1-alpha-070c62e, 070c62e, 070c62ed9efb54d442db0ca897df7771425d3beb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant