Skip to content

fix(release): auto-sync the UI's MCP version copy after every mcp publish#7135

Merged
JSONbored merged 1 commit into
mainfrom
fix/mcp-publish-sync-ui-version-copy
Jul 17, 2026
Merged

fix(release): auto-sync the UI's MCP version copy after every mcp publish#7135
JSONbored merged 1 commit into
mainfrom
fix/mcp-publish-sync-ui-version-copy

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

`apps/loopover-ui/src/lib/mcp-package.ts`'s `MCP_PACKAGE_KNOWN_LATEST_VERSION` (`ui:version-audit`, already CI-enforced) goes stale the moment mcp publishes a new version -- and since nothing updated it automatically, that showed up as a completely unrelated PR's CI turning red with zero connection to what it actually changed. Confirmed live: an auto-generated release PR for a DIFFERENT package hit this exact gap twice in one session (#7115 and #7134).

Can't be pre-synced in the Release PR itself: the value must never claim a version ahead of what's actually on npm (the check's own header comment already establishes this), so the earliest correct moment to update it is right after publish succeeds. Adds a `sync-ui-version-copy` job to `publish-mcp.yml` that runs after a successful publish and opens a small PR if the copy is now stale -- never pushes to main directly, since this repo's branch protection requires PRs.

Test plan

  • `npm run actionlint` -- clean
  • Confirmed `scripts/check-ui-mcp-version-copy.mjs` has zero npm dependencies (only `node:fs`/`node:path`/`node:https`/`node:url`), so the new job correctly needs no `npm ci` step
  • Workflow-only change; not measured by Codecov. Real verification: the next mcp publish should open this PR automatically instead of silently going stale.

…lish

apps/loopover-ui/src/lib/mcp-package.ts's MCP_PACKAGE_KNOWN_LATEST_VERSION
(ui:version-audit, already CI-enforced) goes stale the moment mcp publishes
a new version -- and since nothing updated it automatically, that showed
up as a completely unrelated PR's CI turning red with zero connection to
what it actually changed (confirmed live: an auto-generated release PR
for a DIFFERENT package hit this exact gap twice in one session, #7115
and #7134).

Can't be pre-synced in the Release PR itself: the value must never claim
a version ahead of what's actually on npm (the check's own header comment
already establishes this), so the earliest correct moment to update it is
right after publish succeeds. Opens a small PR instead of pushing to main
directly, since this repo's branch protection requires PRs.
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.75%. Comparing base (237530a) to head (3ac6b08).
⚠️ Report is 4 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7135   +/-   ##
=======================================
  Coverage   93.75%   93.75%           
=======================================
  Files         692      692           
  Lines       68851    68851           
  Branches    18781    18781           
=======================================
  Hits        64554    64554           
  Misses       3302     3302           
  Partials      995      995           
Flag Coverage Δ
shard-1 43.76% <ø> (ø)
shard-2 36.92% <ø> (ø)
shard-3 33.13% <ø> (ø)
shard-4 34.45% <ø> (ø)
shard-5 32.29% <ø> (-0.01%) ⬇️
shard-6 45.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 17, 2026
@JSONbored
JSONbored merged commit dfb3d23 into main Jul 17, 2026
17 checks passed
@loopover-orb

loopover-orb Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Important

🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪🟪

🔍 LoopOver is reviewing…

AI analysis is in progress. This comment will update when the review is complete.

🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed · 🟪 Reviewing

@JSONbored
JSONbored deleted the fix/mcp-publish-sync-ui-version-copy branch July 17, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant