Skip to content
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
aab56de
fix(release): skip already-published packages in artifact verification
claude Nov 18, 2026
21b45b7
fix(signals): a reader linked to a settled source no longer stays pen…
gnovotny Nov 18, 2026
70bbe00
Merge remote-tracking branch 'origin/main' into HEAD
claude Nov 18, 2026
fff489c
Merge old claude/project-thread-vnjtow head (already squashed into ma…
claude Nov 18, 2026
eec58ab
fix(web): send an empty revalidate declaration as a non-empty header
Marve10s Nov 23, 2026
c5eb104
fix(compiler): treat only a leading comment equal to the static marke…
Marve10s Nov 23, 2026
847d742
Merge main into fix-compiler-static-marker-exact (resolve imports wit…
claude Nov 24, 2026
1432183
Merge old claude/project-thread-vnjtow head (already squashed into main)
claude Nov 24, 2026
521cf4a
Merge main into claude/project-thread-vnjtow
claude Nov 24, 2026
6669b9a
fix(web): a server function's ReadableStream result stays a ReadableS…
claude Nov 24, 2026
d2438f9
fix(web): check getReader instead of instanceof ReadableStream
claude Nov 24, 2026
f464217
fix(web): write the empty revalidate header once; digest it to no keys
claude Nov 24, 2026
5327216
Merge remote-tracking branch 'origin/main' into pr-5169
claude Nov 24, 2026
8b88b1a
merge: keep branch history (already squashed into main as #5184)
claude Nov 24, 2026
e0a7702
fix(release): wait for the dispatched compiler binary run before watc…
claude Nov 24, 2026
066feb8
merge: keep branch history (already squashed into main as #5190)
claude Nov 24, 2026
c90009f
fix(release): poll the compiler binary run instead of gh run watch
claude Nov 24, 2026
5de8cc1
merge: keep branch history (already squashed into main as #5191)
claude Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions scripts/release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -118,24 +118,27 @@ if (!packageIsPublished(compiler.name, compiler.version)) {
const runId =
dispatchOutput.match(/actions\/runs\/(\d+)/)?.[1] ?? (await findDispatchedRun(startedAt));

// `gh workflow run` prints the new run's URL as soon as the dispatch is
// accepted, before the run is readable: a `gh run watch` right away can
// 404. Wait until the run resolves, then watch it.
for (let attempt = 0; ; attempt++) {
const visible =
spawnSync("gh", ["run", "view", runId, "--repo", repository, "--json", "status"], {
cwd: process.cwd(),
env: process.env,
stdio: "ignore"
}).status === 0;
if (visible) break;
if (attempt === 30)
throw new Error(`The dispatched compiler binary run ${runId} never became visible.`);
await new Promise(resolve => setTimeout(resolve, 2000));
}

// Poll the run instead of `gh run watch`: right after the dispatch the run,
// and then its jobs, can 404 for a while (both 2.0.4 attempts stopped there).
// A read that fails is retried; only the run's own conclusion decides.
console.log(`Waiting for compiler platform packages: ${runId}`);
run("gh", ["run", "watch", runId, "--repo", repository, "--exit-status"]);
let state;
for (let attempt = 0; attempt < 480; attempt++) {
const view = spawnSync(
"gh",
["run", "view", runId, "--repo", repository, "--json", "status,conclusion"],
{ cwd: process.cwd(), env: process.env, encoding: "utf8" }
);
if (view.status === 0) {
state = JSON.parse(view.stdout);
if (state.status === "completed") break;
}
await new Promise(resolve => setTimeout(resolve, 15000));
}
if (state?.status !== "completed")
throw new Error(`The compiler binary run ${runId} did not finish in two hours.`);
if (state.conclusion !== "success")
throw new Error(`The compiler binary run ${runId} concluded ${state.conclusion}.`);
} else {
console.log(`${compiler.name}@${compiler.version} is already published; skipping binaries.`);
}
Expand Down
Loading