codeburn/.github/workflows/upgrade-path.yml
Resham Joshi 8262a3ea7d
chore: raise the Node floor to 22.15 and make zstd unconditional (#1846)
* chore: raise the Node floor to 22.15 and make zstd unconditional

Node's built-in zstd in node:zlib arrived in 22.15. With the floor at 22.13
every reader of Codex's compressed .jsonl.zst rollouts had to check for it,
and the daily cache kept a separate generation for Nodes without it so a later
Node upgrade would still re-derive their days. That split could not survive
another cache bump.

The engines field, the launcher's version check, .nvmrc, the README and the
CI pins now say 22.15. The VS Code extension applies the same floor when it
picks a Node to run the CLI, and its runtime notice names it.

Removed: the optional zstd exports, zstdSupported and requireZstd in
fs-utils, the skipped-compressed-rollouts notice in launcher-homes, and the
76/77 split in the daily cache, which is now 77 for every Node.

* docs: say 22.15 wherever the Node floor is stated
2026-11-04 17:37:28 +01:00

51 lines
1.9 KiB
YAML

name: Upgrade path
# Every existing user upgrading from the last published CLI (0.9.20) crosses the
# session-cache v7 -> v9 re-layout and the daily-cache v17 -> v19 re-derivation on
# their first run. Unit tests cover the migration in isolation on one platform; this
# job proves it against a cache that the REAL 0.9.20 binary wrote, on all three
# platforms, at both the package floor and the newest 22.x.
on:
pull_request:
paths:
- 'src/**'
- 'scripts/upgrade-path/**'
- '.github/workflows/upgrade-path.yml'
workflow_dispatch:
jobs:
upgrade-path:
runs-on: ${{ matrix.os }}
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# Package floor (zstd is built in from 22.15), and the newest 22.x.
node-version: [22.15.0, 22]
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
# dist/cli.js + dist/parse-worker.js. The dash bundle is not exercised by
# any command this job runs, so the full `npm run build` is not paid for.
- run: npm run build:cli
- name: Upgrade path from codeburn@0.9.20
run: npm run verify:upgrade
env:
# Under runner.temp so the artifact step below can find it. The space
# is deliberate: a real Windows HOME almost always has one.
UPGRADE_PATH_WORK: ${{ runner.temp }}/codeburn upgrade path
- name: Upload payloads on failure
if: failure()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: upgrade-path-${{ matrix.os }}-node${{ matrix.node-version }}
path: ${{ runner.temp }}/codeburn upgrade path/payloads
if-no-files-found: ignore