feat: replace mcp-server-tester with RTF smoke tests#727
feat: replace mcp-server-tester with RTF smoke tests#727
Conversation
✅ Docs preview has no changesThe preview was not built because there were no changes. Build ID: a42fac1d00cc6c6c31f95f1d ✅ AI Style Review — No Changes DetectedNo MDX files were changed in this pull request. Review Log: View detailed log
|
| - name: Install RTF CLI | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| gh repo clone apollographql/runtime-testing-framework /tmp/rtf -- --depth 1 | ||
| cargo install --path /tmp/rtf/crates/rtf-cli | ||
|
|
||
| - name: Run e2e smoke tests | ||
| env: | ||
| GITHUB_TOKEN: ${{ github.token }} | ||
| run: | | ||
| rtf run e2e/rtf/smoke/test-plan.yaml -v \ | ||
| --var 'mcp_server_image=apollo-mcp-server' \ | ||
| --var 'mcp_server_tag=local' |
There was a problem hiding this comment.
You should use the action we provide from release-tools for running the test plan rather than attempting to clone the repo like this. RTF is an internal repo still which is why you're getting that error in your CI run.
There was a problem hiding this comment.
That's cool, @sminez! Updated the workflow to use it. :)
There was a problem hiding this comment.
Any ideas about this permission issue in CI?
https://github.com/apollographql/apollo-mcp-server/actions/runs/24463431474/job/71483772955?pr=727
|
⏭️ Changeset check skipped via label |
This replaces the
mcp-server-testerNPM package with an RTF-based smoke test for e2e testing. The old setup depended on a pinned third-party NPM tool and a live external API (theSpaceDevs), both of which are fragile in CI. The new test plan references shared scenario and environment configs fromapollographql/rtf-mcpvia GitHub file providers, runs the MCP server and a subgraph mock in Docker Compose, and validates 14 tools across 8 test cases (introspect, search, validate with valid/invalid queries, and execute). CI now builds a Docker image from the current code and tests it withrtf run, removing the Node.js dependency entirely.Depends on https://github.com/apollographql/rtf-mcp/pull/33 (branch
feat/mcp-server-smoke-test) which adds the sharedmcp-serverenvironment config andmcp-tool-smokescenario. There's a TODO in the test plan to remove thegit_refreferences once that PR merges.Testing
Run the smoke test (requires Docker):