Skip to content

Conversation

@mdebbar
Copy link
Contributor

@mdebbar mdebbar commented Jan 12, 2022

Relanding #1505
Was reverted in #1541

The entire original PR is in the first commit. All subsequent commits are the additional changes in the relanding.

The original PR was reverted because the GraphQL query was broken:

OperationException(
  linkException: null,
  graphqlErrors: [
    GraphQLError(message: Variable $sRepoOwner is used by ChecksForPullRequest but not declared, locations: [ErrorLocation(line: 2, column: 21)], path: [query ChecksForPullRequest, repository, owner], extensions: {code: variableNotDefined, variableName: sRepoOwner}),
    GraphQLError(message: Variable $sRepoName is used by ChecksForPullRequest but not declared, locations: [ErrorLocation(line: 2, column: 40)], path: [query ChecksForPullRequest, repository, name], extensions: {code: variableNotDefined, variableName: sRepoName})
  ]
)

@mdebbar
Copy link
Contributor Author

mdebbar commented Jan 12, 2022

I couldn't find a way to write a test for the graphql error (any ideas?).

So I'm trying to run it locally or in staging to confirm that it works with no issues.

@mdebbar
Copy link
Contributor Author

mdebbar commented Jan 12, 2022

@Piinks I deployed an instance of flutter-dashboard containing this PR. I sent a curl request to /api/push-gold-status-to-github to test.

The result was some spam messages on some old still-open PRs :P but it's working and the flutter-gold check is applied to flutter and engine PRs.

Example in flutter/engine: https://github.com/flutter/engine/pull/30816/checks.

@CaseyHillers
Copy link
Contributor

I couldn't find a way to write a test for the graphql error (any ideas?).

\cc @godofredoc

You could write an integration test that does an example graphql run and tries to process the response. That would require us to enable LUCI to have access to /api/query-github-graphql.

@mdebbar mdebbar added the waiting for tree to go green Merge PR when tree becomes green via fluttergithubbot label Jan 14, 2022
@fluttergithubbot fluttergithubbot merged commit 481ad34 into flutter:main Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting for tree to go green Merge PR when tree becomes green via fluttergithubbot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants