Skip to content

Commit 81b0216

Browse files
committed
add coverage handling
1 parent 3fe59c9 commit 81b0216

File tree

2 files changed

+39
-19
lines changed

2 files changed

+39
-19
lines changed

.evergreen/config.yml

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2401,114 +2401,132 @@ axes:
24012401

24022402
buildvariants:
24032403
# Server Tests for RHEL8.
2404-
- name: test-rhel8-py3.9-auth-ssl
2404+
- name: test-rhel8-py3.9-auth-ssl-cov
24052405
tasks:
24062406
- name: .standalone
24072407
- name: .replica_set
24082408
- name: .sharded_cluster
2409-
display_name: Test RHEL8 py3.9 Auth SSL
2409+
display_name: Test RHEL8 py3.9 Auth SSL cov
24102410
run_on:
24112411
- rhel87-small
24122412
expansions:
24132413
AUTH: auth
24142414
SSL: ssl
2415+
COVERAGE: coverage
24152416
PYTHON_BINARY: /opt/python/3.9/bin/python3
2416-
- name: test-rhel8-py3.9-noauth-ssl
2417+
tags: [coverage_tag]
2418+
- name: test-rhel8-py3.9-noauth-ssl-cov
24172419
tasks:
24182420
- name: .standalone
24192421
- name: .replica_set
24202422
- name: .sharded_cluster
2421-
display_name: Test RHEL8 py3.9 NoAuth SSL
2423+
display_name: Test RHEL8 py3.9 NoAuth SSL cov
24222424
run_on:
24232425
- rhel87-small
24242426
expansions:
24252427
AUTH: noauth
24262428
SSL: ssl
2429+
COVERAGE: coverage
24272430
PYTHON_BINARY: /opt/python/3.9/bin/python3
2428-
- name: test-rhel8-py3.9-noauth-nossl
2431+
tags: [coverage_tag]
2432+
- name: test-rhel8-py3.9-noauth-nossl-cov
24292433
tasks:
24302434
- name: .standalone
24312435
- name: .replica_set
24322436
- name: .sharded_cluster
2433-
display_name: Test RHEL8 py3.9 NoAuth NoSSL
2437+
display_name: Test RHEL8 py3.9 NoAuth NoSSL cov
24342438
run_on:
24352439
- rhel87-small
24362440
expansions:
24372441
AUTH: noauth
24382442
SSL: nossl
2443+
COVERAGE: coverage
24392444
PYTHON_BINARY: /opt/python/3.9/bin/python3
2440-
- name: test-rhel8-py3.13-auth-ssl
2445+
tags: [coverage_tag]
2446+
- name: test-rhel8-py3.13-auth-ssl-cov
24412447
tasks:
24422448
- name: .standalone
24432449
- name: .replica_set
24442450
- name: .sharded_cluster
2445-
display_name: Test RHEL8 py3.13 Auth SSL
2451+
display_name: Test RHEL8 py3.13 Auth SSL cov
24462452
run_on:
24472453
- rhel87-small
24482454
expansions:
24492455
AUTH: auth
24502456
SSL: ssl
2457+
COVERAGE: coverage
24512458
PYTHON_BINARY: /opt/python/3.13/bin/python3
2452-
- name: test-rhel8-py3.13-noauth-ssl
2459+
tags: [coverage_tag]
2460+
- name: test-rhel8-py3.13-noauth-ssl-cov
24532461
tasks:
24542462
- name: .standalone
24552463
- name: .replica_set
24562464
- name: .sharded_cluster
2457-
display_name: Test RHEL8 py3.13 NoAuth SSL
2465+
display_name: Test RHEL8 py3.13 NoAuth SSL cov
24582466
run_on:
24592467
- rhel87-small
24602468
expansions:
24612469
AUTH: noauth
24622470
SSL: ssl
2471+
COVERAGE: coverage
24632472
PYTHON_BINARY: /opt/python/3.13/bin/python3
2464-
- name: test-rhel8-py3.13-noauth-nossl
2473+
tags: [coverage_tag]
2474+
- name: test-rhel8-py3.13-noauth-nossl-cov
24652475
tasks:
24662476
- name: .standalone
24672477
- name: .replica_set
24682478
- name: .sharded_cluster
2469-
display_name: Test RHEL8 py3.13 NoAuth NoSSL
2479+
display_name: Test RHEL8 py3.13 NoAuth NoSSL cov
24702480
run_on:
24712481
- rhel87-small
24722482
expansions:
24732483
AUTH: noauth
24742484
SSL: nossl
2485+
COVERAGE: coverage
24752486
PYTHON_BINARY: /opt/python/3.13/bin/python3
2476-
- name: test-rhel8-pypy3.10-auth-ssl
2487+
tags: [coverage_tag]
2488+
- name: test-rhel8-pypy3.10-auth-ssl-cov
24772489
tasks:
24782490
- name: .standalone
24792491
- name: .replica_set
24802492
- name: .sharded_cluster
2481-
display_name: Test RHEL8 pypy3.10 Auth SSL
2493+
display_name: Test RHEL8 pypy3.10 Auth SSL cov
24822494
run_on:
24832495
- rhel87-small
24842496
expansions:
24852497
AUTH: auth
24862498
SSL: ssl
2499+
COVERAGE: coverage
24872500
PYTHON_BINARY: /opt/python/pypy3.10/bin/python3
2488-
- name: test-rhel8-pypy3.10-noauth-ssl
2501+
tags: [coverage_tag]
2502+
- name: test-rhel8-pypy3.10-noauth-ssl-cov
24892503
tasks:
24902504
- name: .standalone
24912505
- name: .replica_set
24922506
- name: .sharded_cluster
2493-
display_name: Test RHEL8 pypy3.10 NoAuth SSL
2507+
display_name: Test RHEL8 pypy3.10 NoAuth SSL cov
24942508
run_on:
24952509
- rhel87-small
24962510
expansions:
24972511
AUTH: noauth
24982512
SSL: ssl
2513+
COVERAGE: coverage
24992514
PYTHON_BINARY: /opt/python/pypy3.10/bin/python3
2500-
- name: test-rhel8-pypy3.10-noauth-nossl
2515+
tags: [coverage_tag]
2516+
- name: test-rhel8-pypy3.10-noauth-nossl-cov
25012517
tasks:
25022518
- name: .standalone
25032519
- name: .replica_set
25042520
- name: .sharded_cluster
2505-
display_name: Test RHEL8 pypy3.10 NoAuth NoSSL
2521+
display_name: Test RHEL8 pypy3.10 NoAuth NoSSL cov
25062522
run_on:
25072523
- rhel87-small
25082524
expansions:
25092525
AUTH: noauth
25102526
SSL: nossl
2527+
COVERAGE: coverage
25112528
PYTHON_BINARY: /opt/python/pypy3.10/bin/python3
2529+
tags: [coverage_tag]
25122530
- name: test-rhel8-py3.10-auth-ssl
25132531
tasks:
25142532
- name: .standalone

.evergreen/scripts/generate_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
ssl=dict(ssl="SSL", nossl="NoSSL"),
3636
auth=dict(auth="Auth", noauth="NoAuth"),
3737
test_suites=dict(default="Sync", default_async="Async"),
38+
coverage=dict(coverage="cov"),
3839
)
3940
HOSTS = dict()
4041

@@ -200,13 +201,14 @@ def create_server_variants() -> list[BuildVariant]:
200201
host = "rhel8"
201202
for python, (auth, ssl) in product([*MIN_MAX_PYTHON, PYPYS[-1]], AUTH_SSLS):
202203
display_name = f"Test {host}"
203-
expansions = dict(AUTH=auth, SSL=ssl)
204+
expansions = dict(AUTH=auth, SSL=ssl, COVERAGE="coverage")
204205
display_name = get_display_name("Test", host, python=python, **expansions)
205206
variant = create_variant(
206207
[f".{t}" for t in TOPOLOGIES],
207208
display_name,
208209
python=python,
209210
host=host,
211+
tags=["coverage_tag"],
210212
expansions=expansions,
211213
)
212214
variants.append(variant)

0 commit comments

Comments
 (0)