Remove unnecessary R2R jobs (dotnet/coreclr#18902)
authorBruce Forstall <brucefo@microsoft.com>
Fri, 13 Jul 2018 18:02:48 +0000 (11:02 -0700)
committerGitHub <noreply@github.com>
Fri, 13 Jul 2018 18:02:48 +0000 (11:02 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/454dcdad0b04980e1085acb1c16f386c4b450a60

src/coreclr/netci.groovy

index 25120c9..db99a28 100755 (executable)
@@ -2730,9 +2730,28 @@ def static shouldGenerateJob(def scenario, def isPR, def architecture, def confi
         if (os != 'Windows_NT') {
             return false
         }
-        // Stress scenarios only run with Checked builds, not Release (they would work with Debug, but be slow).
-        if ((configuration != 'Checked') && isR2RStressScenario(scenario)) {
-            return false
+
+        if (isR2RBaselineScenario(scenario)) {
+            // no need for Debug scenario; Checked is sufficient
+            if (configuration != 'Checked' && configuration != 'Release') {
+                return false
+            }
+        }
+        else if (isR2RStressScenario(scenario)) {
+            // Stress scenarios only run with Checked builds, not Release (they would work with Debug, but be slow).
+            if (configuration != 'Checked') {
+                return false
+            }
+        }
+
+        switch (architecture) {
+            case 'arm':
+            case 'arm64':
+                // Windows arm/arm64 ready-to-run jobs use flow jobs and test jobs, but depend on "normal" (not R2R specific) build jobs.
+                return false
+
+            default:
+                break
         }
     }
     else {