Skip to content

Commit 37b700c

Browse files
committed
CSHARP-5774: Organize smoke test to run all TFMs in a single variant
1 parent eaa2eae commit 37b700c

File tree

1 file changed

+61
-33
lines changed

1 file changed

+61
-33
lines changed

evergreen/evergreen.yml

Lines changed: 61 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1692,9 +1692,58 @@ tasks:
16921692
OCSP_ALGORITHM: "rsa"
16931693
OCSP_TLS_SHOULD_SUCCEED: "false"
16941694

1695-
- name: test-smoke-tests
1695+
- name: test-smoke-tests-net472
1696+
depends_on:
1697+
- name: push-packages-myget
1698+
variant: ".push-packages-myget"
1699+
commands:
1700+
- func: configure-framework
1701+
vars:
1702+
FRAMEWORK: net472
1703+
- func: bootstrap-mongo-orchestration
1704+
- func: run-smoke-tests
1705+
1706+
- name: test-smoke-tests-netcoreapp31
1707+
depends_on:
1708+
- name: push-packages-myget
1709+
variant: ".push-packages-myget"
16961710
commands:
16971711
- func: configure-framework
1712+
vars:
1713+
FRAMEWORK: netcoreapp3.1
1714+
- func: bootstrap-mongo-orchestration
1715+
- func: run-smoke-tests
1716+
1717+
- name: test-smoke-tests-net50
1718+
depends_on:
1719+
- name: push-packages-myget
1720+
variant: ".push-packages-myget"
1721+
commands:
1722+
- func: configure-framework
1723+
vars:
1724+
FRAMEWORK: net5.0
1725+
- func: bootstrap-mongo-orchestration
1726+
- func: run-smoke-tests
1727+
1728+
- name: test-smoke-tests-net60
1729+
depends_on:
1730+
- name: push-packages-myget
1731+
variant: ".push-packages-myget"
1732+
commands:
1733+
- func: configure-framework
1734+
vars:
1735+
FRAMEWORK: net6.0
1736+
- func: bootstrap-mongo-orchestration
1737+
- func: run-smoke-tests
1738+
1739+
- name: test-smoke-tests-net80
1740+
depends_on:
1741+
- name: push-packages-myget
1742+
variant: ".push-packages-myget"
1743+
commands:
1744+
- func: configure-framework
1745+
vars:
1746+
FRAMEWORK: net8.0
16981747
- func: bootstrap-mongo-orchestration
16991748
- func: run-smoke-tests
17001749

@@ -2066,25 +2115,6 @@ axes:
20662115
variables:
20672116
FRAMEWORK: net6.0
20682117

2069-
- id: runtime_framework
2070-
display_name: Runtime .net
2071-
values:
2072-
- id: "net472"
2073-
variables:
2074-
FRAMEWORK: net472
2075-
- id: "netcoreapp31"
2076-
variables:
2077-
FRAMEWORK: netcoreapp3.1
2078-
- id: "net50"
2079-
variables:
2080-
FRAMEWORK: net5.0
2081-
- id: "net60"
2082-
variables:
2083-
FRAMEWORK: net6.0
2084-
- id: "net80"
2085-
variables:
2086-
FRAMEWORK: net8.0
2087-
20882118
task_groups:
20892119
- name: testazurekms-task-group
20902120
setup_group_can_fail_task: true
@@ -2786,21 +2816,19 @@ buildvariants:
27862816
ssl: "nossl"
27872817
version: ["5.0", "6.0", "7.0", "8.0", "latest"]
27882818
topology: ["replicaset"]
2789-
runtime_framework: "*"
2790-
exclude_spec:
2791-
# We do not support net472 for non-Windows platforms
2792-
- os: ["ubuntu-2004", "macos-14"]
2793-
ssl: "*"
2794-
version: "*"
2795-
topology: "*"
2796-
runtime_framework: "net472"
2797-
display_name: "smoke-tests ${version} on ${os} ${runtime_framework}"
2819+
display_name: "smoke-tests ${version} on ${os}"
27982820
batchtime: 1440 # 1 day
27992821
tasks:
2800-
- name: test-smoke-tests
2801-
depends_on:
2802-
- name: push-packages-myget
2803-
variant: ".push-packages-myget"
2822+
- name: test-smoke-tests-net472
2823+
- name: test-smoke-tests-netcoreapp31
2824+
- name: test-smoke-tests-net50
2825+
- name: test-smoke-tests-net60
2826+
- name: test-smoke-tests-net80
2827+
rules:
2828+
- if: { version: "*", topology: "*", ssl: "*", os: ["ubuntu-2004", "macos-14"] }
2829+
then:
2830+
remove_tasks:
2831+
- test-smoke-tests-net472 # net472 is supported on Windows only.
28042832

28052833
# Package release variants
28062834
- matrix_name: build-packages

0 commit comments

Comments
 (0)