flake-stats: add number of merged PRs per day to box #3630
Labels
good first issue
Identifies an issue that has been specifically created or selected for first-time contributors.
help wanted
Identifies an issue that has been specifically created or selected for new contributors.
kind/enhancement
Is your feature request related to a problem? Please describe:
The flake-stats report1 is our main tool to look at flaky tests during the SIG-CI meetings currently. It's been proven extremely useful to get a quick overview about where things go wrong. This is achieved by the overviews that aggregate failures per day and per lane.
Now, sometimes it seems that there are a lot of failures that have occurred on one day, solely being caused by the fact that a lot of PRs have been merged on that day - reason of this is that the sum of failures per day is taken from the flakefinder report which aggregates all the failures of a merged PR towards the day it was merged, and not towards the day the failure itself occurred.
Note
Example: a PR that was created on Dec 21st and is merged on Jan 1st, during that period it's test lanes had been run several times, and there were some unit test failures on those runs. Now, all the failures are accounted towards the day the PR is getting merged, so that exactly that day looks as if a lot of failures occurred at that day - which again is not the case.
Describe the solution you'd like:
By adding the number of merged PRs to a day's numbers we can better spot anomalies - i.e. a high number of test failures even though the number of merged PRs is low might indicate that a flaky or unstable test got introduced.
Thus we want to show the number of PRs that have been merged on the day - added to the box that shows the failures for that day. Sketch:
Additional context:
project-infra/robots/cmd/flake-stats/flake-stats.gohtml
Line 32 in a609d2f
The text was updated successfully, but these errors were encountered: