Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for defer/stream cancellation #2068

Merged
merged 1 commit into from
Nov 10, 2022
Merged

Conversation

ardatan
Copy link
Collaborator

@ardatan ardatan commented Nov 9, 2022

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Nov 9, 2022

⚠️ No Changeset found

Latest commit: 6db3a16

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2022

🚀 Snapshot Release (alpha)

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

Package Version Info
@graphql-yoga/apollo-link 1.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/urql-exchange 1.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/common 3.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/redis-event-target 1.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/typed-event-target 1.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/graphiql 3.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
graphql-yoga 3.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/node 3.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-apollo-inline-trace 1.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-apq 1.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-defer-stream 1.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-persisted-operations 1.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-prometheus 1.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-response-cache 1.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/plugin-sofa 1.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/render-graphiql 3.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎
@graphql-yoga/subscription 3.0.0-alpha-20221109102205-f8c2005a npm ↗︎ unpkg ↗︎

@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2022

✅ Benchmark Results

     ✓ no_errors
     ✓ expected_result

     checks.........................: 100.00% ✓ 191312      ✗ 0    
     data_received..................: 29 MB   950 kB/s
     data_sent......................: 11 MB   367 kB/s
     http_req_blocked...............: avg=1.17µs   min=799ns    med=1µs      max=1.65ms  p(90)=1.4µs    p(95)=1.8µs   
     http_req_connecting............: avg=15ns     min=0s       med=0s       max=1.48ms  p(90)=0s       p(95)=0s      
   ✓ http_req_duration..............: avg=242.4µs  min=167.89µs med=221.09µs max=17.32ms p(90)=269.99µs p(95)=303.32µs
       { expected_response:true }...: avg=242.4µs  min=167.89µs med=221.09µs max=17.32ms p(90)=269.99µs p(95)=303.32µs
     http_req_failed................: 0.00%   ✓ 0           ✗ 95656
     http_req_receiving.............: avg=18.07µs  min=10.4µs   med=16.5µs   max=6.37ms  p(90)=21.2µs   p(95)=24µs    
     http_req_sending...............: avg=6.09µs   min=4.09µs   med=4.89µs   max=3.94ms  p(90)=7.4µs    p(95)=10.1µs  
     http_req_tls_handshaking.......: avg=0s       min=0s       med=0s       max=0s      p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=218.23µs min=148.59µs med=199.39µs max=17.19ms p(90)=241.99µs p(95)=272.39µs
     http_reqs......................: 95656   3188.329253/s
     iteration_duration.............: avg=308.79µs min=217.49µs med=284.79µs max=19.2ms  p(90)=345.09µs p(95)=387.02µs
     iterations.....................: 95656   3188.329253/s
     vus............................: 1       min=1         max=1  
     vus_max........................: 1       min=1         max=1  

@ardatan ardatan changed the title Add tests for defer/stream termination Add tests for defer/stream cancellation Nov 9, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2022

🚀 Website Preview

The latest changes to the website are available as preview in: https://889fd2e8.graphql-yoga.pages.dev

},
next: () =>
sleep(300, (timeout) => timeouts.add(timeout)).then(() => ({
value: String.fromCharCode(charCode++),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of an alphabet array :P

@theguild-bot theguild-bot mentioned this pull request Nov 9, 2022
@ardatan ardatan merged commit 7716cc6 into main Nov 10, 2022
@ardatan ardatan deleted the add-tests-for-defer-stream branch November 10, 2022 12:47
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.

None yet

1 participant