Use search API to find matching PR for ci.yaml validation reruns#2402
Use search API to find matching PR for ci.yaml validation reruns#2402auto-submit[bot] merged 10 commits intoflutter:mainfrom
Conversation
| } | ||
|
|
||
| /// Finds all check suites that are associated with a given git [ref]. | ||
| Future<Stream<github.CheckSuite>> listCheckSuitesForRef( |
There was a problem hiding this comment.
Can you suggest how I should test this? I added a test for searchIssuesAndPRs to validate that it encodes the query properly, but for listCheckSuitesForRef and getPullRequest I can't think of anything since they just forward the call unconditionally.
|
Setting to draft while I fix the scheduler test. |
godofredoc
left a comment
There was a problem hiding this comment.
Can we manually release a version to test this change?
I was able to deploy it and successfully perform a ci.yaml validation rerun on flutter/flutter#118690. 😄 The only hitch is that previously failed webhook events which requested to rerun ci.yaml keep being retried. The problem is that the PRs associated are already closed or have had a new commit, which invalidates the check suite. This causes the event processing to fail and is causing looping retries. I think we might have to drain those events. |
You can take a look at the subscription, it may already be configured to auto drop messages older than 24h |

According to flutter/flutter#100081, this should fix ci.yaml validation errors.
Pre-launch Checklist
///).