diff options
author | Fan Yang <52458914+fanyang-mono@users.noreply.github.com> | 2021-06-21 23:04:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 23:04:39 +0300 |
commit | 213600c17635bf25f812a6a7e6ab53d4fa875883 (patch) | |
tree | 59b1a9f636a972d0b05d1feb45d550917b90c6a8 /eng | |
parent | 2bc86980ba50713ced7a2ef12187c299ad6a355a (diff) |
[Mono] Enable runtime tests to run on Android x64 with interpreter (#54084)
* Enable Android x64 with interpreter
* Make variable RuntimeVariant available for testenvironment
* Pass down runtimeVariant
* Verify that tests are running with interpreter
* Pass MONO_ENV_OPTIONS value to the app
* Set ForceInterpreter to true
* Change default value for interp to false
* dummy commit
* dummy commit 2
* dummy commit
* Configure interp for Android
* Pass RuntimeVariant down as a parameter
* Add issue link
* Enable Mono with interpreter on desktop
* Disable Android x64 with JIT
* Revert hacks to enable all lanes
* revert unintentional change
* Disable Vector128_1_r*
Diffstat (limited to 'eng')
-rw-r--r-- | eng/pipelines/common/templates/runtimes/android-runtime-and-send-to-helix.yml | 3 | ||||
-rw-r--r-- | eng/pipelines/runtime-staging.yml | 38 |
2 files changed, 40 insertions, 1 deletions
diff --git a/eng/pipelines/common/templates/runtimes/android-runtime-and-send-to-helix.yml b/eng/pipelines/common/templates/runtimes/android-runtime-and-send-to-helix.yml index c45d9f2f5d3..f42787af8eb 100644 --- a/eng/pipelines/common/templates/runtimes/android-runtime-and-send-to-helix.yml +++ b/eng/pipelines/common/templates/runtimes/android-runtime-and-send-to-helix.yml @@ -26,7 +26,7 @@ parameters: steps: - - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) /p:LibrariesConfiguration=${{ parameters.buildConfig }} -ci -excludemonofailures os ${{ parameters.osGroup }} ${{ parameters.archType }} $(buildConfigUpper) + - script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) /p:LibrariesConfiguration=${{ parameters.buildConfig }} -ci -excludemonofailures os ${{ parameters.osGroup }} ${{ parameters.archType }} /p:RuntimeVariant=${{ parameters.runtimeVariant }} $(buildConfigUpper) displayName: Build Tests # Send tests to Helix @@ -40,6 +40,7 @@ steps: coreClrRepoRoot: $(Build.SourcesDirectory)/src/coreclr runtimeFlavorDisplayName: ${{ parameters.runtimeFlavorDisplayName }} shouldContinueOnError: ${{ parameters.shouldContinueOnError }} + runtimeVariant: ${{ parameters.runtimeVariant }} ${{ if eq(variables['System.TeamProject'], 'public') }}: creator: $(Build.DefinitionName) diff --git a/eng/pipelines/runtime-staging.yml b/eng/pipelines/runtime-staging.yml index eaaa9e08fe2..5def476efef 100644 --- a/eng/pipelines/runtime-staging.yml +++ b/eng/pipelines/runtime-staging.yml @@ -298,6 +298,44 @@ jobs: eq(variables['monoContainsChange'], true), eq(variables['isFullMatrix'], true)) +# +# Build the whole product using Mono for Android and run runtime tests with interpreter +# +- template: /eng/pipelines/common/platform-matrix.yml + parameters: + jobTemplate: /eng/pipelines/common/global-build-job.yml + helixQueuesTemplate: /eng/pipelines/coreclr/templates/helix-queues-setup.yml + buildConfig: Release + runtimeFlavor: mono + platforms: + - Android_x64 + variables: + - ${{ if and(eq(variables['System.TeamProject'], 'public'), eq(variables['Build.Reason'], 'PullRequest')) }}: + - name: _HelixSource + value: pr/dotnet/runtime/$(Build.SourceBranch) + - ${{ if and(eq(variables['System.TeamProject'], 'public'), ne(variables['Build.Reason'], 'PullRequest')) }}: + - name: _HelixSource + value: ci/dotnet/runtime/$(Build.SourceBranch) + - name: timeoutPerTestInMinutes + value: 60 + - name: timeoutPerTestCollectionInMinutes + value: 180 + jobParameters: + testGroup: innerloop + nameSuffix: AllSubsets_Mono_RuntimeTests + buildArgs: -s mono+libs -c $(_BuildConfig) + timeoutInMinutes: 240 + runtimeVariant: monointerpreter + condition: >- + or( + eq(dependencies.evaluate_paths.outputs['SetPathVars_runtimetests.containsChange'], true), + eq(dependencies.evaluate_paths.outputs['SetPathVars_mono.containsChange'], true), + eq(variables['isFullMatrix'], true)) + # extra steps, run tests + extraStepsTemplate: /eng/pipelines/common/templates/runtimes/android-runtime-and-send-to-helix.yml + extraStepsParameters: + creator: dotnet-bot + testRunNamePrefixSuffix: Mono_$(_BuildConfig) # # Build the whole product using Mono for Android and run runtime tests with Android devices |