test(installer): add custom agent MCP harness#1069
Conversation
|
@claude review PR. |
|
Great contribution, thanks! |
|
Solid harness — fills a real gap. The deterministic in-tree MCP server is a nice substitute for 🟡 Job depends on 🟢 Brittle error-string match. 🟢 "No MCP traffic" assertion is vacuous. 🟢 Minor cleanup. Second test skips the None blocking. Nice contribution. |
|
Small CI note from the current run: the installer harness jobs are green, and the remaining failing check appears to be formatting only. |
|
Lint issues from the previous CI run have been addressed in d210474. Current installer harness jobs are green now. |
|
Thanks for the update. The formatting blocker I pointed at is addressed from what I can see: the current visible checks no longer show the Black/isort failure. I can’t approve as a maintainer, so leaving final review to the GAIA maintainers. |
Thanks for checking and confirming the fixes — appreciate it. |
Closes #993
Installer validation now covers the post-install custom-agent path that was previously untested: importing a custom agent bundle, loading MCP tools from a deterministic in-tree server, surfacing MCP connection failures, and proving a no-MCP agent path emits no MCP traffic. The installer workflow runs that harness on Ubuntu and Windows and uploads the dummy MCP logs when it fails.
Test plan:
PYTHONPATH=src python -m pytest tests/unit/test_export_import.py tests/fixtures/mcp/dummy_server/test_dummy_server.py tests/installer/test_custom_agent_mcp_harness.py -qpython -m black --check tests/fixtures/mcp/dummy_server tests/fixtures/custom_agents/installer_mcp tests/fixtures/custom_agents/installer_no_mcp tests/installer/test_custom_agent_mcp_harness.pyPYTHONPATH=src python - <<'PY' ... yaml.safe_load(.github/workflows/build-installers.yml) ... PY