Repository navigation
fix(ci): accept the stable v1 version after a 1.x release - #1751
Conversation
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.
PR SummaryLow Risk Overview
Reviewed by Cursor Bugbot for commit 5b88d01. Configure here. |
CI on
v1.xhas been red since the 1.16.0 release (#1745). The release PR setpackage.jsonto1.16.0, and two checks assumed it always holds the 2.1 prerelease version. Both release lanes write that version onv1.x, so after a stable release it is a 1.x version.scripts/test/native.mtscompared the native manifest against the rawpackage.jsonversion. On the 1.x line the native CLI reportsSEA_VERSION, whichseaVersionForManifestVersionmaps to2.1.0-rc.0. The script now expectsSEA_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.mtsrequiredpackage.jsonto be2.1.0-rc.N. It now accepts a stable 1.x version or a 2.1 RC.scripts/refresh/snapshots.mtsgets 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.mtspasses.pnpm check:linthas 0 errors.pnpm run test:native:buildon darwin-arm64 passes, including the 86 native snapshot tests, with no snapshot changes.Expected reviewer effort: High-level design decisions