Skip to content

PYTHON-5313 Create Evergreen tests that do not run orchestration #2284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 18, 2025

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Apr 14, 2025

@blink1073 blink1073 requested a review from Jibola April 14, 2025 16:55
@@ -206,6 +206,7 @@ async def _init_client(self):
if os.environ.get("TEST_DATA_LAKE"):
self.is_data_lake = True
self.auth_enabled = True
await self.client.close()
Copy link
Member Author

Choose a reason for hiding this comment

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

This was a bug that was caught when running on pypy, it raised an error during teardown.

Copy link
Contributor

Choose a reason for hiding this comment

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

So we get an existing connection, close it and then establish a new connection?
Is this because the GC isn't calling close properly?

Copy link
Member Author

Choose a reason for hiding this comment

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

The GC is working as intended, it just raises a warning that close() wasn't called. Yeah, we need a new client with new options.

@blink1073 blink1073 changed the title PYTHON-5313 Create Evergreen tests that do not start a local server PYTHON-5313 Create Evergreen tests that do not run orchestration Apr 17, 2025
@blink1073 blink1073 merged commit 6ed3533 into mongodb:master Apr 18, 2025
43 of 46 checks passed
@blink1073 blink1073 deleted the PYTHON-5313 branch April 18, 2025 18:03
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.

2 participants