Add repeated early battle QA reporting

This commit is contained in:
2026-07-05 20:42:40 +09:00
parent 5fbfada47a
commit df74caac17
4 changed files with 179 additions and 3 deletions

View File

@@ -124,6 +124,16 @@ try {
assert(typeof qaReport.generatedAt === 'string' && qaReport.generatedAt.length > 0, `Expected deployed QA report timestamp: ${JSON.stringify(qaReport)}`);
console.log(`Verified QA report ${releaseManifest.qaReport} with ${qaReport.results.length} battles`);
}
if (releaseManifest.qaRepeatReport) {
const qaRepeatReport = await readJsonAsset(targetUrl, releaseManifest.qaRepeatReport);
assert(qaRepeatReport.app === 'heros_web', `Expected deployed QA repeat report app id: ${JSON.stringify(qaRepeatReport)}`);
assert(Array.isArray(qaRepeatReport.runs) && qaRepeatReport.runs.length > 0, `Expected deployed QA repeat report runs: ${JSON.stringify(qaRepeatReport)}`);
assert(
typeof qaRepeatReport.summary?.runs === 'number' && qaRepeatReport.summary.runs === qaRepeatReport.runs.length,
`Expected deployed QA repeat report run summary: ${JSON.stringify(qaRepeatReport)}`
);
console.log(`Verified QA repeat report ${releaseManifest.qaRepeatReport} with ${qaRepeatReport.runs.length} runs`);
}
const relevantLogs = consoleMessages.filter(
(message) => message.type === 'error' || (isWarning(message.type) && relevantLogPattern.test(message.text))