Skip to content

fix(ci): accept the stable v1 version after a 1.x release - #1751

Merged
Martin Torp (mtorp) merged 1 commit into
v1.xfrom
martin/fix-v1x-ci
Nov 23, 2026
Merged

Martin Torp (mtorp) merged 1 commit into
v1.xfrom
martin/fix-v1x-ci

Conversation

@mtorp

Copy link
Copy Markdown
Contributor

CI on v1.x has been red since the 1.16.0 release (#1745). The release PR set package.json to 1.16.0, and two checks assumed it always holds the 2.1 prerelease version. Both release lanes write that version on v1.x, so after a stable release it is a 1.x version.

  • scripts/test/native.mts compared the native manifest against the raw package.json version. On the 1.x line the native CLI reports SEA_VERSION, which seaVersionForManifestVersion maps to 2.1.0-rc.0. The script now expects SEA_VERSION, which fixes the "Native manifest is for socket@2.1.0-rc.0; expected socket@1.16.0" failure in all three native jobs.
  • test/release-workflow.test.mts required package.json to be 2.1.0-rc.N. It now accepts a stable 1.x version or a 2.1 RC.
  • scripts/refresh/snapshots.mts gets its imports sorted. That was the one eslint error failing Lint Check.

The pre-commit hook also ran biome over test/release-workflow.test.mts, so that file has a few formatting-only changes.

Tests: pnpm test:unit test/release-workflow.test.mts passes. pnpm check:lint has 0 errors. pnpm run test:native:build on darwin-arm64 passes, including the 86 native snapshot tests, with no snapshot changes.

Expected reviewer effort: High-level design decisions

The 1.16.0 release set package.json to a stable 1.x version, and two
checks assumed it always holds the 2.1 prerelease version.

The native test now expects the native CLI to report SEA_VERSION, which
is the configured 2.1 prerelease on the 1.x line. The release workflow
test accepts a version from either lane. The snapshot refresh script
also gets its imports sorted for the lint check.
@cursor

cursor Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Test-runner and workflow-contract adjustments only; no runtime product logic changes.

Overview
CI started failing on the v1.x branch after stable releases because package.json holds 1.x while the native SEA binary still reports SEA_VERSION (the configured 2.1 prerelease).

scripts/test/native.mts now validates the built native artifact and --version output against SEA_VERSION instead of the raw package.json version, matching what the 1.x lane actually builds.

test/release-workflow.test.mts widens the package.json version assertion to allow either a stable 1.x semver or a 2.1.0-rc.N prerelease, reflecting that both release lanes write different versions to the same manifest.

scripts/refresh/snapshots.mts only reorders imports (lint fix).

Reviewed by Cursor Bugbot for commit 5b88d01. Configure here.

@mtorp
Martin Torp (mtorp) merged commit 1e8115e into v1.x Nov 23, 2026
26 checks passed
@mtorp
Martin Torp (mtorp) deleted the martin/fix-v1x-ci branch November 23, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants