Skip to content

Commit cd64eca

Browse files
committed
try with tags
1 parent 118a115 commit cd64eca

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2490,6 +2490,7 @@ tasks:
24902490
- python-3.9
24912491
- standalone-noauth-nossl
24922492
- sync
2493+
- pr
24932494
- name: test-server-version-python3.10-async-noauth-nossl-standalone-cov
24942495
commands:
24952496
- func: run server
@@ -2511,6 +2512,7 @@ tasks:
25112512
- python-3.10
25122513
- standalone-noauth-nossl
25132514
- async
2515+
- pr
25142516
- name: test-server-version-python3.11-sync-auth-ssl-replica-set-cov
25152517
commands:
25162518
- func: run server
@@ -2614,6 +2616,7 @@ tasks:
26142616
- python-3.9
26152617
- replica_set-noauth-ssl
26162618
- sync
2619+
- pr
26172620
- name: test-server-version-python3.10-async-noauth-ssl-replica-set-cov
26182621
commands:
26192622
- func: run server
@@ -2635,6 +2638,7 @@ tasks:
26352638
- python-3.10
26362639
- replica_set-noauth-ssl
26372640
- async
2641+
- pr
26382642
- name: test-server-version-python3.11-sync-noauth-nossl-replica-set-cov
26392643
commands:
26402644
- func: run server
@@ -2698,6 +2702,7 @@ tasks:
26982702
- python-3.13
26992703
- sharded_cluster-auth-ssl
27002704
- sync
2705+
- pr
27012706
- name: test-server-version-pypy3.10-async-auth-ssl-sharded-cluster
27022707
commands:
27032708
- func: run server
@@ -2717,6 +2722,7 @@ tasks:
27172722
- python-pypy3.10
27182723
- sharded_cluster-auth-ssl
27192724
- async
2725+
- pr
27202726
- name: test-server-version-python3.9-sync-auth-nossl-sharded-cluster-cov
27212727
commands:
27222728
- func: run server
@@ -2862,6 +2868,7 @@ tasks:
28622868
- python-3.9
28632869
- sharded_cluster-auth-ssl
28642870
- sync
2871+
- pr
28652872
- name: test-server-version-python3.9-async-auth-ssl-sharded-cluster-cov
28662873
commands:
28672874
- func: run server
@@ -2883,6 +2890,7 @@ tasks:
28832890
- python-3.9
28842891
- sharded_cluster-auth-ssl
28852892
- async
2893+
- pr
28862894
- name: test-server-version-python3.10-sync-auth-ssl-sharded-cluster-cov
28872895
commands:
28882896
- func: run server
@@ -2904,6 +2912,7 @@ tasks:
29042912
- python-3.10
29052913
- sharded_cluster-auth-ssl
29062914
- sync
2915+
- pr
29072916
- name: test-server-version-python3.10-async-auth-ssl-sharded-cluster-cov
29082917
commands:
29092918
- func: run server
@@ -2925,6 +2934,7 @@ tasks:
29252934
- python-3.10
29262935
- sharded_cluster-auth-ssl
29272936
- async
2937+
- pr
29282938
- name: test-server-version-python3.11-sync-auth-ssl-sharded-cluster-cov
29292939
commands:
29302940
- func: run server
@@ -2946,6 +2956,7 @@ tasks:
29462956
- python-3.11
29472957
- sharded_cluster-auth-ssl
29482958
- sync
2959+
- pr
29492960
- name: test-server-version-python3.11-async-auth-ssl-sharded-cluster-cov
29502961
commands:
29512962
- func: run server
@@ -2967,6 +2978,7 @@ tasks:
29672978
- python-3.11
29682979
- sharded_cluster-auth-ssl
29692980
- async
2981+
- pr
29702982
- name: test-server-version-python3.12-sync-auth-ssl-sharded-cluster-cov
29712983
commands:
29722984
- func: run server
@@ -2988,6 +3000,7 @@ tasks:
29883000
- python-3.12
29893001
- sharded_cluster-auth-ssl
29903002
- sync
3003+
- pr
29913004
- name: test-server-version-python3.12-async-auth-ssl-sharded-cluster-cov
29923005
commands:
29933006
- func: run server
@@ -3009,6 +3022,7 @@ tasks:
30093022
- python-3.12
30103023
- sharded_cluster-auth-ssl
30113024
- async
3025+
- pr
30123026
- name: test-server-version-python3.13-async-auth-ssl-sharded-cluster-cov
30133027
commands:
30143028
- func: run server
@@ -3030,6 +3044,7 @@ tasks:
30303044
- python-3.13
30313045
- sharded_cluster-auth-ssl
30323046
- async
3047+
- pr
30333048
- name: test-server-version-pypy3.10-sync-auth-ssl-sharded-cluster
30343049
commands:
30353050
- func: run server
@@ -3049,6 +3064,7 @@ tasks:
30493064
- python-pypy3.10
30503065
- sharded_cluster-auth-ssl
30513066
- sync
3067+
- pr
30523068

