Skip to content

PYTHON-5345 Streamline the standard tasks #2312

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 21 commits into from
May 1, 2025

Conversation

blink1073
Copy link
Member

@blink1073 blink1073 commented Apr 25, 2025

See the ticket for more background on the reasoning.

Patch build: https://spruce.mongodb.com/version/680b9b831d659e0007140dda/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

Doctests:

image

Load Balancer:

image

No C Ext (partial list shown):

image

MongoDB 4.4:

image

@blink1073
Copy link
Member Author

evergreen retry

1 similar comment
@blink1073
Copy link
Member Author

evergreen retry

@blink1073 blink1073 marked this pull request as ready for review April 25, 2025 18:20
@@ -461,7 +462,7 @@ def create_doctests_variants():
expansions = dict(TEST_NAME="doctest")
return [
create_variant(
[".standard-linux .standalone-noauth-nossl"],
[".test-named .standalone-noauth-nossl"],
Copy link
Member

Choose a reason for hiding this comment

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

What does "named" mean here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I couldn't think of a good name for "tests that use a specific marker or test name"

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated to test-standard, test-non-standard, and test-no-orchestration.

@blink1073 blink1073 marked this pull request as draft April 29, 2025 14:51
@blink1073 blink1073 marked this pull request as ready for review April 30, 2025 13:14
@blink1073 blink1073 requested a review from NoahStapp April 30, 2025 13:14
@NoahStapp
Copy link
Contributor

Can you schedule a patch build with everything?

list(product(ALL_VERSIONS, TOPOLOGIES)), ALL_PYTHONS
):
task_combos = []
# For each version and topology, rotate through the CPythons.
Copy link
Contributor

Choose a reason for hiding this comment

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

Do these tests not have sync/async versions? Or do we always run both for all of them?

Copy link
Member Author

Choose a reason for hiding this comment

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

We run both sync and async, because it is a limited number of tests due to the pytest marker.

@blink1073
Copy link
Member Author

Full patch build, 1117 tasks across 87 build variants: https://spruce.mongodb.com/version/68123deadf02d30007c0da2c/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

@blink1073
Copy link
Member Author

blink1073 commented Apr 30, 2025

So far the failures have been due to PyPy, PyOpenSSL, free-threading on macos, or this error which pre-existed: https://jira.mongodb.org/browse/PYTHON-5365. Nothing unexpected.

@blink1073 blink1073 requested a review from NoahStapp April 30, 2025 15:54
@blink1073
Copy link
Member Author

Most of the jobs have completed, I don't see any concerns.

@@ -593,31 +601,32 @@ def create_server_version_tasks():
if topology == "sharded_cluster" and auth == "auth" and ssl == "ssl":
continue
task_types.append((python, topology, auth, ssl))
for python, topology, auth, ssl in task_types:
for (python, topology, auth, ssl), sync in zip_cycle(task_types, SYNCS):
Copy link
Contributor

Choose a reason for hiding this comment

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

Making sure I understand this change: now async and sync are cycled between over our standard tasks? So every other test will be sync, and every other test will be async?

Copy link
Member Author

Choose a reason for hiding this comment

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

That is correct

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we ensure we still always run sync and async on every combo of version, topology, auth, and ssl?

Copy link
Member Author

Choose a reason for hiding this comment

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

Patch build with just the new server version tests, 306 tasks across 9 build variants: https://spruce.mongodb.com/version/68135c314806e0000738a155/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

Copy link
Member Author

Choose a reason for hiding this comment

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

That brings the total up to 1270 tasks across 87 build variants, from 1117 tasks.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that's worth it to ensure 100% coverage of combinations.

@blink1073 blink1073 requested a review from NoahStapp April 30, 2025 16:22
@blink1073 blink1073 merged commit 0ec5778 into mongodb:master May 1, 2025
46 checks passed
@blink1073 blink1073 deleted the cleanup_task_combos branch May 1, 2025 14:08
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.

3 participants