Skip to content

Commit f88b9af

Browse files
authored
Fix flakiness detection script typo (#5907)
1 parent 778def8 commit f88b9af

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/flakiness.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,13 @@ await Promise.all(workflows.map(w => checkWorkflowRuns(w)))
9898

9999
// TODO: Report this somewhere useful instead.
100100
if (Object.keys(flaky).length === 0) {
101-
console.log(`*No flaky jobs with at least ${OCCURRENCES} seen in the last ${DAYS > 1 ? `${DAYS} days` : 'day'}*`)
101+
console.log(
102+
`*No flaky jobs with at least ${OCCURRENCES} occurrences seen in the last ${DAYS > 1 ? `${DAYS} days` : 'day'}*`
103+
)
102104
} else {
103-
console.log(`*Flaky jobs with at least ${OCCURRENCES} seen in the last ${DAYS > 1 ? `${DAYS} days` : 'day'}*`)
105+
console.log(
106+
`*Flaky jobs with at least ${OCCURRENCES} occurrences seen in the last ${DAYS > 1 ? `${DAYS} days` : 'day'}*`
107+
)
104108
for (const [workflow, jobs] of Object.entries(flaky).sort()) {
105109
if (!reported.has(workflow)) continue
106110
console.log(`* ${workflow}`)

0 commit comments

Comments
 (0)