30533069
# Serverless tests
30543070
- name: test-serverless
@@ -3611,6 +3627,7 @@ tasks:
36113627
- python-3.13
36123628
- standalone-noauth-nossl
36133629
- sync
3630+
- pr
36143631
- name: test-standard-latest-python3.9-async-noauth-ssl-replica-set
36153632
commands:
36163633
- func: run server
@@ -3633,6 +3650,7 @@ tasks:
36333650
- python-3.9
36343651
- replica_set-noauth-ssl
36353652
- async
3653+
- pr
36363654
- name: test-standard-latest-python3.10-sync-auth-ssl-sharded-cluster
36373655
commands:
36383656
- func: run server
@@ -3655,6 +3673,7 @@ tasks:
36553673
- python-3.10
36563674
- sharded_cluster-auth-ssl
36573675
- sync
3676+
- pr
36583677
- name: test-standard-v4.0-pypy3.10-sync-noauth-nossl-standalone
36593678
commands:
36603679
- func: run server
@@ -3862,6 +3881,7 @@ tasks:
38623881
- sharded_cluster-auth-ssl
38633882
- sync
38643883
- pypy
3884+
- pr
38653885

38663886
# Test non standard tests
38673887
- name: test-non-standard-v4.0-python3.9-noauth-nossl-standalone
@@ -4389,6 +4409,7 @@ tasks:
43894409
- python-3.13
43904410
- standalone-noauth-nossl
43914411
- noauth
4412+
- pr
43924413
- name: test-non-standard-latest-python3.9-noauth-ssl-replica-set
43934414
commands:
43944415
- func: run server
@@ -4410,6 +4431,7 @@ tasks:
44104431
- python-3.9
44114432
- replica_set-noauth-ssl
44124433
- noauth
4434+
- pr
44134435
- name: test-non-standard-latest-python3.10-auth-ssl-sharded-cluster
44144436
commands:
44154437
- func: run server
@@ -4431,6 +4453,7 @@ tasks:
44314453
- python-3.10
44324454
- sharded_cluster-auth-ssl
44334455
- auth
4456+
- pr
44344457
- name: test-non-standard-v4.0-pypy3.10-noauth-nossl-standalone
44354458
commands:
44364459
- func: run server
@@ -4629,3 +4652,4 @@ tasks:
46294652
- sharded_cluster-auth-ssl
46304653
- auth
46314654
- pypy
4655+
- pr

.evergreen/scripts/generate_config.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,14 @@ def create_server_version_tasks():
554554

555555
# Assemble the tasks.
556556
for topology, auth, ssl, sync, python in task_inputs:
557-
tags = ["server-version", f"python-{python}", f"{topology}-{auth}-{ssl}", sync]
557+
combo = f"{topology}-{auth}-{ssl}"
558+
tags = ["server-version", f"python-{python}", combo, sync]
559+
if combo in [
560+
"standalone-noauth-nossl",
561+
"replica_set-noauth-ssl",
562+
"sharded_cluster-auth-ssl",
563+
]:
564+
tags.append("pr")
558565
expansions = dict(AUTH=auth, SSL=ssl, TOPOLOGY=topology)
559566
if python not in PYPYS:
560567
expansions["COVERAGE"] = "1"
@@ -608,6 +615,8 @@ def create_test_non_standard_tasks():
608615
]
609616
if python in PYPYS:
610617
tags.append("pypy")
618+
if version == "latest":
619+
tags.append("pr")
611620
expansions = dict(AUTH=auth, SSL=ssl, TOPOLOGY=topology, VERSION=version)
612621
name = get_task_name("test-non-standard", python=python, **expansions)
613622
server_func = FunctionCall(func="run server", vars=expansions)
@@ -644,6 +653,8 @@ def create_standard_tasks():
644653
]
645654
if python in PYPYS:
646655
tags.append("pypy")
656+
if version == "latest":
657+
tags.append("pr")
647658
expansions = dict(AUTH=auth, SSL=ssl, TOPOLOGY=topology, VERSION=version)
648659
name = get_task_name("test-standard", python=python, sync=sync, **expansions)
649660
server_func = FunctionCall(func="run server", vars=expansions)

0 commit comments

Comments
 (0)