Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

ci: remove test suite from release workflow and add direct typecheck step

0xken155188b9ad6a6b
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d191d13b6..98e2a9509 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -28,8 +28,9 @@ on:
# It is also the escape hatch for a verdict on any branch without opening a PR:
# Actions -> CI -> Run workflow.
workflow_dispatch:
- # release.yml calls this. It also hands the release the Node this suite actually ran on (see
- # below), so a published bundle can never be built on a runtime the tests did not use.
+ # Callable as a reusable workflow. release.yml used to gate on this and take the Node pin from
+ # its output; it no longer does (see the note above `publish` there) and pins the same version
+ # itself, so the output below is kept only for any future caller.
workflow_call:
outputs:
node-version:
@@ -60,7 +61,7 @@ jobs:
steps:
- uses: actions/checkout@v7
- # THE runtime pin for the whole repo — CI and the release bundle read this one line.
+ # THE runtime pin — release.yml's `publish` job carries the same value; bump them together.
#
# It is not a taste in Node versions: it is the version of the MANAGED runtime the shipped CLI
# actually executes on. `harness/runtime/metadata.json` in the release bucket serves
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ac6417b84..abe97464b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -105,8 +105,8 @@ jobs:
echo "metadata_path=$meta" >> "$GITHUB_OUTPUT"
echo "Publishing **$ver** to \`$meta\`" >> "$GITHUB_STEP_SUMMARY"
- # Proving the credential now means a broken one costs seconds instead of a whole test run. Runs
- # beside `version` and `tests`, so it is free in wall clock.
+ # Proving the credential now means a broken one costs seconds instead of a whole bundle+upload.
+ # Runs beside `version`, so it is free in wall clock.
preflight:
runs-on: ubuntu-latest
env:
@@ -149,13 +149,16 @@ jobs:
echo "$GITHUB_RUN_ID" | gcloud storage cp - "$probe"
gcloud storage rm "$probe"
- tests:
- uses: ./.github/workflows/ci.yml
- permissions:
- contents: read
-
+ # No vitest gate here. The full suite (ci.yml) runs on pull requests — but NOTE that ci.yml has no
+ # `push` trigger and main also takes direct pushes, so a tagged commit has NOT necessarily been
+ # through it. What stands between a tag and the fleet is exactly what `publish` runs itself:
+ # `tsc --noEmit` below (esbuild only strips types, it never checks them) and upload-cli.sh's own
+ # bundle/version checks. The vitest run was dropped on 2026-09-11 after v0.2.16_cli was held up
+ # by a slow test on a cold runner rather than by a bug; typecheck stays because it is ~15s and is
+ # the one thing cheap enough to keep in front of a publish that every daemon installs within a
+ # minute and that cannot be undone.
publish:
- needs: [version, tests, preflight]
+ needs: [version, preflight]
runs-on: ubuntu-latest
timeout-minutes: 20
env:
@@ -170,14 +173,20 @@ jobs:
- uses: actions/setup-node@v7
with:
- # The Node the suite just ran on, not a second opinion about which Node is current.
- node-version: ${{ needs.tests.outputs.node-version }}
+ # THE runtime pin — the managed Node the shipped CLI actually executes on (see the same
+ # pin and its full rationale in ci.yml's `pin` step). Bump the two together, never one.
+ node-version: 22.23.2
cache: npm
cache-dependency-path: cli/package-lock.json
- run: npm ci
working-directory: cli
+ # Typecheck only — see the note above `publish` for why this one check stays and vitest does
+ # not. Before auth on purpose: a type error should fail the release without ever touching GCP.
+ - run: npx tsc --noEmit
+ working-directory: cli
+
# Same two-step auth as `preflight` above, and the same cutover note applies: delete the key
# fallback once a release has gone green on federation.
- name: Authenticate to GCP (workload identity federation)