Skip to content

test(e2e): repair test-api-e2e.sh for removed legacy 'call tool'#534

Merged
Dumbris merged 1 commit into
mainfrom
fix/e2e-script-stale-call-tool
May 28, 2026
Merged

test(e2e): repair test-api-e2e.sh for removed legacy 'call tool'#534
Dumbris merged 1 commit into
mainfrom
fix/e2e-script-stale-call-tool

Conversation

@Dumbris

@Dumbris Dumbris commented May 28, 2026

Copy link
Copy Markdown
Member

Summary

./scripts/test-api-e2e.sh (the "required" local E2E gate) was failing 10/78 because it still drove the removed legacy mcpproxy call tool upstream_servers ... command. The replacement intent variants (call tool-read/write/destructive) reject built-in tools (require server:tool), and the dedicated upstream subcommands have different semantics (merge vs full-replace, no args-update, no json-string validation) — so the env/args/headers tests (Issue #182) can't be faithfully ported to the CLI.

That behavior is already covered by Go tests, so the redundant bash tests are removed:

  • TestEnvJsonParsing, TestArgsJsonParsing, TestHeadersJsonParsing
  • TestPatchPreservesEnvAndHeaders, TestHandleRemoveUpstream, TestUpstreamServerOperations

Changes

  • Remove 13 redundant env/args/headers tests (28–40) + their dead cleanup.
  • echo_tool history-seed now uses call tool-read -d.
  • Fix activity/{id} detail check: contract nests the record under .data.activity.id, not .data.id.

Result

1 insertion, 154 deletions. Script is green: 65 passed, 0 failed.

(The external Pulse-registry test is intermittently flaky — unrelated, not touched here.)

The env/args/headers block (Issue #182 tests) drove the deleted
`mcpproxy call tool upstream_servers` command; its intent-based
replacements reject built-in tools and the dedicated `upstream`
subcommands have different semantics (merge vs full-replace, no
args update). That coverage already lives in Go
(TestEnvJsonParsing / TestArgsJsonParsing / TestHeadersJsonParsing /
TestPatchPreservesEnvAndHeaders / TestHandleRemoveUpstream), so the
13 redundant bash tests are removed.

Also fixes two unrelated breakages surfaced while verifying:
- the echo_tool history-seed call now uses `call tool-read`
- the activity/{id} detail check used `.data.id`; the contract
  nests the record under `.data.activity.id`

Script is green again: 65 passed, 0 failed.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 28, 2026

Copy link
Copy Markdown

Deploying mcpproxy-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1d3c8c8
Status: ✅  Deploy successful!
Preview URL: https://cb7bf058.mcpproxy-docs.pages.dev
Branch Preview URL: https://fix-e2e-script-stale-call-to.mcpproxy-docs.pages.dev

View logs

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown

📦 Build Artifacts

Workflow Run: View Run
Branch: fix/e2e-script-stale-call-tool

Available Artifacts

  • archive-darwin-amd64 (27 MB)
  • archive-darwin-arm64 (25 MB)
  • archive-linux-amd64 (16 MB)
  • archive-linux-arm64 (14 MB)
  • archive-windows-amd64 (27 MB)
  • archive-windows-arm64 (24 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (21 MB)
  • installer-dmg-darwin-arm64 (18 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 26577484140 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

@Dumbris Dumbris merged commit 5f98d81 into main May 28, 2026
28 checks passed
@Dumbris Dumbris deleted the fix/e2e-script-stale-call-tool branch May 28, 2026 14:05
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.

2 participants