Skip to content

test: stop pinning the release version - #531

Merged
svalleru merged 1 commit into
mainfrom
fix/release-config-test
Sep 16, 2026
Merged

svalleru merged 1 commit into
mainfrom
fix/release-config-test

Conversation

@svalleru

Copy link
Copy Markdown
Contributor

Summary

The release-config unit test asserted the manifest version is exactly 0.1.0, so it fails on every release PR, starting with #530. It now checks the version is SemVer-shaped and that package.json agrees with the manifest, which is the invariant we care about.

Verification

  • vitest run tests/unit/release-config.test.ts passes on main and with the manifest and package.json bumped to 0.2.0 locally.

Unblocks #530. Sponsor: @svalleru.

The manifest moves on every release, so the assertion failed on the first
release PR. Check the shape and that package.json agrees instead.
@cla-bot cla-bot Bot added the cla-signed label Sep 16, 2026
@svalleru
svalleru marked this pull request as ready for review September 16, 2026 17:33
@svalleru
svalleru enabled auto-merge (squash) September 16, 2026 17:33

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, straightforward test change. Reviewed: the loosened assertion in tests/unit/release-config.test.ts now checks manifest version shape via a SemVer regex and confirms package.json still agrees with the manifest, replacing a hardcoded 0.1.0 check that would break on every release bump. The added comment explains the non-obvious rationale rather than restating the code, consistent with CLAUDE.md.

Extended reasoning...

Overview

The diff touches a single unit test file, tests/unit/release-config.test.ts. It renames a test case and replaces a hardcoded expect(manifest['.']).toBe('0.1.0') with a SemVer shape check (/^\d+\.\d+\.\d+$/) plus the existing agreement check between package.json and the manifest.

Security risks

None. This is a test-only change with no production code, no auth/crypto/permissions paths involved, and no external input handling.

Level of scrutiny

Low. The change is small, mechanical, and self-contained — a test assertion loosened to match the actual invariant (semver-shaped, files agree) instead of a specific number that release-please will change on every release. No CODEOWNERS concerns are apparent for a test file, and the PR description's stated verification (test passes on main and with bumped versions locally) matches the visible diff.

Other factors

The regex /^\d+\.\d+\.\d+$/ correctly matches typical semver core versions; it doesn't handle prerelease/build metadata suffixes, but that's consistent with how release-please-manifest.json versions are typically formatted for this repo and not a functional concern. The added comment explains the why (release-please moves the version every release) without restating the what, matching the repo's CLAUDE.md comment guidance. No prior review timeline entries or CHANGES_REQUESTED reviews are present to weigh against approval.

@svalleru
svalleru merged commit 3602a97 into main Sep 16, 2026
10 checks passed
@svalleru
svalleru deleted the fix/release-config-test branch September 16, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants