Skip to content

Prepare 0.27.7-next.0 release - #461

Merged
mohanagy merged 4 commits into
nextfrom
release-next-0.27.7-next.0
Jun 1, 2026
Merged

mohanagy merged 4 commits into
nextfrom
release-next-0.27.7-next.0

Conversation

@mohanagy

@mohanagy mohanagy commented Jun 1, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • bump the package to 0.27.7-next.0 and align release docs/registry metadata
  • point prerelease README changelog links at next and add an explicit next publish path
  • extend release hygiene checks so prerelease branches validate next-tagged changelog links

Verification

  • npm run release:verify
  • npm run registry:validate
  • npm run typecheck
  • npm run build
  • CI=1 npm run test:run
  • npm pack --dry-run

Summary by CodeRabbit

  • New Features

    • Added documented federation workflow proof with reproducible fixture and checked-in resources.
    • Updated roadmap with more decision-ready workflow and distribution-channel research.
  • Documentation

    • Updated release notes, README, and publishing docs to reflect prerelease vs stable flows and changelog linking behavior.
    • Aligned registry manifest and “What’s new” content to 0.27.7-next.0.
  • Chores

    • Bumped package to 0.27.7-next.0 and added a publish:next command.
  • Tests

    • Strengthened release hygiene tests to validate prerelease changelog/link behavior.

mohanagy and others added 2 commits June 1, 2026 21:06
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jun 1, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: c9d61431-2f9b-4316-bad6-0fc19c28ed95

📥 Commits

Reviewing files that changed from the base of the PR and between 133b673 and dd8c4fe.

📒 Files selected for processing (1)
  • tests/unit/release-hygiene.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • tests/unit/release-hygiene.test.ts

📝 Walkthrough

Walkthrough

This PR introduces next-track release support for the 0.27.7-next.0 prerelease. The release hygiene script now dynamically routes prerelease versions (containing -) to the next changelog branch instead of hardcoding main. Package manifests are updated with the new version, a publish:next npm script is added, release documentation clarifies the prerelease workflow, and comprehensive tests validate the versioning logic and publication flow.

Changes

Prerelease versioning and next-track release support

Layer / File(s) Summary
Release script versioning logic
.github/scripts/verify-release-hygiene.mjs
New changelogBranchForVersion(version) helper returns next for versions containing - and main otherwise; README "What's new" changelog link validation now uses this helper to dynamically select the correct release branch.
Package manifest and registry updates
package.json, docs/mcp-registry/server.json
Package version bumped to 0.27.7-next.0; new publish:next npm script added to publish with the next dist-tag and public access.
Release process documentation
docs/release.md
Updated "Publish and tag" instructions to handle stable vs prerelease flows separately, with explicit npm publish --tag next guidance for prereleases and a fallback for environments without npm provenance support.
Changelog and release notes
CHANGELOG.md, README.md
New 0.27.7-next.0 changelog entry with two bullets under "Added" and "Changed"; README "What's new" section updated with prerelease context and federation workflow reference.
Test assertions for prerelease support
tests/unit/release-hygiene.test.ts
Added fixture helper and prerelease-specific tests; asserts publish:next script value; extended release docs assertions to include stable vs prerelease guidance; validates that the verification rejects README links pointing at main for prereleases and accepts next links.

Sequence Diagram(s)

No sequence diagram is necessary for this change. The PR modifies release configuration, documentation, and validation logic without introducing new component interactions or control flows that would benefit from visualization.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • mohanagy/madar#440: Both PRs modify the same .github/scripts/verify-release-hygiene.mjs script and its unit tests to adjust how README "What's new" changelog links are validated, now selecting the appropriate branch (next vs main) based on the package version format.

Poem

🐰 A prerelease hops onto the stage,
With next branch marking a new page.
Version dashes guide the way,
Publish scripts ready for the play.
Tests hop in to cheer — all green today!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main objective of preparing the 0.27.7-next.0 release, which aligns directly with the changeset that bumps the package version and aligns all related release documentation and metadata.
Description check ✅ Passed The description covers the main changes and provides verification steps, though it deviates from the template structure by listing custom verification commands instead of the standard template checklist format.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release-next-0.27.7-next.0

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai 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.

🧹 Nitpick comments (1)
tests/unit/release-hygiene.test.ts (1)

101-140: 💤 Low value

Consider extracting the shared fixture setup to reduce duplication.

This prerelease test is a near-copy of the stable-version fixture test at Lines 52-91 (same package.json/README/CHANGELOG scaffolding and execFileSync invocation). A small helper parameterized by version, the README link, and the CHANGELOG heading would keep the two cases in sync as the hygiene script evolves.

