1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-11 18:20:26 +09:00
Commit graph

22 commits

Author SHA1 Message Date
Steve Pfister
209c040d26
[Android] Introduce NetTraceToMibcConverter task & streamline testing targets (#72394)
NetTraceToMibcConverter
    
- Used in profiled AOT scenarios where a .nettrace file is given as input and is converted to a .mibc file that can be fed into the AOT compiler. This previously was in the AotCompiler task, but for clarity purposes is now separated out.
    
Streamline Android testing targets

- The testing targets function the same, but are now structured similarly to iOS and Wasm.

- Introduced new testing properties to support profiled AOT:
    
    NetTraceFilePath - The path to a .nettrace file that will be converted into a .mibc file and fed into the aot compiler
    
    RuntimeComponents - The list of native components to include in the test app build (diagnostics_tracing)
    
    DiagnosticsPorts - The ip address:port where the runtime will listen when running diagnostic tooling
    
    DiagnosticStartupMode - The mode the runtime will use at startup for diagnostic scenarios. Suspend will halt the app very early and wait, while nosuspend will wait for a connection, but not halt the runtime

Co-authored-by: Mitchell Hwang <16830051+mdh1418@users.noreply.github.com>
2022-08-04 13:02:13 -04:00
Jo Shields
eead714e4a
[Android] Don't exclude .gz files from assets.zip (#73077)
Closes: #36845
2022-07-31 08:39:41 -04:00
Adeel Mujahid
9d6396deb0
Fix typos (#72709) 2022-07-23 20:24:28 -07:00
Simon Rozsival
e9b40f5ebe
[Android] Fix some System.Net tests (#71385)
* Implement IncludeNetworkSecurityConfig

* Use IncludeNetworkSecurityConfig

* Fix tests

* Remove active issue attributes

* Rename certificate file

* Revert unnecessary changes

* TMP: re-throw caught exception to reveal more information in logs

* Revert "TMP: re-throw caught exception to reveal more information in logs"

This reverts commit 039d051d6ac60c1c3f1baf37b0c06872f87cac84.

* TMP: add and update res folders until they are merged into runtime-assets

* Fix System.Net.Requests tests

* Re-enable System.Net.Http functional tests

* Try fixing failing test

* Skip failing test

* Add missing using

* Remove temporary test data

* Relax exception type assertion for Android

* Code cleanup

* Fix test failures in System.Net.WebSockets.Client.Tests

* Remove active issue attribute

* Remove most explicit usages of the server certificate custom validation callback in tests

* Fix several tests

* Remove weird condition

* Code clean-up

* Remove unrelated active issue attributes

* Turn ActiveIssue attributes into permanent SkipOnPlatform

* Update explanation for SkipOnPlatform

* Revert partial fix and keep active issue

* Keep active issue for android x64 and x86

* Remove invalid attribute

* Fix test on Browser

* Allow all certificates by default

* Fix build

* Fix http client handler factory on Browser

* Skip failing test

* Fix net48 build

* Revert unintentional change in WinHttpHandler tests

* Avoid using unsupported property on Browser

* Remove unnecessary default value

* Avoid using unsupported property on Browser
2022-07-20 11:49:36 +02:00
Alexander Köplinger
921029babd
Update Android NDK and set optimization flags (#68354)
Brings in new cmake 2.23.1 and Android NDK23c which fixes an issue with the binary size and perf of libmonosgen-2.0.so

In NDK23b they decided to no longer pass -O2 compiler optimization flag (for arm64, armv7 used -Oz) as part of the Android toolchain but delegate to upstream CMake behavior: https://github.com/android/ndk/wiki/Changelog-r23 and https://github.com/android/ndk/issues/1536

CMake defaults to -O3 for Release builds but unfortunately this causes quite a noticable binary size increase and perf regression.

The Xamarin Android team measured startup time on an average of 10 runs of `dotnet new maui` on a Pixel 5:
```
-O3: 893.7ms
-O2: 600.2ms
-Oz: 649.1ms
```

We now explicitly pass in -O2 for Android builds.

Fixes https://github.com/dotnet/runtime/issues/68330
2022-07-01 00:26:14 +02:00
Adeel Mujahid
55e2378d86
Fix typos (#69537)
* Fix typos

* Fix typo: seperate -> separate

* Rename ApplicationNameSetFromArgument

* Update src/coreclr/vm/methodtablebuilder.cpp

* Update docs/coding-guidelines/clr-code-guide.md

Co-authored-by: Dan Moseley <danmose@microsoft.com>

* Update src/mono/mono/tests/verifier/make_tests.sh

Co-authored-by: Dan Moseley <danmose@microsoft.com>
Co-authored-by: Jan Kotas <jkotas@microsoft.com>
2022-05-23 10:14:58 -07:00
Alexander Köplinger
d81ac24b2b
Support d8 instead of dx in ApkBuilder (#68084)
dx has officially been removed from Android SDK since build-tools version 31.0.0.

Fixes https://github.com/dotnet/runtime/issues/65087
2022-04-17 12:06:02 +02:00
Jeremy Koritzinsky
c16075477d
Various fixes for merged test runners on Mono (#67665) 2022-04-06 21:53:41 -07:00
Steve Pfister
f1dbe2ec06
[Android] Re-enable System.Security.Cryptography tests (#67057)
The crypto test suites were originally disabled as they would run out of memory on both emulators and devices somewhat frequently.

This change enables them again, with the difference being that xunit will run tests on a single thread.

Addresses #62547
2022-03-24 15:36:42 -04:00
Marek Safar
6de7147b92
Enable IDE0059 analyzer: Unnecessary assignment of a value (#63340) 2022-01-12 18:10:45 +01:00
Jo Shields
10b2f7c858
Work around for forbidden "Roslyn4.0" in test name on Android (#59263)
Android apk names must be valid Java class names, and It is forbidden in Java for a class name component to have a leading numeric digit. So whilst "net.dot.foo3_1" is legal, "net.dot.foo3.1" is illegal. Use a Regex to detect and rewrite all cases of this in AndroidAppBuilder
2021-09-17 16:52:43 -04:00
Ankit Jain
3301e9dc72
[wasm] Use compile rsp instead of link, for compiling native files (#55848)
.. and fix logging that broke recently.

`tasks/Common/Utils.cs`:

TaskLoggingHelper Utils.Logger is a static field, which must be set by
task else any methods in Utils, eg. RunProcess, silently fail to log
any messages. Also, this would be a problem when building multiple
projects in parallel, since the logger is a task-specific one.

Instead, we pass logger as an arg to all the methods.
2021-07-19 01:55:28 -04:00
Alexander Köplinger
bd416d7bca
Add option to MonoAOTCompiler msbuild task to generate .so files (#55753) 2021-07-15 22:40:54 +02:00
Stephen Toub
cd0b3ef669
Update NetAnalyzers version (#54511)
* Update NetAnalyzers version

* Add NetAnalyzers to dependency flow

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
2021-06-23 08:34:38 +02:00
Steve Pfister
4fd380a716
[Android] Fix AndroidAppBuilder to work w/ AOT+LLVM (#53643)
We were missing a few key additions to make sure we can test against AOT+LLVM. This change will make sure we link against all the .dll-llvm.o files produced from the AOT compiler and include the right mtriple for each architecture.

Fixes #53628
2021-06-22 15:00:17 -04:00
Johan Lorensson
e41a250034
Add diagnostic support into sample app and AppBuilders on Mono. (#53361) 2021-05-31 09:46:02 +02:00
Johan Lorensson
e8875e309f
Mono runtime dynamic component support. (#53221) 2021-05-26 16:10:44 +02:00
Steve Pfister
77a87df248
PNSE BinaryFormatter on mobile and skip related tests (#52248) 2021-05-07 16:12:13 -04:00
Johan Lorensson
58b25dfa8f
Mono runtime component infrastructure including EventPipe/DiagnosticsServer as a Mono runtime component. (#50837)
Implementation of Mono runtime component infrastructure, https://github.com/dotnet/runtime/blob/main/docs/design/mono/components.md.

This commit also includes a port of Mono EventPipe/DiagnosticsServer library over to new runtime component infrastructure.

Before all packaging/deploy have been fixed for platforms that will switch over to hosting components as shared libraries, all components will be build and linked using the static linkage scenario outline in document above. Once package and deploy is resolved for dynamic linking scenarios, we will switch this for corresponding platforms in follow up commits.
2021-04-20 17:01:33 +02:00
Maxim Lipnin
e61c3724b1
Add android AOT/PInvoke functional test (#47167) 2021-03-02 14:19:33 +01:00
Elinor Fung
2b16be0569
Make ApkBuilder optionally generate debuggable apk (#48486) 2021-02-19 04:57:25 +00:00
Viktor Hofer
e35526f2e7
Move msbuild tasks into src folder and delete dead code (#45722)
* Move tools-local\tasks to src\tasks

* Delete dead task code

* nit installer.tasks.csproj changes

* Remove mobile.tasks intermediate folder
2020-12-08 13:31:52 +01:00
Renamed from tools-local/tasks/mobile.tasks/AndroidAppBuilder/ApkBuilder.cs (Browse further)