-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[browser][coreCLR] enable System.Runtime.Tests on CI as Release build #122980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
46b6bd6
wip
pavelsavara dbfee63
ActiveIssue https://github.com/dotnet/runtime/issues/123011
pavelsavara 9fd79e9
fix CI
pavelsavara 0ffcc20
fix CI
pavelsavara 2439157
feedback
pavelsavara 09c73c2
Relese WBT
pavelsavara 43cb32d
Merge branch 'main' into SystemRuntimeTests
pavelsavara 4c201f5
Merge branch 'main' into SystemRuntimeTests
pavelsavara 0881720
feedback
pavelsavara 3332766
rollup for debug on CI
pavelsavara 29d3275
disable trimming
pavelsavara eb4fa87
whitespace
pavelsavara 1956f53
whitespace
pavelsavara 9c90e7c
reduce active issues
pavelsavara 856bca6
switch back WBT to debug because of trimming issues
pavelsavara 709b47c
fix trimming ?
pavelsavara d6d7455
also release WBT
pavelsavara File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 101 additions & 0 deletions
101
eng/pipelines/common/templates/wasm-coreclr-library-tests.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| parameters: | ||
| alwaysRun: false | ||
| extraBuildArgs: '' | ||
| extraHelixArguments: '' | ||
| isExtraPlatformsBuild: false | ||
| isWasmOnlyBuild: false | ||
| nameSuffix: '' | ||
| platforms: [] | ||
| scenarios: ['WasmTestOnChrome'] | ||
| shouldContinueOnError: false | ||
| shouldRunSmokeOnly: false | ||
|
|
||
| jobs: | ||
|
|
||
| # | ||
| # Build for Browser/wasm and test it | ||
| # | ||
| - template: /eng/pipelines/common/platform-matrix.yml | ||
| parameters: | ||
| jobTemplate: /eng/pipelines/common/global-build-job.yml | ||
| helixQueuesTemplate: /eng/pipelines/libraries/helix-queues-setup.yml | ||
| buildConfig: Release | ||
| runtimeFlavor: coreclr | ||
| platforms: ${{ parameters.platforms }} | ||
| shouldContinueOnError: ${{ parameters.shouldContinueOnError }} | ||
| variables: | ||
| # map dependencies variables to local variables | ||
| - name: alwaysRunVar | ||
| value: ${{ parameters.alwaysRun }} | ||
| # - wasm darc deps changed | ||
| # - any libs that can have wasm specific changes | ||
| # - any other wasm specific changes that are not wbt, or dbg | ||
| - name: shouldRunOnDefaultPipelines | ||
| value: $[ | ||
| or( | ||
| eq(variables['wasmDarcDependenciesChanged'], true), | ||
| eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_tools_illink.containsChange'], true), | ||
| eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_libraries.containsChange'], true), | ||
| eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_wasm_chrome.containsChange'], true), | ||
| eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_wasm_specific_except_wbt_dbg.containsChange'], true)) | ||
| ] | ||
| # run smoke tests only if: | ||
| # - explicitly requested | ||
| # - libraries or illink changed and no wasm specific changes | ||
| - name: shouldRunSmokeOnlyVar | ||
| value: $[ | ||
| or( | ||
| eq('${{ parameters.shouldRunSmokeOnly }}', 'true'), | ||
| and( | ||
| eq('${{ parameters.shouldRunSmokeOnly }}', 'onLibrariesAndIllinkChanges'), | ||
| ne(variables['wasmDarcDependenciesChanged'], true), | ||
| or( | ||
| eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_tools_illink.containsChange'], true), | ||
| eq(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_libraries.containsChange'], true) | ||
| ), | ||
| ne(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_wasm_chrome.containsChange'], true), | ||
| ne(stageDependencies.EvaluatePaths.evaluate_paths.outputs['SetPathVars_wasm_specific_except_wbt_dbg.containsChange'], true) | ||
| ) | ||
| ) | ||
| ] | ||
| - name: _wasmRunSmokeTestsOnlyArg | ||
| value: /p:RunSmokeTestsOnly=$(shouldRunSmokeOnlyVar) | ||
| - name: chromeInstallArg | ||
| ${{ if containsValue(parameters.scenarios, 'WasmTestOnChrome') }}: | ||
| value: /p:InstallChromeForTests=true | ||
| ${{ else }}: | ||
| value: '' | ||
| - name: firefoxInstallArg | ||
| ${{ if containsValue(parameters.scenarios, 'WasmTestOnFirefox') }}: | ||
| value: /p:InstallFirefoxForTests=true | ||
| ${{ else }}: | ||
| value: '' | ||
| - name: v8InstallArg | ||
| ${{ if containsValue(parameters.scenarios, 'WasmTestOnV8') }}: | ||
| value: /p:InstallV8ForTests=true | ||
| ${{ else }}: | ||
| value: '' | ||
|
|
||
| jobParameters: | ||
| isExtraPlatforms: ${{ parameters.isExtraPlatformsBuild }} | ||
| testGroup: innerloop | ||
| nameSuffix: LibraryTestsCoreCLR${{ parameters.nameSuffix }} | ||
| buildArgs: -s clr+libs+host+packs+libs.tests -c $(_BuildConfig) /p:ArchiveTests=true /p:BrowserHost=$(_hostedOs) $(_wasmRunSmokeTestsOnlyArg) $(chromeInstallArg) $(firefoxInstallArg) $(v8InstallArg) /maxcpucount:1 ${{ parameters.extraBuildArgs }} | ||
| timeoutInMinutes: 240 | ||
| # if !alwaysRun, then: | ||
| # if this is runtime-wasm (isWasmOnlyBuild): | ||
| # - then run only if it would not have run on default pipelines (based | ||
| # on path changes) | ||
| # - else run based on path changes | ||
| condition: >- | ||
| or( | ||
| eq(variables['alwaysRunVar'], true), | ||
| eq(variables['isDefaultPipeline'], variables['shouldRunOnDefaultPipelines'])) | ||
| # extra steps, run tests | ||
| postBuildSteps: | ||
| - template: /eng/pipelines/libraries/helix.yml | ||
| parameters: | ||
| creator: dotnet-bot | ||
| testRunNamePrefixSuffix: CoreCLR_$(_BuildConfig) | ||
| extraHelixArguments: /p:BrowserHost=$(_hostedOs) $(_wasmRunSmokeTestsOnlyArg) ${{ parameters.extraHelixArguments }} | ||
| scenarios: ${{ parameters.scenarios }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.