Skip to content
Snippets Groups Projects
Unverified Commit b5af8b9b authored by Mark Bastian's avatar Mark Bastian Committed by GitHub
Browse files

Upload flakes to replay (#38407)

Adds additional logic per [this Slack thread](https://metaboat.slack.com/archives/C052LBPDAF3/p1706613621488479) to upload flake replays.
parent feb534e3
No related branches found
No related tags found
No related merge requests found
......@@ -47,15 +47,19 @@ const defaultConfig = {
filter: r => {
const hasCrashed = r.status === "crashed";
const hasFailed = r.metadata.test?.result === "failed";
const isFlaky =
r.metadata.test?.result === "passed" &&
r.metadata.test.tests.some(r => r.result === "failed");
const randomlyUploadAll =
convertStringToInt(r.metadata.test.run.id) % 10 === 1;
console.log("upload replay ::", {
hasCrashed,
hasFailed,
isFlaky,
randomlyUploadAll,
});
return hasCrashed || hasFailed || randomlyUploadAll;
return hasCrashed || hasFailed || isFlaky || randomlyUploadAll;
},
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment