Skip to content

wip#17437

Draft
ohmayr wants to merge 7 commits into
mainfrom
update-firestore-system-tests
Draft

wip#17437
ohmayr wants to merge 7 commits into
mainfrom
update-firestore-system-tests

Conversation

@ohmayr

@ohmayr ohmayr commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

wip

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces temporary post-processing rules to add the pytest-xdist dependency and run Firestore system tests in parallel using -n auto. It also updates several test fixtures in both synchronous and asynchronous system tests to use "module" scope. The reviewer pointed out that changing the scope of pytest_asyncio fixtures to "module" will cause a ScopeMismatch error unless a matching module- or session-scoped event_loop fixture is defined.



@pytest_asyncio.fixture
@pytest_asyncio.fixture(scope="module")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Changing the scope of pytest_asyncio fixtures to "module" requires that the underlying event_loop fixture also has a matching or wider scope (e.g., "module" or "session"). By default, pytest-asyncio provides a "function"-scoped event_loop fixture, which causes a ScopeMismatch error during test execution. To prevent this error, define a module- or session-scoped event_loop fixture in this file or in conftest.py if one does not already exist.

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