(totalRuns, roundSummaries = [])
| 66 | } |
| 67 | |
| 68 | function serializeAutoRunRoundSummaries(totalRuns, roundSummaries = []) { |
| 69 | return buildAutoRunRoundSummaries(totalRuns, roundSummaries).map((summary) => ({ |
| 70 | ...summary, |
| 71 | failureReasons: [...summary.failureReasons], |
| 72 | })); |
| 73 | } |
| 74 | |
| 75 | function getAutoRunRoundRetryCount(summary) { |
| 76 | return Math.max(0, Number(summary?.attempts || 0) - 1); |
no test coverage detected