Skip to content

Commit 0526b06

Browse files
fix: use provided --run-id instead of generating timestamp
- Removing the function from the .option() declaration - Simplifying the fallback logic to use the provided run-id or generate a timestamp only when no value is provided This should ensure that the workflow can correctly locate and upload the comparison artifacts.
1 parent 58b2929 commit 0526b06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/check-modules/compare/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,13 +283,13 @@ async function runCli () {
283283
.option("--legacy <command>", "Command used to run the legacy pipeline", DEFAULT_LEGACY_COMMAND)
284284
.option("--ts <command>", "Command used to run the TypeScript pipeline", DEFAULT_TS_COMMAND)
285285
.option("--output <path>", "Directory to store comparison artifacts", DEFAULT_OUTPUT_DIR)
286-
.option("--run-id <id>", "Identifier for this comparison run", () => `run-${Date.now()}`)
286+
.option("--run-id <id>", "Identifier for this comparison run")
287287
.action(async (options) => {
288288
const fixturesPath = resolvePath(options.fixtures, DEFAULT_FIXTURE_DIR);
289289
const outputRoot = resolvePath(options.output, DEFAULT_OUTPUT_DIR);
290290
const legacyCommand = options.legacy ?? DEFAULT_LEGACY_COMMAND;
291291
const tsCommand = options.ts ?? DEFAULT_TS_COMMAND;
292-
const runId = typeof options.runId === "function" ? options.runId() : options.runId ?? `run-${Date.now()}`;
292+
const runId = options.runId ?? `run-${Date.now()}`;
293293

294294
await ensurePathExists(fixturesPath);
295295
await mkdir(outputRoot, {recursive: true});

0 commit comments

Comments
 (0)