Skip to content

Commit 347a0ac

Browse files
committed
Add free-threaded tag
1 parent 455e610 commit 347a0ac

File tree

3 files changed

+35
-20
lines changed

3 files changed

+35
-20
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ tasks:
100100
SUB_TEST_NAME: web-identity
101101
AWS_ROLE_SESSION_NAME: test
102102
PYTHON_VERSION: 3.14t
103-
tags: [auth-aws, auth-aws-web-identity]
103+
tags: [auth-aws, auth-aws-web-identity, free-threaded]
104104
- name: test-auth-aws-latest-ecs-python3.10
105105
commands:
106106
- func: run server
@@ -324,7 +324,7 @@ tasks:
324324
TEST_NAME: mod_wsgi
325325
SUB_TEST_NAME: embedded
326326
PYTHON_VERSION: 3.14t
327-
tags: [mod_wsgi, pr]
327+
tags: [mod_wsgi, pr, free-threaded]
328328

329329
# No orchestration tests
330330
- name: test-no-orchestration-python3.10
@@ -2557,48 +2557,46 @@ tasks:
25572557
- python-pypy3.10
25582558
- replica_set-noauth-ssl
25592559
- async
2560-
- name: test-server-version-python3.14t-sync-noauth-ssl-replica-set-cov
2560+
- name: test-server-version-python3.14t-sync-noauth-ssl-replica-set
25612561
commands:
25622562
- func: run server
25632563
vars:
25642564
AUTH: noauth
25652565
SSL: ssl
25662566
TOPOLOGY: replica_set
2567-
COVERAGE: "1"
25682567
- func: run tests
25692568
vars:
25702569
AUTH: noauth
25712570
SSL: ssl
25722571
TOPOLOGY: replica_set
2573-
COVERAGE: "1"
25742572
PYTHON_VERSION: 3.14t
25752573
TEST_NAME: default_sync
25762574
tags:
25772575
- server-version
25782576
- python-3.14t
25792577
- replica_set-noauth-ssl
25802578
- sync
2581-
- name: test-server-version-python3.14t-async-auth-nossl-sharded-cluster-cov
2579+
- free-threaded
2580+
- name: test-server-version-python3.14t-async-auth-nossl-sharded-cluster
25822581
commands:
25832582
- func: run server
25842583
vars:
25852584
AUTH: auth
25862585
SSL: nossl
25872586
TOPOLOGY: sharded_cluster
2588-
COVERAGE: "1"
25892587
- func: run tests
25902588
vars:
25912589
AUTH: auth
25922590
SSL: nossl
25932591
TOPOLOGY: sharded_cluster
2594-
COVERAGE: "1"
25952592
PYTHON_VERSION: 3.14t
25962593
TEST_NAME: default_async
25972594
tags:
25982595
- server-version
25992596
- python-3.14t
26002597
- sharded_cluster-auth-nossl
26012598
- async
2599+
- free-threaded
26022600
- name: test-server-version-python3.14-sync-auth-nossl-sharded-cluster-cov
26032601
commands:
26042602
- func: run server
@@ -2726,27 +2724,26 @@ tasks:
27262724
- python-3.14
27272725
- sharded_cluster-auth-ssl
27282726
- async
2729-
- name: test-server-version-python3.14t-async-auth-ssl-sharded-cluster-cov
2727+
- name: test-server-version-python3.14t-async-auth-ssl-sharded-cluster
27302728
commands:
27312729
- func: run server
27322730
vars:
27332731
AUTH: auth
27342732
SSL: ssl
27352733
TOPOLOGY: sharded_cluster
2736-
COVERAGE: "1"
27372734
- func: run tests
27382735
vars:
27392736
AUTH: auth
27402737
SSL: ssl
27412738
TOPOLOGY: sharded_cluster
2742-
COVERAGE: "1"
27432739
PYTHON_VERSION: 3.14t
27442740
TEST_NAME: default_async
27452741
tags:
27462742
- server-version
27472743
- python-3.14t
27482744
- sharded_cluster-auth-ssl
27492745
- async
2746+
- free-threaded
27502747
- name: test-server-version-pypy3.10-async-auth-ssl-sharded-cluster
27512748
commands:
27522749
- func: run server
@@ -2872,27 +2869,26 @@ tasks:
28722869
- python-3.14
28732870
- sharded_cluster-auth-ssl
28742871
- sync
2875-
- name: test-server-version-python3.14t-sync-auth-ssl-sharded-cluster-cov
2872+
- name: test-server-version-python3.14t-sync-auth-ssl-sharded-cluster
28762873
commands:
28772874
- func: run server
28782875
vars:
28792876
AUTH: auth
28802877
SSL: ssl
28812878
TOPOLOGY: sharded_cluster
2882-
COVERAGE: "1"
28832879
- func: run tests
28842880
vars:
28852881
AUTH: auth
28862882
SSL: ssl
28872883
TOPOLOGY: sharded_cluster
2888-
COVERAGE: "1"
28892884
PYTHON_VERSION: 3.14t
28902885
TEST_NAME: default_sync
28912886
tags:
28922887
- server-version
28932888
- python-3.14t
28942889
- sharded_cluster-auth-ssl
28952890
- sync
2891+
- free-threaded
28962892
- name: test-server-version-pypy3.10-sync-auth-ssl-sharded-cluster
28972893
commands:
28982894
- func: run server
@@ -3120,27 +3116,26 @@ tasks:
31203116
- standalone-noauth-nossl
31213117
- sync
31223118
- pr
3123-
- name: test-server-version-python3.14t-async-noauth-ssl-standalone-cov
3119+
- name: test-server-version-python3.14t-async-noauth-ssl-standalone
31243120
commands:
31253121
- func: run server
31263122
vars:
31273123
AUTH: noauth
31283124
SSL: ssl
31293125
TOPOLOGY: standalone
3130-
COVERAGE: "1"
31313126
- func: run tests
31323127
vars:
31333128
AUTH: noauth
31343129
SSL: ssl
31353130
TOPOLOGY: standalone
3136-
COVERAGE: "1"
31373131
PYTHON_VERSION: 3.14t
31383132
TEST_NAME: default_async
31393133
tags:
31403134
- server-version
31413135
- python-3.14t
31423136
- standalone-noauth-ssl
31433137
- async
3138+
- free-threaded
31443139
- name: test-server-version-python3.14-sync-noauth-ssl-standalone-cov
31453140
commands:
31463141
- func: run server
@@ -3208,6 +3203,7 @@ tasks:
32083203
- python-3.14t
32093204
- replica_set-noauth-ssl
32103205
- sync
3206+
- free-threaded
32113207
- name: test-standard-v4.2-python3.12-sync-auth-ssl-sharded-cluster
32123208
commands:
32133209
- func: run server
@@ -3341,6 +3337,7 @@ tasks:
33413337
- python-3.14t
33423338
- replica_set-noauth-ssl
33433339
- async
3340+
- free-threaded
33443341
- name: test-standard-v4.4-python3.12-async-auth-ssl-sharded-cluster
33453342
commands:
33463343
- func: run server
@@ -3518,6 +3515,7 @@ tasks:
35183515
- python-3.14t
35193516
- sharded_cluster-auth-ssl
35203517
- sync
3518+
- free-threaded
35213519
- name: test-standard-v5.0-python3.13-sync-noauth-nossl-standalone
35223520
commands:
35233521
- func: run server
@@ -3628,6 +3626,7 @@ tasks:
36283626
- python-3.14t
36293627
- sharded_cluster-auth-ssl
36303628
- async
3629+
- free-threaded
36313630
- name: test-standard-v6.0-python3.13-async-noauth-nossl-standalone
36323631
commands:
36333632
- func: run server
@@ -3986,6 +3985,7 @@ tasks:
39863985
- python-3.14t
39873986
- standalone-noauth-nossl
39883987
- async
3988+
- free-threaded
39893989
- pr
39903990
- name: test-standard-rapid-python3.12-sync-noauth-ssl-replica-set
39913991
commands:
@@ -4098,6 +4098,7 @@ tasks:
40984098
- python-3.14t
40994099
- standalone-noauth-nossl
41004100
- sync
4101+
- free-threaded
41014102

