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

424 commits

Author SHA1 Message Date
Andy Gocke
f0ff6d6948
Revert "Add more complete linux build instructions (#101631)" (#104581)
This reverts commit 55747a5866.
2024-07-08 16:38:49 -07:00
Andy Gocke
55747a5866
Add more complete linux build instructions (#101631)
I'm trying to make it slightly easier to install the needed requirements, and add some validation if a user hasn't installed the requirements.

Also, I validated that these instructions still work for Ubuntu 24.04 and have noted that other installs are only community-supported.
2024-07-08 23:15:02 +00:00
Andy Gocke
21cde6987f
Update pr-guide with staleness requirement (#104576) 2024-07-08 14:47:24 -07:00
Jan Kotas
58b5a6c229
A few more net8 to net9 renames (#104342) 2024-07-03 10:27:01 -07:00
Jan Kotas
99e94ce55d
Replace net8 with net9 under docs (#104189)
Fixes #104088
2024-06-29 07:44:01 -04:00
Eirik Tsarpalis
a95e71806d
Remove NullabilityInfoContext.IsSupported feature switch (#103970)
* Remove NullabilityInfoContext.IsSupported feature switch

* Remove trimming tests
2024-06-26 12:43:21 +01:00
Alexander Köplinger
7107ff64f3
Update references to dotnet/installer repo (#103077)
The installer repo was merged into the sdk repo.
2024-06-06 00:11:49 +02:00
Ken Dale
59f2833b98
Update docs.microsoft.com usages to learn.microsoft.com (#102881)
* Update https://docs.microsoft.com to https://learn.microsoft.com

* Update http://docs.microsoft.com/ to https://learn.microsoft.com (removes trailing slash)

* Update docs.microsoft.com to https://learn.microsoft.com

* Update docs.microsoft.com to learn.microsoft.com

* Replace learn.microsoft.com/en-us/ with learn.microsoft.com/ to remove locale from urls
2024-05-31 11:27:45 -07:00
Jeremy Koritzinsky
a0eb5f262c
Merge JIT/Methodical tests into the merged runners (#101317) 2024-05-07 23:50:37 -07:00
Rich Lander
fcc2408188
Update build instructions table (#101706) 2024-04-29 22:18:15 -07:00
Rich Lander
6313ff8cee
Update build to net9.0 images (#101630)
* Update build to `net9.0` images

* Update docs/workflow/building/coreclr/linux-instructions.md

Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>

* Revert x86 build change

---------

Co-authored-by: Sven Boemer <sbomer@gmail.com>
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
2024-04-28 07:54:10 -07:00
Jeremy Koritzinsky
4760cf03a6
Introduce a BuildAllTestsAsStandalone environment variable to support some local dev scenarios. (#100709) 2024-04-18 14:38:42 -07:00
Aleksey Kliger (λgeek)
756f869c3a
[docs] Document tools tests workflow (#101186)
* [docs] Document tools tests workflow
2024-04-17 12:57:59 -04:00
Lakshan Fernando
715e6971c4
Removing RUC from Default and Ambient attributes (#100821)
* Removing RUC from Default and Ambient attributes

* FB

* FB2
2024-04-13 10:11:42 -07:00
Sven Boemer
4a01602049
Disable COM descriptor support when trimming (#100881)
Defaults the COM type descriptor feature switch to false in trimmed apps.
Depends on the SDK change https://github.com/dotnet/sdk/pull/40106.
2024-04-10 14:33:44 -07:00
Bruce Forstall
3515c7a8eb
Add build option to build Mac .dSYM debug symbol bundles (#100617)
This is a small workaround to allow developers working on Mac the
ability to generate .dSYM bundles as part of inner-loop development,
instead of the unsupported .dwarf files that are generated by default.

A full solution to use .dSYM bundles everywhere on Mac, including
packaging and symbol indexing, is tracked by
https://github.com/dotnet/runtime/issues/92911.

To build .dSYM bundles instead of .dwarf files, invoke build.sh as
follows:

```bash
./build.sh --subset clr --cmakeargs "-DCLR_CMAKE_APPLE_DSYM=TRUE"
```
2024-04-05 13:49:57 -07:00
Elinor Fung
960849bc11
Make host tests use single copy of shared framework (#100588)
- Only create one .NET install layout to be shared by all host tests
-  Add `pretest.proj` for `host.pretest` subset that builds all test project assets and creates the single .NET install layout
- Fix `NativeHostApis` tests that were editing the .NET install layout directly (instead of creating a copy to edit)
  - Remove some unnecessary copying/creating of SDKs and frameworks by sharing the fixture across tests
- Update host testing doc with simpler setup instructions and more details around investigating test failures
2024-04-04 15:08:13 -07:00
Elinor Fung
316fc16153
Remove requirement for building packs to run host tests and infrastructure around restoring test project assets (#100324)
- Delete build infrastructure around test project asset restore
- Remove requirement that packs must be built before running host tests
  - Building packs was only necessary to support directing the restore/build for the test project assets to the built packs
2024-03-29 12:25:24 -07:00
Elinor Fung
d4c6e95db5
Update doc on using local apphost to reflect that the testhost layout uses the live-built host (#100314) 2024-03-26 19:21:18 -07:00
Jan Kotas
ffea258d50
Add a note about slow build analysis updates (#100092) 2024-03-21 19:12:38 -07:00
Remy Bos
3eb129fd57
[Fix] pr-guide.md broken link to area-owners.md (#99876) 2024-03-17 06:13:05 -07:00
Will Smith
5961ee1830
Removed legacy LLVM ObjWriter. Removed all mentions of LLVM ObjWriter. Removed all LLVM ObjWriter package references. (#99733) 2024-03-14 12:35:42 -07:00
Vitek Karas
578e82967c
Allow using VS to run host tests when libraries use different config (#91873)
* Allow using VS to run host tests when libraries use different config

When building the host tests from VS, there are dependencies on projects from the libraries subset. If the libraries are prebuilt with different configuration (typically `Release`) the build in VS breaks because it can't find the project's output.

This change modifies the import of generators (which are the problematic projects) to let them override the configuration of the referenced projects.

It then adds the ability to set environment based on the `-lc` parameter to the build script when starting VS.

Also updates the doc to describe how to use this.

* Update eng/build.ps1

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

* Update eng/generators.targets

* Move ShouldUnsetParentConfigurationAndPlatform to repo's Directory.Build.props

---------

Co-authored-by: Elinor Fung <elfung@microsoft.com>
2024-03-13 12:48:33 +01:00
Mitchell Hwang
8b62de4256
[docs] Update mono android debugging docs (#99633) 2024-03-12 14:45:06 -04:00
dotnet-policy-service[bot]
ea2532e65c
FabricBot: Onboarding to GitOps.ResourceManagement because of FabricBot decommissioning (#99169)
* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement

 Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html

Please review and merge this PR to complete the process of onboarding to the new service.

* Deleting fabricbot.json

* Update repo documentation that referenced FabricBot

---------

Co-authored-by: dotnet-policy-service[bot] <123482357+dotnet-policy-service[bot]@users.noreply.github.com>
Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
2024-03-06 22:39:50 -08:00
Min
9d59bf6508
fix commands for debugging coreclr with lldb (#99345) 2024-03-05 22:19:53 -08:00
Juan Hoyos
2a93c24320
Update CI Know issue template to point to helper page and update docs (#99077)
* Update CI Know issue template to point to helper page and update docs

* Delete .github/ISSUE_TEMPLATE/04_ci_known_issue.yml

* Rename 05_blank_issue.md to 04_blank_issue.md

* Update failure-analysis.md
2024-02-28 18:37:40 -08:00
Andy Gocke
6ebba8631a
Add info in docs about diagnosing Build Analysis failures (#98778)
* Add docs on how to use build analysis check
2024-02-28 15:52:36 -08:00
Pavel Savara
d7acf9cd0b
[browser][MT] JSType.OneWay fire and forget (#98567) 2024-02-18 12:54:32 +01:00
Grégoire
fa94b88777
Add note about docker in the testing doc (fix #95436) (#95557)
* Add note about docker in the testing doc (fix #95436)

* Update testing.md
2024-01-19 12:16:51 +01:00
David Wrighton
e55d342173
Remove IBC and Ngen related structures and comments (#96867)
- Remove all IBC comments from the vm portion of the codebase
- Remove `m_GenericTypeDefToCanonMethodTableMap` and `m_MehtodDefToPropertyInfoMap` which were only filled in by NGen
- Remove a variety of flags enums which are never used
- Remove infra for testing Zap and IBC  scenarios
- Remove ZapDisable as @egorbo suggested
2024-01-12 15:59:21 -08:00
Alexander Köplinger
425e74c6a0
[wasm] Fix a few more paths to in-tree emsdk (#96625)
It was moved from src/mono/wasm to src/mono/browser in https://github.com/dotnet/runtime/pull/95940
2024-01-08 19:33:24 +01:00
Matous Kozak
5cf6892d8d
[mono][browser] Fix WASM README path (#96198) 2023-12-20 08:28:07 +01:00
Alexander Köplinger
46506bf207
Remove outdated buildtriage.md doc (#96127)
The role no longer exists and most of the info is outdated now.
2023-12-18 13:05:08 +01:00
Matous Kozak
9989c9a7af
[mono][docs] Add BuildAsStandalone export to mono runtime tests doc (#96054) 2023-12-15 16:24:25 +01:00
Tanner Gooding
18e9b23b7d
Update windows-requirements.md to call out the current C++/CLI and IDE requirements (#95018)
* Update windows-requirements.md to call out the current C++/CLI and IDE requirements

---------

Co-authored-by: Jan Kotas <jkotas@microsoft.com>
2023-11-20 10:28:19 -08:00
Art Leonard
8a5959dc61
Clarified use of repo forks for contributors (#93793)
Added clarifying language to the PR guide explaining the use of forks as compared to branches and PRs coming from within the repo itself.
2023-10-20 16:10:44 -07:00
Aleksey Kliger (λgeek)
41d3412a4d
[docs] Howto configure the wasm runtime in Blazor projects in net8.0 (#93475)
* [docs] Howto configure the wasm runtime in Blazor projects in net8.0

* highlight the webAssembly key for a unified blazor project
2023-10-13 11:42:37 -04:00
Ilona Tomkowicz
076a51fda1
[docs][wasm] Merge duplicated wasm build instructions. (#93343)
* Merge duplicated wasm build instructions.

* feedback

* @pavelsavara's feedback

* @matouskozak feedback
2023-10-12 10:40:02 +02:00
Matous Kozak
c7586b9c7c
Correct naming of MonoEnableLLVM flag in Mono doc (#92265) 2023-09-19 12:40:32 -05:00
George Sofianos
519d681ab2
Fix typo in pr-guide.md (#91991) 2023-09-13 08:49:48 -04:00
Tarek Mahmoud Sayed
3aeefbdd5e
Metrics Feature Switch (#91767) 2023-09-12 16:09:48 -07:00
Jonathan Peppers
fecf3eeffd
[DependencyInjection] introduce feature switch to disable S.R.E (#91133)
When recording a new AOT profile for .NET MAUI apps running on Android,
we noticed that System.Reflection.Emit work was being done on a
background thread. The call seen in `dotnet-trace` output:

    11.32ms microsoft.extensions.dependencyinjection!Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder.GenerateMethodBody(Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceCallSite,System.Reflection.Emit.ILGenerator)

.NET Android apps are unique in that there is a JIT,
`RuntimeFeature.IsDynamicCodeCompiled` is true, System.Reflection.Emit
is possible -- S.R.E is however, not great for startup performance.

Starting threads on Android during startup can also be slow, as Android
will commonly put all but a single core to sleep for battery saving
purposes. We try to avoid starting threads on startup for "hello world"
applications on Android.

To solve this for now, introduce a new feature flag:

    Microsoft.Extensions.DependencyInjection.DisableDynamicEngine

Which, we will provide a value in either the Android or .NET MAUI
optional workload via an MSBuild property. To test, I put this in my
app's `.csproj` file:

    <RuntimeHostConfigurationOption Include="Microsoft.Extensions.DependencyInjection.DisableDynamicEngine"
                                    Condition="'$(DisableDynamicEngine)' != ''"
                                    Value="$(DisableDynamicEngine)"
                                    Trim="true" />

Customers *could* opt to change this flag, but we don't think it will
particularly useful. An example of services realized by .NET MAUI at
startup, via some logging added:

    08-25 13:21:55.647 16530 16530 I DOTNET  : RealizeService called: System.Collections.Generic.IEnumerable`1[Microsoft.Maui.Hosting.IMauiInitializeService]
    08-25 13:21:55.664 16530 16530 I DOTNET  : RealizeService called: System.Collections.Generic.IEnumerable`1[Microsoft.Maui.Hosting.IMauiInitializeScopedService]
    08-25 13:21:55.665 16530 16530 I DOTNET  : RealizeService called: Microsoft.Maui.Dispatching.IDispatcher
    08-25 13:21:55.668 16530 16530 I DOTNET  : RealizeService called: System.Collections.Generic.IEnumerable`1[Microsoft.Maui.LifecycleEvents.LifecycleEventRegistration]
    08-25 13:21:56.057 16530 16530 I DOTNET  : RealizeService called: System.Collections.Generic.IEnumerable`1[Microsoft.Maui.Hosting.HandlerMauiAppBuilderExtensions+HandlerRegistration]
    08-25 13:21:56.115 16530 16530 I DOTNET  : RealizeService called: Microsoft.Extensions.DependencyInjection.IServiceScopeFactory
    08-25 13:21:56.670 16530 16530 I DOTNET  : RealizeService called: Microsoft.Maui.Controls.HideSoftInputOnTappedChangedManager
    08-25 13:21:56.712 16530 16530 I DOTNET  : RealizeService called: System.Collections.Generic.IEnumerable`1[Microsoft.Maui.Hosting.ImageSourcesMauiAppBuilderExtensions+ImageSourceRegistration]
    08-25 13:21:57.700 16530 16530 I DOTNET  : RealizeService using S.R.E: Microsoft.Maui.Controls.HideSoftInputOnTappedChangedManager

`HideSoftInputOnTappedChangedManager` would be realized once per page,
which would not be a huge payoff to use S.R.E for. So the only way the
S.R.E codepath could be useful on Android would be if the customer is
registering lots of services themselves. They might be better off just
using `new()` in that case?

An example of the startup time Android reports with the new flag on/off:

    DisableDynamicEngine=false
    08-25 14:31:37.462  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +733ms
    08-25 14:31:39.394  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +737ms
    08-25 14:31:41.326  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +730ms
    DisableDynamicEngine=true
    08-25 14:32:20.233  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +724ms
    08-25 14:32:22.137  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +727ms
    08-25 14:32:24.042  2090  2330 I ActivityTaskManager: Displayed com.companyname.testmaui/crc643c09abdeec717b83.MainActivity: +716ms

This was a `dotnet new maui` project, using dotnet/maui/main on a Pixel
5 device.

Co-authored-by: Eric Erhardt <eric.erhardt@microsoft.com>
2023-08-30 14:44:05 -05:00
Filip Navara
cf3328ccee
Fix UseManagedNtlm linker substitutions (#90957)
* Fix UseManagedNtlm linker Substitutions

- Specify the default value (false) for the feature on Linux so the linker runs the substitution when no value was specified by the user.
- Make the `UseManagedNtlm` property public because the linker and IL compiler doesn't support substitution of private properties.
- Add `--ignore-substitutions` switch to ILLink during library build to prevent the substitution with default value taking place.

* Revert unnecessary changes, document _UseManagedNtlm switch

* Set _UseManagedNtlm in NativeAOT integration

* Revert unnecessary change, move default values for trimming properties from NativeAOT targets to ILLink ones

* Fix build
2023-08-29 09:36:45 -07:00
Fan Yang
867e185209
[WASM] Add ILStrip task to wasm app build process (#88926)
* Add ILStrip task to wasm app build process

* Make it work for wasm app building workflow

* Interp: stop inlining stripped methods. ILStrip: set code size to zero for tiny methods

* [mono][aot] Avoid adding some methods to the compiled method file.

* Methods which have 'deopt' set can enter the interpreter during EH.
* Methods which have 'interp_entry_only' set are AOTed, but the AOT
  code is only used to enter the interpreter.

* Only trim the methods that interpreter is able to call the aot'ed verion of it

* Add default value and documentation for WASMStripIL

* Move jit_call_can_be_supported to interp.c

* Minor format fix

* Add a test

* For testing

* Fix typo

* Skip TestUtilities Reference

* Address review feedback

* Change it to true

* Change name to trimming eligible

* Remove testing

* Address review feedback

* Address review feedback from Kate

* Add a var for llvm_only

---------

Co-authored-by: Zoltan Varga <vargaz@gmail.com>
2023-08-10 15:45:07 -04:00
Wasiim Hosenbocus
bd83e17052
Update Workflow instruction for codespace (#89368) 2023-07-30 11:12:59 +02:00
Jeremy Koritzinsky
4a8a0eea8b
Fix the default behavior to trim the RCW interop by default (#89128) 2023-07-19 15:59:34 -07:00
Jeremy Koritzinsky
2811e7c755
Address Sanitizer support in CoreCLR (#74623)
* Enable AddressSanitizer in CoreCLR, Libs, and Host and update runtime-sanitized to run tests with ASAN on Linux and Mac

* Unify on HAS_ADDRESS_SANITIZER define name

Centralize setting up sanitizer flags.

Remove last usage of CLR_CMAKE_ENABLE_ASAN outside of eng/native

Remove unnecessary diffs

Use the cpuid intrinsic and enable ASAN on InitJitHelpers1.

Add comments for the places where we have ASAN disabled

Undo changes to src/coreclr/jit/CMakeLists.txt

Add docs and fix the docs in the build script.

Add docs for the SkipVCEnvInit hook

* Remove CRT runtime changes. We won't need this when we finally onboard to Windows with some changes they have coming down the pipeline, so remove them for now to reduce the diff of this PR.

* Remove suppression now that we've fixed the underlying issue.

* Remove some Windows-only sanitizer CMake that we won't need when ASAN is ready for us to consume on Windows.

* Set schedule for runtime-sanitized pipeline

* Remove workaround in JIT memory set/copy helpers now that the JIT bug has been fixed.

* Add missing helix queues setup template.

* Fix missing command to build nativeaot runtime tests as nativeaot.

* Add a scenario name to trigger the extended timeout in the libraries test helix configuration.

* Remove extraneous whitespace.

* Fix using the cross-targetting ILC when sanitizers are enabled. Also pass through our TargetOS and TargetArchitecture variables to the publish command for our native sanitizers targets to correctly do their extra logic.

* Disable LSAN on the CustomMain test.

* Disable some tests on sanitized runtimes.

* Copy the sanitizer runtime for OSX NativeAOT runtime tests.

* A little cleanup to try to get the build right now that we are always doing cross-builds on Linux.

* Fix crossgen-corelib.proj syntax.

* Fix cross-os dac builds to not include the host architecture in the output path.

* Split the debugger components into a separate component and make the "unsanitized cross components" build into an "unsanitized debugger components" build as it can't be part of the regular cross-components build

* Always write out the host-arch path on Windows and update the cross-dac build script to expect that.

* Change to use the dynamic runtime on Windows, as ASAN in VS is moving to a dynamic-only model.

* Update docker images to include the sanitizer runtimes in the crossrootfs images.

* Fix explicit image tags

* The unsanitized build should be of the target architecture, not the host architecture. As a result, we still need a cross-arch build for the cross-arch use cases when sanitized, as well as an unsanitized target arch build for the debugger tools.

* Turn off using the sigaltstack for NativeAOT tests that don't use the asansupport.cpp default options

* Make sure the shared ASAN runtime is present for the nativeaot/SmokeTests/SharedLibrary test.

* Disable crossgen2 tests with sanitizers as they don't get us interesting coverage.

* Fix custom default options and disable some more crossgen2-based tests.

* Simplify lookup of asan runtime on mac and fix copying the shared runtime for the SharedLibrary NativeAOT test.

* Disable test that's failing for weird reasons.

* Fix one more alloc-dealloc mismatch that only started to show up after test merging increased allocations in the runtime

* Disable the System.Text.Json test suite on sanitized builds as it causes SO failures on Mac

* Fix test exclusion

* PR feedback.

* Fix mac build

* Do review changes

* Add libbootstrapper object files to the platform manifest now that NativeAOT has

* Disable tests that check size on sanitized builds

* Use the built-in `include_guard` option

* Disable use-after-return checking in ASAN. CoreCLR doesn't do well with parallel stacks.

* Only pass the no UAR flag on C and CXX with Clang (not AppleClang).
2023-07-17 20:32:03 -07:00
skyoxZ
7edc4f2ba6
Fix example of building a library. (#87398) 2023-07-10 15:34:06 +02:00
Dan Moseley
fc83305389
Update testing.md (#88364) 2023-07-06 19:34:21 -05:00