Make re-run flaky tests work with CI Security workflow

This commit is contained in:
Jordan Dominion
2024-08-18 08:50:36 -04:00
parent 84960027c2
commit b71e3f407e
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -38,7 +38,9 @@ export async function rerunFlakyTests({ github, context }) {
const filteredFailingJobs = failingJobs.filter((job) => {
console.log(`Failing job: ${job.name}`)
return CONSIDERED_JOBS.some((title) => job.name.startsWith(title));
return CONSIDERED_JOBS
.flatMap(jobName => [jobName, 'CI Pipeline / ' + jobName])
.some((title) => job.name.startsWith(title));
});
if (filteredFailingJobs.length !== failingJobs.length) {
console.log("One or more failing jobs are NOT designated flaky. Not rerunning.");