41024103
# Test non standard tests
41034104
- name: test-non-standard-v4.2-python3.11-noauth-ssl-replica-set
@@ -4249,6 +4250,7 @@ tasks:
42494250
- python-3.14t
42504251
- sharded_cluster-auth-ssl
42514252
- auth
4253+
- free-threaded
42524254
- name: test-non-standard-v4.4-python3.13-noauth-nossl-standalone
42534255
commands:
42544256
- func: run server
@@ -4397,6 +4399,7 @@ tasks:
43974399
- python-3.14t
43984400
- sharded_cluster-auth-ssl
43994401
- auth
4402+
- free-threaded
44004403
- name: test-non-standard-v6.0-python3.13-noauth-nossl-standalone
44014404
commands:
44024405
- func: run server
@@ -4567,6 +4570,7 @@ tasks:
45674570
- python-3.14t
45684571
- sharded_cluster-auth-ssl
45694572
- auth
4573+
- free-threaded
45704574
- name: test-non-standard-v8.0-pypy3.10-auth-ssl-sharded-cluster
45714575
commands:
45724576
- func: run server
@@ -4675,6 +4679,7 @@ tasks:
46754679
- python-3.14t
46764680
- sharded_cluster-auth-ssl
46774681
- auth
4682+
- free-threaded
46784683
- pr
46794684
- name: test-non-standard-latest-python3.13-noauth-nossl-standalone
46804685
commands:

