[wasm] CI: fix the new runtime-wasm-dbgtests pipeline (#81513)
authorAnkit Jain <radical@gmail.com>
Thu, 2 Feb 2023 16:59:18 +0000 (11:59 -0500)
committerGitHub <noreply@github.com>
Thu, 2 Feb 2023 16:59:18 +0000 (11:59 -0500)
* [wasm] CI: fix the new runtime-wasm-dbgtests pipeline

* update README

* fix

* runtime-wasm-dbgtests: disable automatic run for PRs also

eng/pipelines/common/variables.yml
eng/pipelines/extra-platforms/runtime-extra-platforms-wasm.yml
eng/pipelines/runtime-wasm-dbgtests.yml
src/mono/wasm/README.md

index 24c4a7735e785a9d2a064e8d79f4a22cccdb841e..84343a31e095b0ac430c39c1111837ef0c7f7885 100644 (file)
@@ -18,7 +18,7 @@ variables:
 - name: isNotExtraPlatformsBuild
   value: ${{ ne(variables['Build.DefinitionName'], 'runtime-extra-platforms') }}
 - name: isWasmOnlyBuild
-  value: ${{ in(variables['Build.DefinitionName'], 'runtime-wasm', 'runtime-wasm-libtests', 'runtime-wasm-non-libtests') }}
+  value: ${{ in(variables['Build.DefinitionName'], 'runtime-wasm', 'runtime-wasm-libtests', 'runtime-wasm-non-libtests', 'runtime-wasm-dbgtests') }}
 - name: isiOSLikeOnlyBuild
   value: ${{ in(variables['Build.DefinitionName'], 'runtime-ioslike') }}
 - name: isiOSLikeSimulatorOnlyBuild
index a5b6e050b24078ba3271bd90d4bb8a5fe36edef1..1fff116909b81be009dfb2e94f456c21b5e82795 100644 (file)
@@ -9,6 +9,7 @@ parameters:
   isRollingBuild: false
   excludeLibTests: false
   excludeNonLibTests: false
+  debuggerTestsOnly: false
 
 jobs:
 
@@ -61,7 +62,7 @@ jobs:
 # - run everything, if relevant paths changed
 # - For runtime-wasm, force run all the jobs
 #
-- ${{ if and(ne(parameters.isRollingBuild, true), ne(parameters.excludeLibTests, true)) }}:
+- ${{ if and(ne(parameters.isRollingBuild, true), ne(parameters.excludeLibTests, true), ne(parameters.debuggerTestsOnly, true)) }}:
   # Library tests
   # these run on runtime also
   - template: /eng/pipelines/common/templates/wasm-library-tests.yml
@@ -175,7 +176,7 @@ jobs:
       isWasmOnlyBuild: ${{ parameters.isWasmOnlyBuild }}
       alwaysRun: ${{ parameters.isWasmOnlyBuild }}
 
-- ${{ if and(ne(parameters.isRollingBuild, true), ne(parameters.excludeNonLibTests, true)) }}:
+- ${{ if and(ne(parameters.isRollingBuild, true), ne(parameters.excludeNonLibTests, true), ne(parameters.debuggerTestsOnly, true)) }}:
   # Wasm.Build.Tests
   - template: /eng/pipelines/common/templates/wasm-build-tests.yml
     parameters:
@@ -185,19 +186,20 @@ jobs:
       isExtraPlatformsBuild: ${{ parameters.isExtraPlatformsBuild }}
       isWasmOnlyBuild: ${{ parameters.isWasmOnlyBuild }}
 
-  # Debugger tests
-  - template: /eng/pipelines/common/templates/wasm-debugger-tests.yml
+  - template: /eng/pipelines/common/templates/wasm-runtime-tests.yml
     parameters:
       platforms:
         - browser_wasm
-        - browser_wasm_win
       isExtraPlatformsBuild: ${{ parameters.isExtraPlatformsBuild }}
       isWasmOnlyBuild: ${{ parameters.isWasmOnlyBuild }}
 
-  - template: /eng/pipelines/common/templates/wasm-runtime-tests.yml
+- ${{ if and(ne(parameters.isRollingBuild, true), or(ne(parameters.excludeNonLibTests, true), eq(parameters.debuggerTestsOnly, true))) }}:
+  # Debugger tests
+  - template: /eng/pipelines/common/templates/wasm-debugger-tests.yml
     parameters:
       platforms:
         - browser_wasm
+        - browser_wasm_win
       isExtraPlatformsBuild: ${{ parameters.isExtraPlatformsBuild }}
       isWasmOnlyBuild: ${{ parameters.isWasmOnlyBuild }}
 
index 85e66692f648a5a4900c17215348782d7afe749a..fb5ee6123fdbf1bb6988fb794800d639cd23b178 100644 (file)
@@ -1,41 +1,24 @@
 trigger: none
+pr: none
 
 variables:
   - template: /eng/pipelines/common/variables.yml
 
-jobs:
-
-#
-# Evaluate paths
-#
-- template: /eng/pipelines/common/evaluate-default-paths.yml
-
-# Debugger tests
-- template: /eng/pipelines/common/templates/wasm-debugger-tests.yml
+extends:
+  template:  /eng/pipelines/common/templates/pipeline-with-resources.yml
   parameters:
-    platforms:
-      - Browser_wasm
-      - Browser_wasm_win
-    isExtraPlatformsBuild: ${{ parameters.isExtraPlatformsBuild }}
-    isWasmOnlyBuild: ${{ parameters.isWasmOnlyBuild }}
+    stages:
+    - stage: Build
+      jobs:
 
-- template: /eng/pipelines/common/templates/wasm-debugger-tests.yml
-  parameters:
-    platforms:
-      - Browser_wasm
-      - Browser_wasm_win
-    extraBuildArgs: /p:MonoWasmBuildVariant=multithread /p:WasmEnableThreads=true
-    nameSuffix: DebuggerTests_MultiThreaded
-    isExtraPlatformsBuild: ${{ parameters.isExtraPlatformsBuild }}
-    isWasmOnlyBuild: ${{ parameters.isWasmOnlyBuild }}
+      #
+      # Evaluate paths
+      #
+      - template: /eng/pipelines/common/evaluate-default-paths.yml
 
-- template: /eng/pipelines/common/templates/wasm-debugger-tests.yml
-  parameters:
-    platforms:
-      - Browser_wasm_firefox
-    browser: firefox
-    isExtraPlatformsBuild: ${{ parameters.isExtraPlatformsBuild }}
-    isWasmOnlyBuild: ${{ parameters.isWasmOnlyBuild }}
-    alwaysRun: ${{ parameters.isWasmOnlyBuild }}
-    # ff tests are unstable currently
-    shouldContinueOnError: true
+      - template: /eng/pipelines/extra-platforms/runtime-extra-platforms-wasm.yml
+        parameters:
+          isExtraPlatformsBuild: ${{ variables.isExtraPlatformsBuild }}
+          isWasmOnlyBuild: ${{ variables.isWasmOnlyBuild }}
+          isRollingBuild: ${{ variables.isRollingBuild }}
+          debuggerTestsOnly: true
index 110f876859ca549325066cc8d35ac90cc58ebfea..b092b4843ff6b8686cafb3074389c1cb621bdfa3 100644 (file)
@@ -314,6 +314,8 @@ npm update --lockfile-version=1
 * `runtime-extra-platforms` does not run any wasm jobs on PRs
 * `high resource aot` runs a few specific library tests with AOT, that require more memory to AOT.
 
+* `runtime-wasm-dbgtests` runs all the debugger test jobs
+
 ## Rolling build (twice a day):
 
 * `runtime` runs all the wasm jobs, but `AOT` still only runs smoke tests.