Skip to content

Repair the broken verification gate (pytest -q) #1

Description

@exploring-curiosity

The verification gate for this repository is broken, so no change can be proven
safe and nothing can be merged until it is fixed.

Failing command: pytest -q

Output:

==================================== ERRORS ====================================
___________ ERROR collecting tests/test_mcp_numerical_corpus_tool.py ___________
ImportError while importing test module '/Users/sudharshanramesh/Studies/MyProjects/OpenBenchPublisher/tests/test_mcp_numerical_corpus_tool.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../.local/share/uv/python/cpython-3.12.12-macos-aarch64-none/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_mcp_numerical_corpus_tool.py:10: in <module>
    from apps.mcp_agent_main import app, build_labeled_numerical_corpus
apps/mcp_agent_main.py:15: in <module>
    from mcp_agent.app import MCPApp
../../../.autobuilder/envs/OpenBenchPublisher/lib/python3.12/site-packages/mcp_agent/app.py:25: in <module>
    from mcp.server.fastmcp import FastMCP
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'
_____________ ERROR collecting tests/test_mcp_text_corpus_tool.py ______________
ImportError while importing test module '/Users/sudharshanramesh/Studies/MyProjects/OpenBenchPublisher/tests/test_mcp_text_corpus_tool.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../.local/share/uv/python/cpython-3.12.12-macos-aarch64-none/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_mcp_text_corpus_tool.py:10: in <module>
    from apps.mcp_agent_main import app, build_labeled_text_corpus
apps/mcp_agent_main.py:15: in <module>
    from mcp_agent.app import MCPApp
../../../.autobuilder/envs/OpenBenchPublisher/lib/python3.12/site-packages/mcp_agent/app.py:25: in <module>
    from mcp.server.fastmcp import FastMCP
E   ModuleNotFoundError: No module named 'mcp.server.fastmcp'
=============================== warnings summary ===============================
obp/config.py:14
  /Users/sudharshanramesh/Studies/MyProjects/OpenBenchPublisher/obp/config.py:14: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.13/migration/
    class Settings(BaseModel):

-- Docs: https://docs.pytest.org/en/stable/

Repair the test suite so this command runs and passes on a clean checkout.

Rules:

  • Fix the cause. Do NOT delete, skip, or comment out tests to make the command
    pass - that removes the verification rather than repairing it.
  • If a test depends on a service or credential that is unavailable locally,
    make it skip explicitly (for example pytest.mark.skipif) with a clear
    reason, rather than deleting it.
  • Missing local dev dependencies may be added to the project's dev extras.
  • Do not change application behaviour to make a test pass; fix the test or its
    setup.

Success means pytest -q exits zero on a clean checkout of this repo.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions