mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-23 04:57:17 +01:00
Make re-run flaky tests work with CI Security workflow
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user