fix(release): reject empty beta smoke runs

This commit is contained in:
Vincent Koc
2026-05-27 10:34:06 +02:00
parent 158bc697c4
commit 4dfc2cf14a
2 changed files with 11 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ Options:
`;
}
function parseArgs(argv: string[]): Options {
export function parseArgs(argv: string[]): Options {
const options: Options = {
beta: "beta",
model: "openai/gpt-5.4",
@@ -73,6 +73,9 @@ function parseArgs(argv: string[]): Options {
throw new Error(`unknown option: ${arg}`);
}
}
if (options.skipParallels && options.skipTelegram) {
throw new Error("--skip-parallels and --skip-telegram cannot be used together");
}
return options;
}

View File

@@ -1,11 +1,18 @@
import { describe, expect, it } from "vitest";
import {
mergeTelegramProofIntoReleaseBody,
parseArgs,
parseWorkflowRunIdFromOutput,
selectNewestDispatchedRunId,
} from "../../scripts/release-beta-smoke.ts";
describe("release-beta-smoke", () => {
it("rejects runs with both validation lanes skipped", () => {
expect(() => parseArgs(["--skip-parallels", "--skip-telegram"])).toThrow(
"--skip-parallels and --skip-telegram cannot be used together",
);
});
it("parses workflow run urls when gh includes them in dispatch output", () => {
expect(
parseWorkflowRunIdFromOutput(