From 408c0f95010b9b79c2c713919818411544e432f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Such=C3=A1nek?= <16311043+immakermatty@users.noreply.github.com> Date: Tue, 17 Nov 2026 20:15:01 +0000 Subject: [PATCH 1/4] ci(lazurio): build the darwin-arm64 archive on the release's own Mac runner Since 2026-11-16 12:29 UTC no macos-15 job in this repository has got a GitHub-hosted runner (#218), so stable 0.1.9-lazurio.1 cannot build its darwin-arm64 archive. The release owner approved a temporary self-hosted runner (label lazurio-release-macos, registered ephemerally for one job) and this one-line exception: only the runner label changes, the application code is the accepted tree of cf662620. A self-hosted runner that also carries the macos-15 label does not take the job: GitHub keeps macos-15 jobs in its hosted queue (tested on run 44166261679, 2026-11-17 20:10-20:13 UTC). Co-Authored-By: Claude Opus 5.5 --- .github/workflows/lazurio-cli-archives.yml | 2 +- scripts/lazurio-release-contract.test.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lazurio-cli-archives.yml b/.github/workflows/lazurio-cli-archives.yml index 145b4470090fe..dddbd10f0a215 100644 --- a/.github/workflows/lazurio-cli-archives.yml +++ b/.github/workflows/lazurio-cli-archives.yml @@ -44,7 +44,7 @@ jobs: transcribe_native: linux-x64-cpu-vulkan transcribe_library: libtranscribe.so - key: darwin-arm64 - runner: macos-15 + runner: lazurio-release-macos platform: mac arch: arm64 rust_target: aarch64-apple-darwin diff --git a/scripts/lazurio-release-contract.test.mjs b/scripts/lazurio-release-contract.test.mjs index 65acdaae1a149..b3fb7583ff473 100644 --- a/scripts/lazurio-release-contract.test.mjs +++ b/scripts/lazurio-release-contract.test.mjs @@ -293,7 +293,7 @@ NodeTest.test("archives are built with upstream's own release steps", () => { NodeAssert.match(archives, /on:\n {2}workflow_call:/); NodeAssert.match(archives, /^permissions:\n {2}contents: read\n {2}id-token: none/m); NodeAssert.match(archives, /key: linux-x64\n {12}runner: ubuntu-24\.04/); - NodeAssert.match(archives, /key: darwin-arm64\n {12}runner: macos-15/); + NodeAssert.match(archives, /key: darwin-arm64\n {12}runner: lazurio-release-macos/); const stamp = archives.indexOf('node scripts/update-release-package-versions.ts "$VERSION"'); NodeAssert.ok(stamp > 0 && stamp < archives.indexOf("vp run --filter t3 build")); NodeAssert.match(archives, /node apps\/server\/scripts\/cli\.ts build-exe/); From c87b6ef18c0a6d42854d2745cfceb5c61d719af4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Such=C3=A1nek?= <16311043+immakermatty@users.noreply.github.com> Date: Tue, 17 Nov 2026 20:36:44 +0000 Subject: [PATCH 2/4] ci(lazurio): only the release builds darwin-arm64 on its own Mac Review of #220: fork CI calls the archives workflow for every pull request, so with the label in the matrix a pull request's code would run on the Mac that builds releases, and an ephemeral registration neither wipes nor isolates that machine. The darwin runner is now an input that defaults to GitHub's macos-15; only lazurio-release.yml passes lazurio-release-macos, and the contract test checks that fork CI never sets it. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/lazurio-cli-archives.yml | 7 ++++++- .github/workflows/lazurio-release.yml | 1 + scripts/lazurio-release-contract.test.mjs | 10 +++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lazurio-cli-archives.yml b/.github/workflows/lazurio-cli-archives.yml index dddbd10f0a215..2f71dca75127b 100644 --- a/.github/workflows/lazurio-cli-archives.yml +++ b/.github/workflows/lazurio-cli-archives.yml @@ -22,6 +22,11 @@ on: required: false default: ${{ github.repository }} type: string + darwin_runner: + description: Runner for the darwin-arm64 build; only the release passes its own Mac, pull requests keep GitHub's + required: false + default: macos-15 + type: string permissions: contents: read @@ -44,7 +49,7 @@ jobs: transcribe_native: linux-x64-cpu-vulkan transcribe_library: libtranscribe.so - key: darwin-arm64 - runner: lazurio-release-macos + runner: ${{ inputs.darwin_runner }} platform: mac arch: arm64 rust_target: aarch64-apple-darwin diff --git a/.github/workflows/lazurio-release.yml b/.github/workflows/lazurio-release.yml index 7d1d713e88de6..f6a50ebf8638b 100644 --- a/.github/workflows/lazurio-release.yml +++ b/.github/workflows/lazurio-release.yml @@ -128,6 +128,7 @@ jobs: with: version: ${{ inputs.version }} source_sha: ${{ inputs.source_sha }} + darwin_runner: lazurio-release-macos publish: name: Publish release and image diff --git a/scripts/lazurio-release-contract.test.mjs b/scripts/lazurio-release-contract.test.mjs index b3fb7583ff473..b769373494545 100644 --- a/scripts/lazurio-release-contract.test.mjs +++ b/scripts/lazurio-release-contract.test.mjs @@ -293,7 +293,15 @@ NodeTest.test("archives are built with upstream's own release steps", () => { NodeAssert.match(archives, /on:\n {2}workflow_call:/); NodeAssert.match(archives, /^permissions:\n {2}contents: read\n {2}id-token: none/m); NodeAssert.match(archives, /key: linux-x64\n {12}runner: ubuntu-24\.04/); - NodeAssert.match(archives, /key: darwin-arm64\n {12}runner: lazurio-release-macos/); + // Only the release builds darwin-arm64 on its own Mac (Lazurio/t3code#218); pull requests keep + // GitHub's macos-15, so no pull request's code runs on the machine that builds releases. + NodeAssert.match(archives, /key: darwin-arm64\n {12}runner: \$\{\{ inputs\.darwin_runner \}\}/); + NodeAssert.match(archives, /darwin_runner:\n(?: {8}.*\n)*? {8}default: macos-15\n/); + NodeAssert.match( + release, + /source_sha: \$\{\{ inputs\.source_sha \}\}\n {6}darwin_runner: lazurio-release-macos\n/, + ); + NodeAssert.doesNotMatch(ci, /darwin_runner/); const stamp = archives.indexOf('node scripts/update-release-package-versions.ts "$VERSION"'); NodeAssert.ok(stamp > 0 && stamp < archives.indexOf("vp run --filter t3 build")); NodeAssert.match(archives, /node apps\/server\/scripts\/cli\.ts build-exe/); From d171e3b39445b7c2d9d3726c8f1b568cc4eaf566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Such=C3=A1nek?= <16311043+immakermatty@users.noreply.github.com> Date: Tue, 17 Nov 2026 21:20:04 +0000 Subject: [PATCH 3/4] ci(lazurio): the linux-x64 launcher check runs without the darwin build Review of #220: launcher needs the whole build matrix, so a darwin job cancelled for lack of a runner (#218) skipped the required Linux launcher install and smoke test, which GitHub counts as passed. It needs only the linux-x64 archive, so it now runs unless the workflow is cancelled; a failed linux-x64 build still fails it through the missing artifact. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/lazurio-cli-archives.yml | 3 +++ scripts/lazurio-release-contract.test.mjs | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/lazurio-cli-archives.yml b/.github/workflows/lazurio-cli-archives.yml index 2f71dca75127b..bd9f570f29805 100644 --- a/.github/workflows/lazurio-cli-archives.yml +++ b/.github/workflows/lazurio-cli-archives.yml @@ -193,6 +193,9 @@ jobs: launcher: name: Launcher install linux-x64 needs: build + # Needs only the linux-x64 archive: a darwin job without a runner (#218) must not skip it, and + # a failed linux-x64 build still fails this job when its artifact is missing. + if: ${{ !cancelled() }} runs-on: ubuntu-24.04 timeout-minutes: 20 env: diff --git a/scripts/lazurio-release-contract.test.mjs b/scripts/lazurio-release-contract.test.mjs index b769373494545..f5365ea8585e0 100644 --- a/scripts/lazurio-release-contract.test.mjs +++ b/scripts/lazurio-release-contract.test.mjs @@ -302,6 +302,10 @@ NodeTest.test("archives are built with upstream's own release steps", () => { /source_sha: \$\{\{ inputs\.source_sha \}\}\n {6}darwin_runner: lazurio-release-macos\n/, ); NodeAssert.doesNotMatch(ci, /darwin_runner/); + NodeAssert.match( + archives, + /name: Launcher install linux-x64\n {4}needs: build\n(?: {4}#.*\n)* {4}if: \$\{\{ !cancelled\(\) \}\}\n/, + ); const stamp = archives.indexOf('node scripts/update-release-package-versions.ts "$VERSION"'); NodeAssert.ok(stamp > 0 && stamp < archives.indexOf("vp run --filter t3 build")); NodeAssert.match(archives, /node apps\/server\/scripts\/cli\.ts build-exe/); From 6f2d89661137eea63595aa78c6a503983ad71c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20Such=C3=A1nek?= <16311043+immakermatty@users.noreply.github.com> Date: Tue, 17 Nov 2026 22:26:33 +0000 Subject: [PATCH 4/4] ci(lazurio): record the darwin exception and its end beside the workflow lines Review of #220: the temporary exception and the condition that ends it now stand next to the lines they explain. No behaviour changes; the contract test lets comment lines precede the release's darwin_runner. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/lazurio-cli-archives.yml | 3 ++- .github/workflows/lazurio-release.yml | 3 +++ scripts/lazurio-release-contract.test.mjs | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lazurio-cli-archives.yml b/.github/workflows/lazurio-cli-archives.yml index bd9f570f29805..8036304fa8380 100644 --- a/.github/workflows/lazurio-cli-archives.yml +++ b/.github/workflows/lazurio-cli-archives.yml @@ -194,7 +194,8 @@ jobs: name: Launcher install linux-x64 needs: build # Needs only the linux-x64 archive: a darwin job without a runner (#218) must not skip it, and - # a failed linux-x64 build still fails this job when its artifact is missing. + # a failed linux-x64 build still fails this job when its artifact is missing. Part of the #220 + # exception by the coordinating agent under the release owner's night mandate (#185). if: ${{ !cancelled() }} runs-on: ubuntu-24.04 timeout-minutes: 20 diff --git a/.github/workflows/lazurio-release.yml b/.github/workflows/lazurio-release.yml index f6a50ebf8638b..19fa2858559cb 100644 --- a/.github/workflows/lazurio-release.yml +++ b/.github/workflows/lazurio-release.yml @@ -128,6 +128,9 @@ jobs: with: version: ${{ inputs.version }} source_sha: ${{ inputs.source_sha }} + # Temporary exception (Lazurio/t3code#218, #185, #220): hosted macos-15 gets no runner here, so the + # release builds darwin-arm64 on its own ephemeral Mac and the darwin PR check is not required. + # Both are undone when a whole release or preview run gets a hosted macOS runner and passes. darwin_runner: lazurio-release-macos publish: diff --git a/scripts/lazurio-release-contract.test.mjs b/scripts/lazurio-release-contract.test.mjs index f5365ea8585e0..4dce8c8c88c99 100644 --- a/scripts/lazurio-release-contract.test.mjs +++ b/scripts/lazurio-release-contract.test.mjs @@ -299,7 +299,7 @@ NodeTest.test("archives are built with upstream's own release steps", () => { NodeAssert.match(archives, /darwin_runner:\n(?: {8}.*\n)*? {8}default: macos-15\n/); NodeAssert.match( release, - /source_sha: \$\{\{ inputs\.source_sha \}\}\n {6}darwin_runner: lazurio-release-macos\n/, + /source_sha: \$\{\{ inputs\.source_sha \}\}\n(?: {6}#.*\n)* {6}darwin_runner: lazurio-release-macos\n/, ); NodeAssert.doesNotMatch(ci, /darwin_runner/); NodeAssert.match(