graphql-mesh icon indicating copy to clipboard operation
graphql-mesh copied to clipboard

Loadtesting E2Es

Open enisdenjo opened this issue 1 month ago • 2 comments

  • Loadtests are regular tests
    • Loadtest filenames match pattern *.loadtest.ts
  • Loadtests is buildless
  • Loadtests are isolated, but should NOT run concurrently making sure they don't interfere
  • No extra tools, just JavaScript
  • Type-safe
  • Easy to set up
  • Automatic cleanup
  • Any E2E and any GraphQL request can be benchmarked
  • Expected thresholds are coded in tests
  • All loadtest requests must be successful (respond with a 200 OK and not contain any GQL errors)

https://github.com/ardatan/graphql-mesh/blob/c60a4e650fd6e6b33d712ff93236f8ecd795f89d/e2e/sqlite-chinook/sqlite-chinook.loadtest.ts#L1-L44

TODO

  • [ ] Loadtest rest of E2Es

enisdenjo avatar May 08 '24 13:05 enisdenjo

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

codesandbox[bot] avatar May 08 '24 13:05 codesandbox[bot]

💻 Website Preview

The latest changes are available as preview in: https://8421a2e7.graphql-mesh.pages.dev

github-actions[bot] avatar May 08 '24 13:05 github-actions[bot]

🚀 Snapshot Release (alpha)

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

Package Version Info
@graphql-mesh/json-schema 0.100.7-alpha-20240514183156-bf92bd7a55730267c588da9d69b37227c33ae841 npm ↗︎ unpkg ↗︎
@graphql-mesh/openapi 0.100.8-alpha-20240514183156-bf92bd7a55730267c588da9d69b37227c33ae841 npm ↗︎ unpkg ↗︎
@graphql-mesh/raml 0.100.7-alpha-20240514183156-bf92bd7a55730267c588da9d69b37227c33ae841 npm ↗︎ unpkg ↗︎
@omnigraph/json-schema 0.100.7-alpha-20240514183156-bf92bd7a55730267c588da9d69b37227c33ae841 npm ↗︎ unpkg ↗︎
@omnigraph/openapi 0.100.8-alpha-20240514183156-bf92bd7a55730267c588da9d69b37227c33ae841 npm ↗︎ unpkg ↗︎
@omnigraph/raml 0.100.7-alpha-20240514183156-bf92bd7a55730267c588da9d69b37227c33ae841 npm ↗︎ unpkg ↗︎

github-actions[bot] avatar May 14 '24 18:05 github-actions[bot]