.evergreen/generated_configs/variants.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ buildvariants:
311311
# Green framework tests
312312
- name: green-gevent-rhel8
313313
tasks:
314-
- name: .test-standard .sync
314+
- name: .test-standard .sync !.free-threaded
315315
display_name: Green Gevent RHEL8
316316
run_on:
317317
- rhel87-small

.evergreen/scripts/generate_config.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def create_green_framework_variants():
302302
variants = []
303303
host = DEFAULT_HOST
304304
for framework in ["gevent"]:
305-
tasks = [".test-standard .sync"]
305+
tasks = [".test-standard .sync !.free-threaded"]
306306
expansions = dict(GREEN_FRAMEWORK=framework)
307307
display_name = get_variant_name(f"Green {framework.capitalize()}", host)
308308
variant = create_variant(tasks, display_name, host=host, expansions=expansions)
@@ -540,7 +540,9 @@ def create_server_version_tasks():
540540
seen.add(combo)
541541
tags.append("pr")
542542
expansions = dict(AUTH=auth, SSL=ssl, TOPOLOGY=topology)
543-
if python not in PYPYS:
543+
if "t" in python:
544+
tags.append("free-threaded")
545+
if python not in PYPYS and "t" not in python:
544546
expansions["COVERAGE"] = "1"
545547
name = get_task_name(
546548
"test-server-version",
@@ -596,6 +598,8 @@ def create_test_non_standard_tasks():
596598
f"{topology}-{auth}-{ssl}",
597599
auth,
598600
]
601+
if "t" in python:
602+
tags.append("free-threaded")
599603
if python in PYPYS:
600604
tags.append("pypy")
601605
if pr:
@@ -646,6 +650,8 @@ def create_standard_tasks():
646650
f"{topology}-{auth}-{ssl}",
647651
sync,
648652
]
653+
if "t" in python:
654+
tags.append("free-threaded")
649655
if python in PYPYS:
650656
tags.append("pypy")
651657
if pr:
@@ -731,6 +737,8 @@ def create_aws_tasks():
731737
AWS_ROLE_SESSION_NAME="test",
732738
PYTHON_VERSION=python,
733739
)
740+
if "t" in python:
741+
tags.append("free-threaded")
734742
test_func = FunctionCall(func="run tests", vars=test_vars)
735743
funcs = [server_func, assume_func, test_func]
736744
tasks.append(EvgTask(name=name, tags=tags, commands=funcs))
@@ -769,6 +777,8 @@ def create_mod_wsgi_tasks():
769777
test_func = FunctionCall(func="run tests", vars=vars)
770778
tags = ["mod_wsgi", "pr"]
771779
commands = [server_func, test_func]
780+
if "t" in python:
781+
tags.append("free-threaded")
772782
tasks.append(EvgTask(name=task_name, tags=tags, commands=commands))
773783
return tasks
774784

0 commit comments

Comments
 (0)