Skip to content

Fix bridge_regression_test build after reserved-meta API rename - #6029

Merged
JAORMX merged 1 commit into
mainfrom
fix/bridge-regression-reserved-meta-api
Jul 27, 2026
Merged

Fix bridge_regression_test build after reserved-meta API rename#6029
JAORMX merged 1 commit into
mainfrom
fix/bridge-regression-reserved-meta-api

Conversation

@JAORMX

@JAORMX JAORMX commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

Main was red. Linting / Lint Go Code and Tests / Test Go Code both failed on #6006's merge commit (08cbffd):

pkg/vmcp/server/bridge_regression_test.go:506:38: undefined: mcpparser.ReservedModernMetaKeys (typecheck)

#6024 renamed the reserved-_meta API — ReservedModernMetaKeys / StripReservedModernMetaReservedMetaPrefix / StripReservedMeta (with passthroughMetaKeys) — and #6006's bridge_regression_test.go still referenced the removed identifier. The two PRs crossed in flight.

Fix: assert on the reserved namespace (mcpparser.ReservedMetaPrefix) instead of the removed fixed list — the same pattern revision_realbackend_test.go:163 already uses. This is strictly stronger than the old list: it catches any reserved key the spec adds later, and since no passthroughMetaKeys entry rides a tools/call, a blanket prefix check is exact. Also updated the stale StripReservedModernMeta reference in the doc comment.

Type of change

  • Bug fix

Test plan

  • Unit tests (task test) — full pkg/vmcp/server package green with -race; the previously-broken TestRegression_BridgeCellA_NoReservedMetaLeakToLegacyBackend compiles and passes
  • Linting (task lint-fix) — 0 issues

API Compatibility

  • This PR does not break the v1beta1 API.

Test-only change.

Does this introduce a user-facing change?

No.

Main was red: #6024 renamed mcpparser.ReservedModernMetaKeys /
StripReservedModernMeta to ReservedMetaPrefix / StripReservedMeta (with
passthroughMetaKeys), and #6006's bridge_regression_test.go still
referenced the removed identifier, breaking typecheck on the merge
commit (Linting / Lint Go Code and Tests / Test Go Code both failed).

Assert on the reserved namespace (ReservedMetaPrefix) instead of the
removed fixed list — the same pattern revision_realbackend_test.go
already uses. This is also strictly stronger: it catches any reserved
key the spec adds later, and no passthroughMetaKeys entry rides a
tools/call, so the blanket prefix check is exact.
@github-actions github-actions Bot added the size/XS Extra small PR: < 100 lines changed label Jul 27, 2026
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.17%. Comparing base (f0de82f) to head (f767cae).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6029      +/-   ##
==========================================
+ Coverage   72.15%   72.17%   +0.01%     
==========================================
  Files         721      721              
  Lines       74991    75025      +34     
==========================================
+ Hits        54113    54148      +35     
- Misses      17015    17018       +3     
+ Partials     3863     3859       -4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JAORMX
JAORMX merged commit 8a860d9 into main Jul 27, 2026
81 of 82 checks passed
@JAORMX
JAORMX deleted the fix/bridge-regression-reserved-meta-api branch July 27, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants