gptme icon indicating copy to clipboard operation
gptme copied to clipboard

tests: attempt at fixing tests

Open ErikBjare opened this issue 8 months ago • 1 comments

[!IMPORTANT] Fix test reliability and timeout issues in tests/test_mcp.py, adjust timeouts in gptme/mcp/client.py, and update build.yml to install uv.

  • Tests:
    • Mark test_sqlite_connection, test_sqlite_operations, test_memory_connection, and test_memory_operations in tests/test_mcp.py with @pytest.mark.xfail due to CI timeouts.
    • Adjust test_config_path to prefer uvx over pipx if available.
    • Change repository URL in test_config_path to use HTTPS.
  • Client:
    • Increase timeout for initialize() to 10 seconds and list_tools() to 30 seconds in _setup_connection() in gptme/mcp/client.py.
  • Workflow:
    • Update build.yml to install uv with poetry.

This description was created by Ellipsis for 518c01819396b0c07487d3ceff287bfcd248bec6. It will automatically update as commits are pushed.

ErikBjare avatar Mar 29 '25 18:03 ErikBjare

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests.

:loudspeaker: Thoughts on this report? Let us know!

codecov[bot] avatar Mar 29 '25 18:03 codecov[bot]

Not sure why this was needed anymore. The existing tests seem to work fine?

ErikBjare avatar Jun 04 '25 12:06 ErikBjare