test(web): enforce one-pass smoke execution
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-07 06:52:11 +08:00
parent 0bc56836c5
commit b088b792a8
3 changed files with 12 additions and 3 deletions

View File

@@ -42,6 +42,14 @@ if (!execute) {
process.exit(0);
}
if (fs.existsSync(reportPath)) {
const previous = JSON.parse(fs.readFileSync(reportPath, "utf8"));
if (previous.planId === plan.planId && Array.isArray(previous.cases) && previous.cases.some((item) => Number(item.attempts ?? 0) > 0)) {
process.stderr.write(`feature-smoke-once-only: plan ${plan.planId} already has recorded attempts; create a new focused-fix batch instead of rerunning\n`);
process.exit(2);
}
}
const startedAt = new Date().toISOString();
const smokeReport = {
schemaVersion: 1,