[wasm] Use latest stable version of chrome for testing (#77133)
authorAnkit Jain <radical@gmail.com>
Tue, 25 Oct 2022 08:17:52 +0000 (04:17 -0400)
committerGitHub <noreply@github.com>
Tue, 25 Oct 2022 08:17:52 +0000 (04:17 -0400)
commit94c9d021c487f977a42bacea6412f0c46097d2a9
tree88159fa43757cd68e37ab70e638bf463e9082f67
parent5108757b997c59ab8ba1fc5309ab0d4e730e2b77
[wasm] Use latest stable version of chrome for testing (#77133)

* Use the latest `stable` chrome version by default
* Install these by default on codespaces

## Details

- Added a new task `GetChromeVersions` to get the latest version
- This is applicable to library tests, debugger tests, and Wasm.Build.Tests
- The channel used for getting the "latest" version is `$(ChromeChannel)=stable`
- And they are installed in `artifacts/bin/chrome`, and `artifacts/bin/chromedriver`
- A newer version is fetched only `$(ChromeVersionCheckThresholdDays)=3` days after the last version check
- This is enabled by default on containers
- And the behavior can be disabled with `$(InstallChromeForTests)=false`.
14 files changed:
eng/pipelines/common/templates/wasm-library-tests.yml
eng/testing/ProvisioningVersions.props
eng/testing/WasmRunnerTemplate.sh
eng/testing/provisioning.targets [deleted file]
eng/testing/tests.wasm.targets
eng/testing/wasm-provisioning.targets [new file with mode: 0644]
src/libraries/pretest.proj
src/libraries/sendtohelix-wasm.targets
src/mono/wasm/Wasm.Build.Tests/Wasm.Build.Tests.csproj
src/mono/wasm/Wasm.Build.Tests/data/RunScriptTemplate.cmd
src/mono/wasm/Wasm.Build.Tests/data/RunScriptTemplate.sh
src/mono/wasm/debugger/DebuggerTestSuite/DebuggerTestSuite.csproj
src/tasks/WasmBuildTasks/GetChromeVersions.cs [new file with mode: 0644]
src/tasks/WasmBuildTasks/WasmBuildTasks.csproj