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
fix: graphql v16 support #2761
fix: graphql v16 support #2761
Conversation
@jgillick Thanks very much for tracking down the cause of the breakage and for starting this! If I attempt to run the current tests with graphql@16.5.0 then they fail, because the test code is still attempting to use positional arguments:
We use https://github.com/watson/test-all-versions to test the APM agent against all/most supported versions of the modules that we instrument. This PR should eventually update .tav.yml to include graphql@16. However, before that, when reviewing your change, I noticed that the I have a proposed patch to add on top of your changes: https://gist.github.com/trentm/ee7d2d5f7c7a98917b362c405830c84b
Would you be willing to apply this patch to your PR branch? Then I can get the full test suite running on this PR. Thanks. |
Hi @trentm, thank you for the patch! It's been applied and pushed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will still need a .tav.yml update at least, but good to get tests going.
/test |
@jgillick Thanks. This got further, but testing with graphql@16 and node@10 fails because graphql dropped support for node 10 and earlier.
Here is a second proposed patch: https://gist.github.com/trentm/1fdbdac639d7db58933374d0c269d78a
Please add this to your branch and I'll get the tests running again. |
@trentm Thanks for your help with this PR. Your patch has been applied. I've not used tav before, but that setup is pretty cool. |
@jgillick Thanks. Here is another proposed patch for you: https://gist.github.com/trentm/f544d984c512543765ce5723f5ac7603 This fixes a crash in a test case for the relatest |
@elasticmachine, run elasticsearch-ci/docs |
run module tests for graphql,express-graphql |
@jgillick Thanks very much! |
Thank you for all of your help @trentm! |
The changes in #2761 to support graphql@16 accidentally broken instrumentation for really old graphql (versions before 0.10.0). This wasn't noticed because the .tav.yml block for older graphql versions didn't have `name: graphql`, so it was never run in CI.
The changes in #2761 to support graphql@16 accidentally broken instrumentation for really old graphql (versions before 0.10.0). This wasn't noticed because the .tav.yml block for older graphql versions didn't have `name: graphql`, so it was never run in CI.
Adds support for graph16.
From what I could tell, this broke because graphql dropped support for positional arguments, and the APM agent was forcing the arg object to be converted to positional args.
This PR simply passes the args straight through to graphql, just as they are passed to it.
Fixes: #2508
Checklist