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

Check fails with "Graph ... is not a composition variant" #31

Open
sgarner opened this issue Jan 10, 2023 · 1 comment
Open

Check fails with "Graph ... is not a composition variant" #31

sgarner opened this issue Jan 10, 2023 · 1 comment

Comments

@sgarner
Copy link

sgarner commented Jan 10, 2023

Thanks for making this handy action. I had it working fine for a several months, but sometime in the past week the checks have begun to fail on every run with an error that looks like the following. (My last successful run was on 3 Jan 2023.) I haven't changed anything in my GitHub workflow or in the project config in Apollo Studio.

Maybe something has changed on the Apollo side that is breaking this action?

{
  "response": {
    "errors": [
      {
        "message": "Graph my-graph@prod is not a composition variant.",
        "extensions": {
          "code": "INTERNAL_SERVER_ERROR",
          "serviceName": "registry"
        }
      }
    ],
    "data": {
      "service": null
    },
    "status": 200,
    "headers": {}
  },
  "request": {
    "query": "\n    mutation SubgraphCheckMutation(\n      $graph: ID!\n      $variant: String!\n      $serviceName: String!\n      $proposedSchema: PartialSchemaInput!\n      $gitContext: GitContextInput!\n      $queryParameters: HistoricQueryParameters!\n    ) {\n      service(id: $graph) {\n        checkPartialSchema(\n          graphVariant: $variant\n          implementingServiceName: $serviceName\n          partialSchema: $proposedSchema\n          gitContext: $gitContext\n          historicParameters: $queryParameters\n        ) {\n          compositionValidationResult {\n            compositionSuccess\n            errors {\n              message\n              code\n              locations {\n                line\n                column\n              }\n            }\n          }\n          checkSchemaResult {\n            diffToPrevious {\n              severity\n              numberOfCheckedOperations\n              numberOfAffectedOperations\n              changes {\n                severity\n                code\n                description\n              }\n            }\n            targetUrl\n          }\n        }\n      }\n    }\n  ",
    "variables": {
      "config": "",
      "graph": "my-graph",
      "variant": "prod",
      "endpoint": "",
      "headers": "",
      "apolloKey": "***",
      "localSchemaFile": "./schema.graphql",
      "queryCountThreshold": "",
      "queryCountThresholdPercentage": "",
      "serviceName": "api",
      "validationPeriod": "P1W",
      "queryParameters": {
        "from": "604800"
      },
      "proposedSchema": {
        "sdl": "...SNIPPED..."
      },
      "gitContext": {
        "branch": "my-branch",
        "commit": "f023dc73242f4783d686732cdac666824bdd81b3",
        "committer": "sgarner",
        "message": "Merge 34f1e656ede5d3b56c291d93f4b38cbdae53e730 into 212b0831269d1098486146328eb03aa9718a126c",
        "remoteUrl": "https://github.com/sgarner/my-graph/commit/f023dc73242f4783d686732cdac666824bdd81b3"
      }
    }
  }
}
@paulrostorp
Copy link

I am facing the same issue... Did you find a solution @sgarner ?

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

No branches or pull requests

2 participants