Skip to content

test(cloud): exercise addSpec on the full Cloudflare spec through real postgres#278

Merged
RhysSullivan merged 1 commit intomainfrom
rs/cloud-cloudflare-integration
Apr 17, 2026
Merged

test(cloud): exercise addSpec on the full Cloudflare spec through real postgres#278
RhysSullivan merged 1 commit intomainfrom
rs/cloud-cloudflare-integration

Conversation

@RhysSullivan
Copy link
Copy Markdown
Owner

The adapter regressions the rest of this stack fixes weren't caught by
the existing test suite because plugin tests used an in-memory adapter
and the cloud-app integration tests only exercised trivial specs. Add
one test in the existing node-pool harness (real postgres-js + drizzle

  • plugin + HTTP) that posts the 16MB Cloudflare fixture through
    /openapi/specs, asserts >1000 tools land, then removes the source.

Depends on two fixes earlier in this stack:

  • Workers-native fetch + JSON.parse (else parse times out)
  • drizzle native chunked createMany (else writes time out on PGlite)

With both in place the test completes in ~3s locally. Any future
regression that reintroduces per-row inserts, a new N+1 on the
addSpec/removeSpec path, or parse-side network issues will make this
test fail/timeout in the same suite developers already run — no
dedicated budget assertion needed.

…l postgres

The adapter regressions the rest of this stack fixes weren't caught by
the existing test suite because plugin tests used an in-memory adapter
and the cloud-app integration tests only exercised trivial specs. Add
one test in the existing node-pool harness (real postgres-js + drizzle
+ plugin + HTTP) that posts the 16MB Cloudflare fixture through
/openapi/specs, asserts >1000 tools land, then removes the source.

Depends on two fixes earlier in this stack:
- Workers-native fetch + JSON.parse (else parse times out)
- drizzle native chunked createMany (else writes time out on PGlite)

With both in place the test completes in ~3s locally. Any future
regression that reintroduces per-row inserts, a new N+1 on the
addSpec/removeSpec path, or parse-side network issues will make this
test fail/timeout in the same suite developers already run — no
dedicated budget assertion needed.
@RhysSullivan RhysSullivan merged commit 6e4fc79 into main Apr 17, 2026
5 checks passed
@RhysSullivan RhysSullivan deleted the rs/cloud-cloudflare-integration branch April 17, 2026 19:04
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.

1 participant