Claude Code. Any Model. The most powerful AI coding agent now speaks every language.
ci: run the pane suites against the magmux tag the release ships
Jack Rudenko9feb9b62ee0c
diff --git a/.github/magmux.env b/.github/magmux.envnew file mode 100644index 00000000..b35e4b6b--- /dev/null+++ b/.github/magmux.env@@ -0,0 +1,4 @@+# The ONE magmux pin, read by test.yml (the pane suites run against it) and release.yml+# (the binaries ship it), so the magmux that ships is the magmux that was tested.+# Bump it deliberately, after the pane suites pass against the new release.+MAGMUX_TAG=v0.14.0diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 48e81e11..dec6ffdd 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -52,8 +52,9 @@ jobs:# PINNED, never "latest": MCP team slots and create_session run in magmux panes# and need magmux >= MIN_MAGMUX_VERSION (packages/cli/src/pane/pane-launch.ts),# and a new magmux release must not change what an existing claudish tag ships.- # Bump MAGMUX_TAG deliberately, after the pane suites pass against it.- MAGMUX_TAG="v0.14.0"+ # The tag lives in .github/magmux.env, which test.yml installs from too:+ # what ships is what the pane suites ran against.+ set -a; . .github/magmux.env; set +aMIN=$(sed -n 's/^export const MIN_MAGMUX_VERSION = "\(.*\)";$/\1/p' packages/cli/src/pane/pane-launch.ts)if [ -z "$MIN" ]; then echo "MIN_MAGMUX_VERSION not found in pane-launch.ts"; exit 1; fiif [ "$(printf '%s\n%s\n' "$MIN" "${MAGMUX_TAG#v}" | sort -V | head -n 1)" != "$MIN" ]; thendiff --git a/.github/workflows/test.yml b/.github/workflows/test.ymlindex ad91719d..f723e769 100644--- a/.github/workflows/test.yml+++ b/.github/workflows/test.yml@@ -63,15 +63,24 @@ jobs:- name: Install dependenciesrun: bun install --frozen-lockfile- # team-grid.e2e.test.ts resolves magmux via findMagmuxForTest(), which- # checks packages/cli/node_modules/@claudish/magmux-<platform>-<arch>/bin- # then /opt/homebrew/bin then /usr/local/bin. The npm optionalDependency- # packages install as EMPTY DIRECTORIES — no bin/magmux inside — so the- # only candidate that ever resolves is the Homebrew copy. Locally that is- # already present, which is why the gap only showed up on a runner.- # This is the install path team-grid.ts itself points users at.- - name: Install magmux (e2e dependency)- run: brew install MadAppGang/tap/magmux+ # The pane suites run against the SAME magmux the release ships: the tag in+ # .github/magmux.env, which release.yml reads too. The Homebrew+ # tap served whatever was current, so CI could go green against 0.15 while+ # 0.14.0 shipped untested. Installed to /usr/local/bin, a path+ # findMagmuxForTest() and the launcher both search (no Homebrew copy exists on+ # the runner, so nothing earlier in the search shadows it).+ - name: Install the pinned magmux (pane suites)+ run: |+ set -a; . .github/magmux.env; set +a+ ARCH=$(uname -m); case "$ARCH" in (arm64|aarch64) ARCH=arm64;; (x86_64) ARCH=amd64;; esac+ ASSET="magmux_darwin_${ARCH}.tar.gz"+ gh release download "${MAGMUX_TAG}" --repo MadAppGang/magmux --pattern "${ASSET}" --pattern checksums.txt --dir /tmp+ (cd /tmp && grep " ${ASSET}\$" checksums.txt | shasum -a 256 -c -)+ tar xzf "/tmp/${ASSET}" -C /tmp+ sudo install -m 0755 /tmp/magmux /usr/local/bin/magmux+ magmux --version | grep -q "${MAGMUX_TAG#v}" || { echo "installed magmux is not ${MAGMUX_TAG}"; magmux --version; exit 1; }+ env:+ GH_TOKEN: ${{ github.token }}- name: Typecheckrun: bun run typecheck