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

feat: executor from graphql-js #4778

Merged
merged 25 commits into from Oct 27, 2022
Merged

feat: executor from graphql-js #4778

merged 25 commits into from Oct 27, 2022

Conversation

saihaj
Copy link
Collaborator

@saihaj saihaj commented Oct 25, 2022

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Oct 25, 2022

🦋 Changeset detected

Latest commit: 6834a14

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 29 packages
Name Type
@graphql-tools/delegate Patch
@graphql-tools/utils Minor
@graphql-tools/executor Patch
@graphql-tools/batch-delegate Patch
@graphql-tools/links Patch
@graphql-tools/stitch Patch
@graphql-tools/stitching-directives Patch
@graphql-tools/wrap Patch
@graphql-tools/url-loader Patch
@graphql-tools/batch-execute Patch
@graphql-tools/graphql-tag-pluck Patch
@graphql-tools/import Patch
@graphql-tools/load Patch
@graphql-tools/merge Patch
@graphql-tools/mock Patch
@graphql-tools/node-require Patch
@graphql-tools/relay-operation-optimizer Patch
@graphql-tools/resolvers-composition Patch
@graphql-tools/schema Patch
@graphql-tools/apollo-engine-loader Patch
@graphql-tools/code-file-loader Patch
@graphql-tools/git-loader Patch
@graphql-tools/github-loader Patch
@graphql-tools/graphql-file-loader Patch
@graphql-tools/json-file-loader Patch
@graphql-tools/module-loader Patch
@graphql-tools/prisma-loader Patch
federation-benchmark Patch
graphql-tools Patch

Not sure what this means? Click here to learn what changesets are.

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 25, 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-tools/batch-delegate 8.4.2-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/batch-execute 8.5.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/delegate 9.0.9-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/executor 0.0.1-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/graphql-tag-pluck 7.3.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
graphql-tools 8.3.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/import 6.7.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/links 8.3.13-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/load 7.8.1-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/apollo-engine-loader 7.3.14-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/code-file-loader 7.3.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/git-loader 7.2.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/github-loader 7.3.14-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/graphql-file-loader 7.5.6-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/json-file-loader 7.4.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/module-loader 7.2.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/prisma-loader 7.2.25-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/url-loader 7.16.5-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/merge 8.3.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/mock 8.7.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/node-require 6.4.9-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/relay-operation-optimizer 6.5.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/resolvers-composition 6.5.7-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/schema 9.0.5-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/stitch 8.7.14-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/stitching-directives 2.3.12-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/utils 8.13.0-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎
@graphql-tools/wrap 9.2.4-alpha-20221027114856-883e0476 npm ↗︎ unpkg ↗︎

@github-actions
Copy link
Contributor

github-actions bot commented Oct 25, 2022

❌ Benchmark Failed

Performance regression detected: it seems like your Pull Request adds some extra latency to Schema Stitching

If the performance regression is expected, please increase the failing threshold.

     ✓ no_errors
     ✓ expected_result

     checks.........................: 100.00% ✓ 154      ✗ 0  
     data_received..................: 18 MB   1.8 MB/s
     data_sent......................: 66 kB   6.6 kB/s
     http_req_blocked...............: avg=7.09µs   min=3.2µs    med=3.7µs    max=225.8µs  p(90)=5.04µs   p(95)=5.92µs  
     http_req_connecting............: avg=2µs      min=0s       med=0s       max=154.5µs  p(90)=0s       p(95)=0s      
   ✗ http_req_duration..............: avg=122.73ms min=99.94ms  med=115.51ms max=242.61ms p(90)=146.12ms p(95)=172.81ms
       { expected_response:true }...: avg=122.73ms min=99.94ms  med=115.51ms max=242.61ms p(90)=146.12ms p(95)=172.81ms
     http_req_failed................: 0.00%   ✓ 0        ✗ 77 
     http_req_receiving.............: avg=213.47µs min=158µs    med=184µs    max=1.02ms   p(90)=228.12µs p(95)=410.11µs
     http_req_sending...............: avg=115.71µs min=18.8µs   med=32.6µs   max=3.59ms   p(90)=49.6µs   p(95)=70.38µs 
     http_req_tls_handshaking.......: avg=0s       min=0s       med=0s       max=0s       p(90)=0s       p(95)=0s      
     http_req_waiting...............: avg=122.4ms  min=99.71ms  med=115.3ms  max=241.51ms p(90)=145.89ms p(95)=172.58ms
     http_reqs......................: 77      7.670963/s
     iteration_duration.............: avg=130.3ms  min=105.64ms med=123.34ms max=249.01ms p(90)=151.96ms p(95)=179.33ms
     iterations.....................: 77      7.670963/s
     vus............................: 1       min=1      max=1
     vus_max........................: 1       min=1      max=1

@github-actions
Copy link
Contributor

github-actions bot commented Oct 25, 2022

🚀 Website Preview

The latest changes to the website are available as preview in: https://d3e608f6.graphql-tools.pages.dev

@ardatan ardatan marked this pull request as ready for review October 27, 2022 11:21
@ardatan ardatan merged commit df5848b into master Oct 27, 2022
@ardatan ardatan deleted the saihaj/executor branch October 27, 2022 11:59
@@ -0,0 +1,34 @@
import { Maybe } from './types';
Copy link
Contributor

Choose a reason for hiding this comment

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

@ardatan As part of building for ESM you are trying to stick to "all imports have an extension", right? Looks like this line and the MaybePromise import in jsutils.ts are missing the extension, which breaks builds with tsc moduleResolution nodenext.

Copy link
Contributor

Choose a reason for hiding this comment

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

PR on its way to fix and add lint rule.

Copy link
Contributor

Choose a reason for hiding this comment

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

glasser added a commit to glasser/graphql-tools that referenced this pull request Oct 28, 2022
Some pure-ESM processors (eg, `tsc` with `moduleResolution: 'nodenext')
require extensions on all imports. ardatan#4778 added two import-less
extensions. This PR fixes them and adds linting (from an
already-installed plugin) to catch future errors. Test execution does
not appear to require these extensions so we only check non-test files
(there's another 17 errors to fix if you want to check tests too).
glasser added a commit to glasser/graphql-tools that referenced this pull request Oct 28, 2022
Some pure-ESM processors (eg, `tsc` with `moduleResolution: 'nodenext')
require extensions on all imports. ardatan#4778 added two import-less
extensions. This PR fixes them and adds linting (from an
already-installed plugin) to catch future errors. Test execution does
not appear to require these extensions so we only check non-test files
(there's another 17 errors to fix if you want to check tests too).
glasser added a commit to glasser/graphql-tools that referenced this pull request Oct 28, 2022
Some pure-ESM processors (eg, `tsc` with `moduleResolution: 'nodenext')
require extensions on all imports. ardatan#4778 added two import-less
extensions. This PR fixes them and adds linting (from an
already-installed plugin) to catch future errors. Test execution does
not appear to require these extensions so we only check non-test files
(there's another 17 errors to fix if you want to check tests too).
ardatan pushed a commit that referenced this pull request Oct 29, 2022
Some pure-ESM processors (eg, `tsc` with `moduleResolution: 'nodenext')
require extensions on all imports. #4778 added two import-less
extensions. This PR fixes them and adds linting (from an
already-installed plugin) to catch future errors. Test execution does
not appear to require these extensions so we only check non-test files
(there's another 17 errors to fix if you want to check tests too).
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

3 participants