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

312 commits

Author SHA1 Message Date
Pavel Savara
fb61be479e
[wasm][testing] hosting echo server in xharness process (#52923)
- move tests to inner loop
- include echo middleware in xharness server
- improve doc
- more granular ActiveIssue https://github.com/dotnet/runtime/issues/53592 for lack of TRACE
- more granular ActiveIssue https://github.com/dotnet/runtime/issues/53591 for content on GET/HEAD
- more granular ActiveIssue https://github.com/dotnet/runtime/issues/53874 for HttpRequestMessage.Headers.Host
- more granular ActiveIssue https://github.com/dotnet/runtime/issues/53872 for NPE on System.Net.Http.BrowserHttpHandler
- more granular ActiveIssue https://github.com/dotnet/runtime/issues/53876
- include middleware in Helix correlation payload
2021-06-09 17:32:58 +02:00
Aaron Robinson
bf008ec1ce
Update feature-switches.md (#53639) 2021-06-03 19:47:07 -07:00
Radek Doulik
d43b00abe0
[wasm] Bump emscripten to 2.0.21 (#52870)
* Bump emscripten version

* Rename __padding to _padding to avoid warnings

And errors as we use `-Werror`:

    error G94F6014A: identifier '__padding' is reserved because it starts with '__'

C99 and C++ standard defines indentifiers with `__` prefix as reserved.

* Fix cast warning/error

With latest emscripten we get this warning (and error as we use
 `-Werror`):

    src/libraries/Native/Unix/System.Native/pal_process.c(374,92): error G3DC5E52A: cast from 'void (*)(int, siginfo_t *, void *)' to 'void (*)(int)' converts to incompatible function type [-Werror,-Wcast-function-type]
                  void (*oldhandler)(int) = (((unsigned int)sa_old.sa_flags) & SA_SIGINFO) ? (void (*)(int))sa_old.sa_sigaction : sa_old.sa_handler;

* Add `-s DISABLE_EXCEPTION_CATCHING=0`

when building dotnet.js

* Use EMSDK_PYTHON

* Use delayed expansion

Before the `EMSDK_PYTHON` was evaluated before running
the `emsdk_env.bat` script.

* Replace deprecated EXTRA_EXPORTED_RUNTIME_METHODS

with EXPORTED_RUNTIME_METHODS

Build warning/error:

    emcc : warning : EXTRA_EXPORTED_RUNTIME_METHODS is deprecated, please use EXPORTED_RUNTIME_METHODS instead [-Wdeprecated]

* Don't need to cast anymore

* 2.0.21 was just released, so try our luck ;-)

* Use new docker images with 2.0.21

* Use the sys includes fix on all platforms

* Remove deprecated --llvm-opts usage

Context: 0691cc68ee

* Update emscripten version in the workload manifest

* Update emscripten versions in the docs

* Update eng/ versions

* Add ActiveIssue attr in the MemoryCacheTest

* Add ActiveIssue attr to the FileSystem tests

* Update after merge

* Resolve one more conflict

* Add ActiveIssue to the MemoryMappedFiles tests

* Revert "Fix cast warning/error"

This reverts commit 0a1aa4a88c07bc48d3d35c68369d1dca4897d849.

* Unset HAVE_FORK for Browser

* Remove active issue

Fixed by 93cf5df65f

* Set HAVE_FORK to 0

* Set HAVE_FORK to 0 instead if unsetting

* Remove -s DISABLE_EXCEPTION_CATCHING=0

It might not be needed anymore
2021-06-02 12:21:53 +02:00
Adam Sitnik
b443b8ccce
Update testing docs with x86 instructions (#48715)
* Update testing docs with x86 instructions

* Apply suggestions from code review

Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>

* add more examples

* Apply suggestions from code review

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

* Update docs/workflow/testing/libraries/testing.md

Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>

Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
Co-authored-by: Dan Moseley <danmose@microsoft.com>
Co-authored-by: Eric StJohn <ericstj@microsoft.com>
2021-05-24 11:45:21 -07:00
Lakshan Fernando
6854225c09
Com trimming related work (#52940)
* COM related work and native host name changes

* FB
2021-05-21 06:12:46 -07:00
Lakshan Fernando
127be4b389
Native host warnings fix (#52109)
* Native host warnings fix

Native host warnings fix

* Feedback

* Update docs/design/features/IJW-activation.md

Co-authored-by: Vitek Karas <vitek.karas@microsoft.com>

* Update src/coreclr/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.xml

Co-authored-by: Vitek Karas <vitek.karas@microsoft.com>

* Update src/coreclr/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.xml

Co-authored-by: Vitek Karas <vitek.karas@microsoft.com>

* Update docs/workflow/trimming/feature-switches.md

Co-authored-by: Vitek Karas <vitek.karas@microsoft.com>

* fixing the native host feature settings

* feedback on error code

* fb

* FB

* merge conflict

Co-authored-by: Vitek Karas <vitek.karas@microsoft.com>
2021-05-15 13:26:10 -07:00
Andrii Kurdiumov
eb54d0d940
Add list of prerequisites for Gentoo (#50317) 2021-05-11 10:08:59 -07:00
Aaron Robinson
60735c6d3f
NSAutoreleasePool instance should be added to all threads. (#52023)
Add an NSAutoreleasePool to all managed create threads including the Main and Finalizer.

This expands the current support where support was only added to ThreadPool threads. 

New feature switch was created and the ThreadPool one was removed.
 - System.Threading.Thread.EnableAutoreleasePool

Updated AutoReleaseTest for the new scenarios.
2021-05-10 13:31:39 -07:00
Lakshan Fernando
9d46a821f2
Fixes COM warnings (#52176)
* Fixes COm warnings

* fb

* feedback

* missed one name change

* Update docs/workflow/trimming/feature-switches.md

Co-authored-by: Elinor Fung <elfung@microsoft.com>

Co-authored-by: Elinor Fung <elfung@microsoft.com>
2021-05-07 07:39:16 -07:00
Zoltan Varga
da580beb98
[mono] Update wasm debugging docs. (#52211) 2021-05-03 16:25:13 -04:00
Steve Dunn
5d4bdeea8c
Correct grammar (#52151) 2021-05-01 10:55:00 -07:00
Alexander Köplinger
94e14014a0
Fix feature switches doc about UseNativeHttpHandler (#52055)
The value actually checked in the sdk is UseNativeHttpHandler, not HttpNativeHandler.
2021-04-29 17:50:30 +02:00
Aaron Robinson
66abf41f1e
corerun supports user defined properties from command line. (#51774)
* corerun supports user defined properties from command line.

* Update workflow help doc for corerun.

Co-authored-by: Elinor Fung <elfung@microsoft.com>
2021-04-26 20:46:55 -07:00
SingleAccretion
11f1d82225
Fix the docs on building Mono runtime packages (#50583) 2021-04-26 11:16:09 +02:00
Andrei Faber
30b31615b2
debugging.md - fixed incorrect paths (#51577) 2021-04-24 06:36:34 -07:00
Andrei Faber
6328f7bb96
editing-and-debugging.md - fixed incorrect file name (#51741) 2021-04-23 09:53:40 -07:00
Steve Pfister
6ca3d9105d
Shift Most of Wasm AOT test build to helix (#48226)
Since AOT'ing each test suite takes between 3-9 min, we need to shift the burden over to helix.

## This is done by:
1. building the test assemblies on the build machine
   - the wasm part of the build is not executed on the build machine,
      because it has the AOT build part
2. Zip up the test assembly+friends, *and* any bits required to run the wasm
    app build for that on helix (eg. emsdk, wasm app targets, cross compiler etc)
3. Send all this to helix, and use a custom `aot-build.proj`
     - which recreates all the build inputs for the `WasmBuildApp` target
        using the paths for the assets on helix
     - then we can run `WasmBuildApp` for the build, resulting in a wasm app
       bundle.
4. Run the tests!

- We already have the bits required for building wasm apps on helix, supported
for `Wasm.Build.Tests`, which we can use here too.

## Trimming:

- Since, AOT can be so expensive, we use `EnableAggressiveTrimming=true`(EAT), but
   that means that we could have issues due to trimming.
- And it can sometimes be unclear whether the build/test failures are due to trimming
     or AOT.

- Because these builds+test runs are different from other builds, owing to the
   "build partially on helix" step, a normal EAT build would not be the same as 
- to help with testing this, we add two lanes to `runtime-staging`:
   - `*_Mono_AOT`: builds AOT+EAT on helix
   - `*_Mono_EAT`: builds EAT, on helix
      - this is required because we want to run almost the same kinda
         build: 1. build test assembly; *2. send to helix; 3. build wasm app;* 4. run tests

- This should effectively mean that we can see which errors might be due to EAT, and
   which are clearly because of EAT+AOT.

Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
Co-authored-by: Marek Safar <marek.safar@gmail.com>
Co-authored-by: Mitchell Hwang <mitchell.hwang@microsoft.com>
Co-authored-by: Ankit Jain <radical@gmail.com>
2021-04-21 20:58:25 -04:00
Zoltan Varga
bdf33aa9ca
Add wasm runtime debugging docs. (#51623) 2021-04-21 11:04:48 -04:00
Elinor Fung
189829cbf6
Use simpler command in example for building individual coreclr test (#51364)
* Use simpler command in example for building individual coreclr test

* Remove comment about using 'dotnet msbuild'
2021-04-16 10:56:28 -07:00
Mike McLaughlin
79ad10cf22
Add MachO dump writer to createdump (#51150)
* Add MachO dump writer to createdump

Instead of the hacky ELF core dumps on MacOS now createdump generates true MachO dumps.

Setting the COMPlus_DbgEnableElfDumpOnMacOS environment variable is no longer needed.

Add special thread info memory region containing the OS thread ids missing from macho core dumps. This allows SOS to map the thread indexes to thread ids. The address (0x7fffffff00000000) of this special memory region is above the highest user address (0x0007FFFFFFFFF000) and below a kernel reserved address (0xffffff8000xxxxxx) which is kind of moot because dumps don't include any kernel regions. lldb seems just fine with this memory region.

The changes include ARM64 support also, but since I don't have a M1 device I can't build/test them. I'm hoping Steve can at least review them.

Add --verbose/TRACE_VERBOSE support to tone down all the macho dump generation spew.

Issue: #48664

* Fix build problem

* Update docs

* Code review feedback

Co-authored-by: Juan Sebastian Hoyos Ayala <juhoyosa@microsoft.com>
2021-04-15 21:45:55 +00:00
Ankit Jain
8d102e3fc2
[wasm][tests] Enable line numbers in stack traces (#50893) 2021-04-12 13:01:25 -04:00
Pavel Savara
8969ae68d9
make emsdk installation instructions clear on which version need to be installed (#51071)
* make emsdk installation instructions clear on which version need to be installed

* whitespace

* Radek's feedback
2021-04-12 11:17:20 -04:00
Alexander Köplinger
bc9f00c226
Cleanup PlatformSpecific/SkipOnMono attributes that skip a platform (#50907)
We have a bunch of test assemblies that don't make sense on some platforms, e.g. Browser.
Right now we're skipping them via `[SkipOnMono("reason", TestPlatforms.Browser)]` but there's nothing that inherently ties this to Mono other than the current implementation.

The more generic `SkipOnPlatform` attribute can be used instead.
We can also use it in places where we do `[PlatformSpecific(~TestPlatforms....)]` to avoid the double inversion.
2021-04-09 13:20:18 +02:00
erhanatesoglu
aa64d2e712
Fixed broken link (#50964)
The link to xunit on github has changed.
2021-04-08 17:56:01 -04:00
Elinor Fung
5ca4992150
Clarify instructions for building individual test with native dependency (#50869) 2021-04-07 13:59:03 -07:00
Ankit Jain
8a1101d2b5
[wasm][tests] Add properties to allow passing args to xharness (#50678)
* [wasm][tests] Add properties to allow passing args to xharness

New properties:
- `$(WasmXHarnessArgs)`
- `$(WasmXHarnessMonoArgs)`
- `$(WasmTestAppArgs)`

Xharness command line is built with these:

`dotnet xharness wasm test .. $(WasmXHarnessArgs) .. -- $(WasmXHarnessMonoArgs) .. --run .. $(WasmTestAppArgs)`

* [wasm][tests] extract wasm bits into tests.wasm.targets

* [wasm] set EMSDK_PATH for makefile run-tests- targets

* [wasm] Update target dependencies for wasm

* Don't overwrite RunScriptCommand, thus fixing wasm build tests

* Track property name changes
2021-04-07 13:06:55 -04:00
Jeremy Koritzinsky
a211e4fed9
Clarify that Ninja is required for the default build experience. (#50809) 2021-04-06 14:20:40 -07:00
Jeremy Koritzinsky
8c2158f9fe
Make Ninja the default CMake generator on Windows for the repo (#49715)
Co-authored-by: Juan Hoyos <juan.hoyos@microsoft.com>
2021-04-05 09:28:04 -07:00
Ryan Lucia
240fcec9d8
Update iOS workflow docs to clarify simulator/device os split (#50366) 2021-04-05 07:55:20 -04:00
SingleAccretion
af5eae3c87
Delete missed mono/netcore from the documentation (#50557) 2021-04-01 09:27:57 -04:00
Prashanth Govindarajan
3c135c5c38
Prohibit BF unless the app opts in (#48527)
* Prohibit BF unless the app opts in

* Address feedback

* First unit test

* 2nd unit test. Checkpoint

* sq

* sq

* sq

* Address Levi's feedback

* sq

* Address nits

* Linker changes and tests

* sq

* sq

* Linker warnings ids

* Address comments

* Change trimming test so linker can detect a pattern

* sq

* Address comments

* sq

Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
2021-03-31 13:08:23 -07:00
Fan Yang
1ce7460578
Update testing-android.md (#50484) 2021-03-31 10:03:27 -07:00
Eric Erhardt
99f4062f8e
Add documentation on ILLink files (#50302)
* Add documentation on ILLink files

* Add link to ILLink-files from project-guidelines
2021-03-28 16:52:37 -05:00
Steve Pfister
bc5b227c9f
Remove openssl dependency from android (#49282) 2021-03-23 00:17:12 -04:00
Elinor Fung
5738f60553
Update coreclr test doc to call out LibrariesConfiguration (#50002)
Include build configuration in error message about missing artifacts
2021-03-22 18:02:26 -07:00
Jan Kotas
a938d2a5b4
Update minimum recommended cmake version for Windows (#49961) 2021-03-22 09:16:27 -07:00
Elinor Fung
a4c89d6b52
Clarify host testing instructions (#49797) 2021-03-18 09:30:37 -07:00
Steve MacLean
e422345323
Apple Silicon platform detection (#49155)
* Add Apple Silicon PlatformDetection

* Disable OSVersion_ValidVersion_OSX on Apple Silicon

* Update docs
2021-03-04 17:28:07 -05:00
Thays Grazia
bd543ce548
[mono] update readme.md to run sample (#49034)
run-sample does not exist anymore in makefile
2021-03-03 09:01:00 +01:00
Egor Bogatov
8df235a28f
Android / iOS / tvOS specific HttpClientHandler (#47083)
Implements #46646 and #47083 (comment)

Per https://github.com/dotnet/designs/blob/main/accepted/2020/mono-convergence/platform-specific-httpclient.md , the default HttpClientHandler will be the native handler specific to Android, iOS, and tvOS.

To fall back to SocketsHttpHandler, simply set the System.Net.Http.UseNativeHttpHandler AppContext switch.

AppContext.SetSwitch("System.Net.Http.UseNativeHttpHandler", true);
2021-03-02 13:26:18 -05:00
Viktor Hofer
3553284bea
Rename mention to master branch to main (#48824) 2021-03-01 10:09:31 +01:00
Eirik Tsarpalis
8483e9edc8
Update build syntax in mono build docs (#48754) 2021-02-25 15:13:17 +00:00
Jeremy Koritzinsky
86eacff9d9
Threadpool autorelease (#47592) 2021-02-23 17:19:16 -08:00
Juan Hoyos
8a3fd5a065
Update workflow doc to include a rough disk size minimum requirement (#48657)
* Update workflow doc to include a rough disk size minimum requirement
2021-02-23 20:10:26 +01:00
SingleAccretion
9a3e8667e6
Make it clear the subset flag can be omitted (#47691)
* Make it clear the subset flag can be omitted

* Just mention that the subset flag can be implicit
2021-02-23 09:25:02 -08:00
Jose Perez Rodriguez
744f1ffe55
Resolve ILLink warnings for System.Resources.ResourceManager (#47778)
* Making System.Resources.ResourceManager trim safe

* Addressing PR Feedback

* Rename objects => types

* Also rename the strings.resx

* More PR Feedback

* Add UnconditionalSuppressMessage to Extensions

* Rename feature switch and reword error messages

* Removing new warning that is already addressed

* Rename AppContext switch and add feature switch to docs

* Addressing Feedback

* Revert changes to findtype plus some other feedback

* Revert FindType back

* move feature check up
2021-02-08 20:44:48 +00:00
Youssef Victor
5d5c3e7a58
Enable markdownlint rule (MD009) (#40887)
* Create markdownlint.yml

* Create markdownlint-problem-matcher.json

* Create .markdownlint.json

* Update .markdownlint.json

* fix violations

* fixes

* Remove "push" section

As advised by @viktorhofer so it's quite clear it only runs in CI.

Co-authored-by: Dan Moseley <danmose@microsoft.com>
2021-02-08 10:43:40 -08:00
Elinor Fung
9ce547d084
Add example for installing/launching emulator to Android test doc (#47889) 2021-02-05 10:03:38 -08:00
Zoltan Varga
382de3d308
Remove the src/mono/netcore directory, move its contents to src/mono. (#47847)
* Remove the src/mono/netcore directory, move its contents to src/mono.

* Fix docs and make targets.

* Remove the netcore dir itself.

* Fix samples.
2021-02-04 18:59:14 -05:00
Elinor Fung
f31473d2ff
Add doc about running host tests (#47744) 2021-02-02 12:27:24 -08:00