Only use a single comment for the flakiness report on PRs #46785
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Continued from #45798, instead of posting a comment on each commit, we only post a single comment on PRs.
Why?
How?
This PR updates the system so that it will stop posting comments on commits if it's triggered by PRs. Instead, it will post a single comment on the PR and update it.
One downside of this is that only the latest commit on the PR will be shown in the comment, and other commits will be hidden in the edit history. I think this is acceptable as oftentimes only the latest run is all we care about.
Testing Instructions
This can be tested with a fork on your own repo.
Or you can view an example PR here: kevin940726#43 (comment)
Screenshots or screencast