Skip to content

Commit 7ed439c

Browse files
committed
CSHARP-5742: Do not run netstandard tests on ARM platform
1 parent bbd7c43 commit 7ed439c

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

build.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ Setup<BuildConfig>(
396396
// Apple M1 (arm64) must run on .NET 6 as the hosting process is arm64 and cannot load the previous netcoreapp2.1/3.1 runtimes.
397397
// While Rosetta 2 can cross-compile x64->arm64 to run x64 code, it requires a completely separate install of the .NET runtimes
398398
// in a different directory with a x64 dotnet host process. This would further complicate our testing for little additional gain.
399-
var framework = targetPlatform == "arm64" ? "net6.0" : lowerTarget switch
399+
var framework = lowerTarget switch
400400
{
401401
string s when s.EndsWith("netstandard21") || s.EndsWith("netcoreapp31") => "netcoreapp3.1",
402402
string s when s.EndsWith("net472") => "net472",

evergreen/evergreen.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2354,6 +2354,11 @@ buildvariants:
23542354
tasks:
23552355
- name: test-netstandard21
23562356
- name: test-net60
2357+
rules:
2358+
- if: { version: "*", topology: "*", auth: "*", ssl: "*", os: "macos-14-arm64" }
2359+
then:
2360+
remove_tasks:
2361+
- test-netstandard21
23572362

23582363
- matrix_name: "secure-tests-linux-1804"
23592364
matrix_spec: { version: ["4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "auth", ssl: "ssl", os: "ubuntu-1804" }
@@ -2389,6 +2394,11 @@ buildvariants:
23892394
tasks:
23902395
- name: test-netstandard21
23912396
- name: test-net60
2397+
rules:
2398+
- if: { version: "*", topology: "*", auth: "*", ssl: "*", os: "macos-14-arm64" }
2399+
then:
2400+
remove_tasks:
2401+
- test-netstandard21
23922402

23932403
- matrix_name: "unsecure-tests-linux-1804"
23942404
matrix_spec: { version: ["4.2", "4.4", "5.0", "6.0"], topology: "*", auth: "noauth", ssl: "nossl", os: "ubuntu-1804" }
@@ -2424,6 +2434,11 @@ buildvariants:
24242434
tasks:
24252435
- name: test-netstandard21
24262436
- name: test-net60
2437+
rules:
2438+
- if: { compressor : "*", auth: "*", ssl: "*", version: "*", topology: "*", os: "macos-14-arm64" }
2439+
then:
2440+
remove_tasks:
2441+
- test-netstandard21
24272442

24282443
- matrix_name: "tests-compression-linux-1804"
24292444
matrix_spec: { compressor: "*", auth: "noauth", ssl: "nossl", version: ["4.2", "4.4", "5.0", "6.0"], topology: "standalone", os: "ubuntu-1804" }
@@ -2641,6 +2656,12 @@ buildvariants:
26412656
- name: test-csfle-with-mocked-kms-tls-net60
26422657
- name: test-csfle-with-mongocryptd-netstandard21
26432658
- name: test-csfle-with-mongocryptd-net60
2659+
rules:
2660+
- if: { os: "macos-14-arm64", ssl: "*", version: "*", topology: "*" }
2661+
then:
2662+
remove_tasks:
2663+
- test-csfle-with-mocked-kms-tls-netstandard21
2664+
- test-csfle-with-mongocryptd-netstandard21
26442665

26452666
- matrix_name: "csfle-with-azure-kms-tests-linux"
26462667
matrix_spec: { ssl: "nossl", os: "ubuntu-2004" }

0 commit comments

Comments
 (0)