-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add Android functional test for invariant culture only mode #49204
Merged
MaximLipnin
merged 1 commit into
dotnet:main
from
MaximLipnin:add_android_invariant_mode_func_test
Mar 11, 2021
Merged
Add Android functional test for invariant culture only mode #49204
MaximLipnin
merged 1 commit into
dotnet:main
from
MaximLipnin:add_android_invariant_mode_func_test
Mar 11, 2021
Conversation
This file contains 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
Tagging subscribers to this area: @directhex Issue DetailsContributes to #43865
|
steveisok
approved these changes
Mar 9, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this out of draft
CoffeeFlux
approved these changes
Mar 11, 2021
radical
added a commit
to radical/runtime
that referenced
this pull request
Mar 11, 2021
.. tests. Code stolen from @maximlipin's dotnet#49204
radical
added a commit
that referenced
this pull request
Mar 29, 2021
* [wasm] Wasm.Build.Tests: add support for shared builds - Essentially, we want to share builds wherever possible. Example cases: - Same build, but run with different hosts like v8/chrome/safari, as separate test runs - Same build but run with different command line arguments - Sharing builds especially helps when we are AOT'ing, which is slow! - This is done by caching the builds with the key: `public record BuildArgs(string ProjectName, string Config, bool AOT, string ProjectFileContents, string? ExtraBuildArgs);` - Also, ` SharedBuildClassFixture` is added, so that the builds can be cleaned up after all the tests in a particular class have finished running. - Each test run gets a randomly generated test id. This is used for creating: 1. build paths, like `artifacts/bin/Wasm.Build.Tests/net6.0-Release/browser-wasm/xharness-output/logs/n1xwbqxi.ict` 2. and the log for running with xharness, eg. for Chrome, are in `artifacts/bin/Wasm.Build.Tests/net6.0-Release/browser-wasm/xharness-output/logs/n1xwbqxi.ict/Chrome/` - split `WasmBuildAppTest.cs` into : `BuildTestBase.cs`, and `MainWithArgsTests.cs`. * [wasm] Wasm.Build.Tests: Add test for relinking with InvariantGlobalization * [wasm] Wasm.Build.Tests - Check `CultureInfo` for invariant culture .. tests. Code stolen from @maximlipin's #49204 * fix invariant+aot test * [wasm] Fix the order of include paths For AOT we generate `pinvoke-table.h` in the obj directory. But there is one present in the runtime pack too. In my earlier changes the order in which these were passed as include search paths was changed from: `"-I/runtime/pack/microsoft.netcore.app.runtime.browser-wasm/Release/runtimes/browser-wasm/native/include/wasm" "-Iartifacts/obj/mono/Wasm.Console.Sample/wasm/Release/browser-wasm/wasm/"` .. which meant that the one from the runtime pack took precedence, and got used. So, fix the order! And change the property names to indicate where they are sourced from. * [wasm] Only test with Release config on CI * [wasm] Fallback to `dotnet xharness` if `XHARNESS_CLI_PATH` is not set. The environment variable is set on helix. During local testing it can be useful when using a locally built xharness. * [wasm] fix invariant test - 'en-ES' -> 'es-ES' * [wasm] RunWithEmSdkEnv: log the working directory also * [wasm] Re-enable wasm build tests * [wasm] Add regression test for issue #49588 * fix test * [wasm] Cleanup, and add more tests * Update tests to track wasm relinking being default in some cases * Fix InvariantGlobalization to track change in wasm relinking defaults * [wasm] Update emsdk check message to track changes * [wasm] Update tests to track changes * [wasm] Move Scenario=BuildWasmApps to be submitted first TLDR; - this might help with the job getting scheduled first, and thus having a chance at completing at the same time as others. Reasoning: The problem this is trying to fix is: 1. The helix step submits 3 jobs: a. library tests to be run with v8 b. library tests to be run with browser (scenario=wasmtestonbrowser) c. Wasm.Build.Tests (scenario=buildwasmapps) 2. The 3 jobs, individually take roughly 30mins each 3. And they get submitted at roughly the same time 4. But .. the first two seem to complete earlier, and the 3rd one completes 25-30mins later. The hypothesis is that all the machines might be busy processing the 200+ work items from each of the first two steps, and so Wasm.Build.Tests get scheduled pretty late. So, here we move that to be submitted first, in the hope that it would be able to run in parallel with the other jobs.
ghost
locked as resolved and limited conversation to collaborators
Apr 10, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Contributes to #43865
/build.sh mono+libs -os Android -arch x64 -c Release
./dotnet.sh build /t:Test src/tests/FunctionalTests/Android/Device_Emulator/InvariantCultureOnlyMode /p:TargetOS=Android /p:TargetArchitecture=x64 /p:Configuration=Release