Separately, both cases only assert the failure path. A positive assertion (a prerelease README linking blob/next/... passes verification) would more directly prove the next routing rather than just that a main link fails.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/unit/release-hygiene.test.ts` around lines 101 - 140, The two tests in
tests/unit/release-hygiene.test.ts (the "requires prerelease README changelog
links to target next" case and the stable-version fixture) duplicate fixture
setup; extract a small helper (e.g., createReleaseFixture or makeFixture) that
accepts parameters version, readmeLink, and changelogHeading and performs the
mkdtempSync/writeFileSync setup and teardown to reduce duplication, then call
execFileSync(process.execPath, [releaseVerifyScriptPath()], { cwd: fixtureDir,
encoding: 'utf8', stdio: 'pipe' }) as before; also add a positive assertion
variant for the prerelease case that uses a README linking to
blob/.../CHANGELOG.md#...-next... and expects no throw (i.e., verification
passes) to prove the `next` routing works. Ensure references to the test names,
execFileSync call, and releaseVerifyScriptPath are updated to use the helper.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@tests/unit/release-hygiene.test.ts`:
- Around line 101-140: The two tests in tests/unit/release-hygiene.test.ts (the
"requires prerelease README changelog links to target next" case and the
stable-version fixture) duplicate fixture setup; extract a small helper (e.g.,
createReleaseFixture or makeFixture) that accepts parameters version,
readmeLink, and changelogHeading and performs the mkdtempSync/writeFileSync
setup and teardown to reduce duplication, then call
execFileSync(process.execPath, [releaseVerifyScriptPath()], { cwd: fixtureDir,
encoding: 'utf8', stdio: 'pipe' }) as before; also add a positive assertion
variant for the prerelease case that uses a README linking to
blob/.../CHANGELOG.md#...-next... and expects no throw (i.e., verification
passes) to prove the `next` routing works. Ensure references to the test names,
execFileSync call, and releaseVerifyScriptPath are updated to use the helper.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: d7bb6ba3-7dd6-4895-a728-a6154a25ecaf

📥 Commits

Reviewing files that changed from the base of the PR and between 3352de7 and 5f121de.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (7)
  • .github/scripts/verify-release-hygiene.mjs
  • CHANGELOG.md
  • README.md
  • docs/mcp-registry/server.json
  • docs/release.md
  • package.json
  • tests/unit/release-hygiene.test.ts

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mohanagy

mohanagy commented Jun 1, 2026

Copy link
Copy Markdown
Owner Author

Addressed the CodeRabbit note by extracting the temporary release-hygiene fixture setup and adding a positive prerelease case that proves blob/next changelog links pass verification.

@coderabbitai coderabbitai 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.

🧹 Nitpick comments (1)
tests/unit/release-hygiene.test.ts (1)

108-138: 💤 Low value

Optional: fold the repeated execFileSync invocation into the helper.

The same execFileSync(process.execPath, [releaseVerifyScriptPath()], { cwd, encoding, stdio }) block is now duplicated across the three fixture-based tests. Since withReleaseFixture already owns the fixture dir, it could hand the caller a pre-bound runner so each test only declares its toThrow/not.toThrow expectation.

♻️ Sketch
 function withReleaseFixture(
   version: string,
   readmeLink: string,
-  runAssertion: (fixtureDir: string) => void,
+  runAssertion: (runVerify: () => void) => void,
 ): void {
   const fixtureDir = mkdtempSync(join(tmpdir(), 'madar-release-hygiene-'))
   try {
     // ...write fixture files...
-    runAssertion(fixtureDir)
+    runAssertion(() =>
+      execFileSync(process.execPath, [releaseVerifyScriptPath()], {
+        cwd: fixtureDir,
+        encoding: 'utf8',
+        stdio: 'pipe',
+      }),
+    )
   } finally {
     rmSync(fixtureDir, { recursive: true, force: true })
   }
 }

Each test then becomes withReleaseFixture(version, link, (runVerify) => expect(runVerify).toThrow(...)).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/unit/release-hygiene.test.ts` around lines 108 - 138, The tests
duplicate the long execFileSync call; update withReleaseFixture to
accept/provide a pre-bound runner (e.g., runVerify) that encapsulates
execFileSync(process.execPath, [releaseVerifyScriptPath()], { cwd: fixtureDir,
encoding: 'utf8', stdio: 'pipe' }) so callers only call
expect(runVerify).toThrow()/not.toThrow(); change the tests to use the new
callback signature (withReleaseFixture(version, link, (runVerify) => ...)) and
reference the existing helpers releaseVerifyScriptPath and execFileSync when
implementing the runner in withReleaseFixture.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@tests/unit/release-hygiene.test.ts`:
- Around line 108-138: The tests duplicate the long execFileSync call; update
withReleaseFixture to accept/provide a pre-bound runner (e.g., runVerify) that
encapsulates execFileSync(process.execPath, [releaseVerifyScriptPath()], { cwd:
fixtureDir, encoding: 'utf8', stdio: 'pipe' }) so callers only call
expect(runVerify).toThrow()/not.toThrow(); change the tests to use the new
callback signature (withReleaseFixture(version, link, (runVerify) => ...)) and
reference the existing helpers releaseVerifyScriptPath and execFileSync when
implementing the runner in withReleaseFixture.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 0152afa3-816c-4885-962b-6a363f29e84b

📥 Commits

Reviewing files that changed from the base of the PR and between 5f121de and 133b673.

📒 Files selected for processing (1)
  • tests/unit/release-hygiene.test.ts

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mohanagy

mohanagy commented Jun 1, 2026

Copy link
Copy Markdown
Owner Author

Addressed the follow-up nit by moving the repeated release verifier invocation into the shared fixture helper, so the fixture-based tests now only assert pass/fail expectations.

@mohanagy
mohanagy merged commit 091f252 into next Jun 1, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant