@@ -112,10 +112,13 @@ def create_free_threaded_variants() -> list[BuildVariant]:
112
112
# TODO: PYTHON-5027
113
113
continue
114
114
tasks = [".free-threading" ]
115
+ tags = []
116
+ if host_name == "rhel8" :
117
+ tags .append ("pr" )
115
118
host = HOSTS [host_name ]
116
119
python = "3.13t"
117
120
display_name = get_variant_name ("Free-threaded" , host , python = python )
118
- variant = create_variant (tasks , display_name , python = python , host = host )
121
+ variant = create_variant (tasks , display_name , tags = tags , python = python , host = host )
119
122
variants .append (variant )
120
123
return variants
121
124
@@ -329,7 +332,7 @@ def create_atlas_data_lake_variants():
329
332
tasks = [".test-no-orchestration" ]
330
333
expansions = dict (TEST_NAME = "data_lake" )
331
334
display_name = get_variant_name ("Atlas Data Lake" , host )
332
- return [create_variant (tasks , display_name , host = host , expansions = expansions )]
335
+ return [create_variant (tasks , display_name , tags = [ "pr" ], host = host , expansions = expansions )]
333
336
334
337
335
338
def create_mod_wsgi_variants ():
@@ -370,9 +373,9 @@ def create_oidc_auth_variants():
370
373
variants = []
371
374
for host_name in ["ubuntu22" , "macos" , "win64" ]:
372
375
if host_name == "ubuntu22" :
373
- tasks = [".auth_oidc " ]
376
+ tasks = [".auth_oidc_remote " ]
374
377
else :
375
- tasks = [".auth_oidc !.auth_oidc_remote" ]
378
+ tasks = ["!.auth_oidc_remote .auth_oidc " ]
376
379
host = HOSTS [host_name ]
377
380
variants .append (
378
381
create_variant (
@@ -382,6 +385,18 @@ def create_oidc_auth_variants():
382
385
batchtime = BATCHTIME_WEEK ,
383
386
)
384
387
)
388
+ # Add a specific local test to run on PRs.
389
+ if host_name == "ubuntu22" :
390
+ tasks = ["!.auth_oidc_remote .auth_oidc" ]
391
+ variants .append (
392
+ create_variant (
393
+ tasks ,
394
+ get_variant_name ("Auth OIDC Local" , host ),
395
+ tags = ["pr" ],
396
+ host = host ,
397
+ batchtime = BATCHTIME_WEEK ,
398
+ )
399
+ )
385
400
return variants
386
401
387
402
@@ -406,6 +421,7 @@ def create_mockupdb_variants():
406
421
[".test-no-orchestration" ],
407
422
get_variant_name ("MockupDB" , host ),
408
423
host = host ,
424
+ tags = ["pr" ],
409
425
expansions = expansions ,
410
426
)
411
427
]
@@ -430,6 +446,7 @@ def create_atlas_connect_variants():
430
446
create_variant (
431
447
[".test-no-orchestration" ],
432
448
get_variant_name ("Atlas connect" , host ),
449
+ tags = ["pr" ],
433
450
host = DEFAULT_HOST ,
434
451
)
435
452
]
@@ -469,15 +486,18 @@ def create_aws_auth_variants():
469
486
for host_name in ["ubuntu20" , "win64" , "macos" ]:
470
487
expansions = dict ()
471
488
tasks = [".auth-aws" ]
489
+ tags = []
472
490
if host_name == "macos" :
473
491
tasks = [".auth-aws !.auth-aws-web-identity !.auth-aws-ecs !.auth-aws-ec2" ]
492
+ tags = ["pr" ]
474
493
elif host_name == "win64" :
475
494
tasks = [".auth-aws !.auth-aws-ecs" ]
476
495
host = HOSTS [host_name ]
477
496
variant = create_variant (
478
497
tasks ,
479
498
get_variant_name ("Auth AWS" , host ),
480
499
host = host ,
500
+ tags = tags ,
481
501
expansions = expansions ,
482
502
)
483
503
variants .append (variant )
@@ -487,7 +507,7 @@ def create_aws_auth_variants():
487
507
def create_no_server_variants ():
488
508
host = HOSTS ["rhel8" ]
489
509
name = get_variant_name ("No server" , host = host )
490
- return [create_variant ([".test-no-orchestration" ], name , host = host )]
510
+ return [create_variant ([".test-no-orchestration" ], name , host = host , tags = [ "pr" ] )]
491
511
492
512
493
513
def create_alternative_hosts_variants ():
@@ -512,14 +532,18 @@ def create_alternative_hosts_variants():
512
532
expansions = dict (VERSION = "latest" )
513
533
handle_c_ext (C_EXTS [0 ], expansions )
514
534
host = HOSTS [host_name ]
535
+ tags = []
515
536
if "fips" in host_name .lower ():
516
537
expansions ["REQUIRE_FIPS" ] = "1"
538
+ if "amazon" in host_name .lower ():
539
+ tags .append ("pr" )
517
540
variants .append (
518
541
create_variant (
519
542
[".test-no-toolchain" ],
520
543
display_name = get_variant_name ("Other hosts" , host , version = version ),
521
544
batchtime = batchtime ,
522
545
host = host ,
546
+ tags = tags ,
523
547
expansions = expansions ,
524
548
)
525
549
)
@@ -693,16 +717,18 @@ def create_kms_tasks():
693
717
for success in [True , False ]:
694
718
name = f"test-{ kms_type } kms"
695
719
sub_test_name = kms_type
720
+ tags = []
696
721
if not success :
697
722
name += "-fail"
698
723
sub_test_name += "-fail"
724
+ tags .append ("pr" )
699
725
commands = []
700
726
if not success :
701
727
commands .append (FunctionCall (func = "run server" ))
702
728
test_vars = dict (TEST_NAME = "kms" , SUB_TEST_NAME = sub_test_name )
703
729
test_func = FunctionCall (func = "run tests" , vars = test_vars )
704
730
commands .append (test_func )
705
- tasks .append (EvgTask (name = name , commands = commands ))
731
+ tasks .append (EvgTask (name = name , tags = tags , commands = commands ))
706
732
return tasks
707
733
708
734
@@ -756,6 +782,7 @@ def create_oidc_tasks():
756
782
if sub_test != "default" :
757
783
tags .append ("auth_oidc_remote" )
758
784
tasks .append (EvgTask (name = task_name , tags = tags , commands = [test_func ]))
785
+
759
786
return tasks
760
787
761
788
@@ -802,6 +829,8 @@ def _create_ocsp_tasks(algo, variant, server_type, base_task_name):
802
829
tags = ["ocsp" , f"ocsp-{ algo } " , version ]
803
830
if "disableStapling" not in variant :
804
831
tags .append ("ocsp-staple" )
832
+ if algo == "valid-cert-server-staples" and version == "latest" :
833
+ tags .append ("pr" )
805
834
806
835
task_name = get_task_name (
807
836
f"test-ocsp-{ algo } -{ base_task_name } " , python = python , version = version
0 commit comments