8000
Skip to content

Fix Pytest Collection Failure in CI#224

Open
BeathovenGala wants to merge 3 commits intogoogle-deepmind:mainfrom
BeathovenGala:fix-pytest-collection
Open

Fix Pytest Collection Failure in CI#224
BeathovenGala wants to merge 3 commits intogoogle-deepmind:mainfrom
BeathovenGala:fix-pytest-collection

Conversation

@BeathovenGala
Copy link
Copy Markdown

Fixes an issue where pytest fails to collect tests in the CI environment (GitHub Actions), resulting in "no tests ran" and exit code 5.

Fix: I updated pyproject.toml to explicitly define test discovery patterns (like *Test classes), ensuring pytest finds tests that were previously ignored in CI.

This ensures that:

  • The test files and methods are picked up, regardless of minor naming variations.
  • Local and CI behavior stay aligned, especially when pytest-xdist is enabled

python_functions: Look for functions matching test_*.

Verification

Ran pytest --collect-only locally and confirmed that tests (awa concordia/components/agent/agent_components_test.py and egs) are immediately and correctly collected.

BeathovenGala and others added 3 commits February 10, 2026 00:54
Switched to using ThreadPoolExecutor as a context manager to ensure proper shutdown even if exceptions occur during task submission.
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.

1 participant

0