This change enables device runs on CI by building each test app on the helix instance it was deployed to. In past attempts, we looked at enhancing what takes place on the build machine via build tricks, compressing / cleaning up files early, etc and we could not overcome the need for excessively long timeouts and far more disk space.
The change also adopts the patterns established in the wasm test build, giving us the opportunity to support different scenario runs as well as workloads testing in the future.
Update slngen tooling to latest stable version and solution files since
a lot changed since the last time they were updated:
- NET7 (removal of older TFMs)
- Source Generators
* Added managed implementations for ILogB, removed extern bindings
* Fix bug with managed MathF implementation, removing ILog2 implementation in ecallist and vm
* Add citations to musl implementation.
* Remove whitespace
* Remove Mono bindings
* Add more test cases from musl test library
* Remove native ILogB logic from Mono
* Update citations to official MUSL source
With the newest udpate of slngen, the order of elements (configuration, folders, etc.) is in sync with how Visual Studio arranges them.
Also the order is now deterministic.
Based on that, updating all solution files to have the correct ordering of elements. This change also unblocks adding CI protection for
making sure that solution files are up-to-date in regards to their dependencies as slngen is now generating the files deterministically.
* [MacCatalyst][Libraries] Reenable MacCatalyst x64 crashing test suites
* [MacCatalyst][Libraries] Reenable MacCatalyst arm64 crashing test suites
* Temporarily enable MacCatalyst arm64 lane
* Readd consistently crashing suites to iOS tvOS MacCatalyst skips
* Address crashes and PNSE failures on iOS MacCatalyst
* Temporarily bump timeout for tvOS
* fix typo
* Skip more crashed suites
* Undo temporary changes and Add ActiveIssue
* Skip more crashing suites
* Skip iOS.Simulator.Aot.Test flake on MacCatalyst CI
* Add a couple crashing suites
* Remove sample skip in tests.proj as it doesnt do anything
* Add another flakey crashed test for MacCatalyst
* Skip System.Xml.Xsl.XslCompiledTransformApi on MacCatalyst
* Temporarily remove test suite skips and enable arm64 lanes and bump lane timeout to evaluate crashes
* Reenable a test that was fixed
* Update Microsoft.DotNet.Helix.Sdk
Fixes an issue with mismatched dotnet SDK versions we're hitting in runtime-staging on mobile platforms (see https://github.com/dotnet/arcade/pull/7788)
* [iOS] Skip ValidAccessLevelCombinations ReadWriteExecute for iOSSimulator arm64
* Skip failing test suites
* Extend trampoline bump to iOS tvOS MacCatalyst
* Fixup typo
* Fix MonoAOTCompiler typo
* Bump trampolines for osxlike lanes
* Add active issues for failing tests
* Remove ActiveIssue that was fixed
* Add IsIanaIdTest skip
* Bump trampolines even higher
* Address feedback
* Fix typo
* Undo runtime-staging temporary changes and cleanup test skips
* Fix path typo
* Skip iOS sample
* Add new activeIssue and skip flakey Android test crash
* Skip functional tests crashing with exit code 0
Co-authored-by: Mitchell Hwang <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
* Use a different Personal folder on tvOS, and a test that it works
* Set temp path to a valid location
* Add NSTemporaryDirectory interop function and supporting cast
Co-authored-by: Steve Pfister <[email protected]>
Co-authored-by: Adeel Mujahid <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
* Split Random compat implementation to address most regressions
When we introduced the new Random algorithm, we did so by factoring the old algorithm out into an implementation strategy class that is instantiated for all use other than `new Random()`. This ends up penalizing other uses (providing a seed and/or deriving from Random) by adding more virtual dispatch than is strictly necessary, in particular for `new Random(seed)`. This PR negates most of that (expected) regression by splitting the compat implementation in two, one class for `new Random(seed)` and one for `new DerivedRandom()`/`new DerivedRandom(seed)`; the former no longer needs to make virtual calls back out to the parent type. The former is also one that a consumer can't really do anything to improve, whereas in the derived case, the derivation may override to provide a more optimal implementation.
* Change NextUInt64 implementation to reduce number of calls
We haven't shipped this yet, so we can change its implementation to make 3 calls instead of 8 and to delegate to a different overload of Next.
* Consolidate NextBytes to use span
* [libraries] Update AppDomainTests for iOS,MacCatalyst,tvOS
* Update skip reasons
* Add MacCatalyst to Case Insensitive and remove ActiveIssues
* Replace ActiveIssue with ConditionalTheory based on RemoteExecutor
* Fix test for iOS/tvOS/Catalyst
* Skip UserName test on iOS tvOS
Co-authored-by: Mitchell Hwang <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
1. AppDomain TestingCreateInstanceFromObjectHandle and TestingCreateInstanceFromObjectHandleFullSignature were failing because the assembly file to load has to be case sensitive and wasn't.
2. AppDomain TargetFrameworkTest was permanently skipped
3. StringComparerTests CreateFromCultureAndOptions, CreateFromCultureAndOptionsStringSort, and CreateWithCulturesTest skips testing the turkish culture as it's problematic on Android
4. Environment.Exit ExitCode_VoidMainAppReturnsSetValue was permanently skipped
Fixes https://github.com/dotnet/runtime/issues/49868
It's to clean up the respective CI staging lanes.
The related issues:
[iOS/tvOS/MacCatalyst] Test failures in System.Diagnostics.Tracing.Tests #56073
[libraries][iOSSimulator] ImageTests.FromFile_NullFileName_ThrowsArgumentNullException fails #56048
JitInfoIsPopulated failed with after is not greater than before #55712
[MacCatalyst] Test failures in System.Tests.OperatingSystemTests #56084
[MacCatalyst] App crash in System.Text.Json.SourceGeneration.Tests #56085
```
[22:22:31] fail: [FAIL] System.Tests.EnvironmentStackTrace.StackTraceDoesNotStartWithInternalFrame
[22:22:31] info: System.NullReferenceException : Object reference not set to an instance of an object.
[22:22:31] info: at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
```
Issue: https://github.com/dotnet/runtime/issues/51676
* 32bit
* 64bit
* Expose in public api
* Unit test
* Add more tests
* Use in test
* Apply suggestions from code review
Co-authored-by: Stephen Toub <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>
* Add unsigned variants for BitConverter bit APIs
Adds DoubleToUInt64Bits, UInt64BitsToDouble, SingleToUInt32Bits,
UInt32BitsToSingle, HalfToUInt16Bits and UInt16BitsToHalf.
Implementations were based on existing signed integer variants.
Convert usages of existing APIs to unsigned variants when appropriate.
Fix#36469
* Revert comment change
Reverted a comment change made in the existing code by mistake.
* Use existing code for implementations
Use the existing signed methods with a cast, less code with the same codegen.
* Cast correction
Corrected the type used in a cast.
In effort to assess the state of the iOS library tests, a number of tests will be skipped
Test suites that crash, hang, or have a significant number of failures (mostly 20+ failing unique test methods) are skipped on at the `tests.proj` level. Otherwise, `[ActiveIssue]` attributes have been attached to either the individual test methods that fail or the entire class if the whole test class fails. Any pre-existing `ActiveIssue` attribute associated with iOS had been reassessed to either remain or be closed.
A few test suites have been skipped because they fail with some form of `PlatformNotSupportedException`. `[SkipOnPlatform]` attributes are attached to the failing test methods.
All of the Issues can be tracked at https://github.com/dotnet/runtime/projects/48#column-9236436
The ActiveIssues and `tests.proj` exclusions have been tested on https://github.com/dotnet/runtime/pull/49917 as well.
-----------
This PR makes the following changes in the following files:
`src/libraries/System.IO.Ports/tests/System.IO.Ports.Tests.csproj` - Removed `$(NetCoreAppCurrent)-iOS` from target frameworks as it is stated to currently only supported on Windows.
`src/libraries/tests.proj` - Update the test suites that need to be skipped at the project level, reducing the number and categorizing as a skip due to PNSE, a skip due to numerous failures, and a skip due to the suite crashing.
The remaining files changed are either:
`[ActiveIssue("<issue-url>", TestPlatforms.iOS | TestPlatforms.tvOS | TestPlatforms.MacCatalyst)]`
`[SkipOnPlatform(TestPlatforms.iOS | TestPlatforms.tvOS, "Not supported on iOS or tvOS.")]`
Co-authored-by: Mitchell Hwang <[email protected]>
Co-authored-by: Tammy Qiu <[email protected]>
* replacing GetLastWin32Error with GetLastPInvokeError in remaining assemblies
* replace GetLastWin32Error with GetLastPInvokeError in assemblies outside system.private.corelib
* Apply suggestions from code review
Co-authored-by: Jan Kotas <[email protected]>
- Both EAT, and AOT builds are completely green now.
- Number of tests for EAT goes from 147 -> 185
- Number of tests for AOT goes from 147 -> 174 (the difference is because of aot only failures)
- Test run on a regular wasm build runs 206 libraries
* Fix Random.Next(int, int) on 64-bit when max-min overflow int
The fix is a missing cast. Everything else is asserts and test changes.
* Update Random.cs
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.
* Disable failing Apple Silicon Libraries tests
- Use tests.proj to disable catastrophically failing libraries tests
- Add ActiveIssues where XUnit didn't crash
* Enable CoreCLR lib tests for Apple Silicon in Runtime-Staging
* Use IntegralValue() instead of IconValue() in constant folding for PopCount so that CNS_LNGs work on 32 bit targets
* Move the PopCount(Constant) test to the runtime tests directory
Initial support for Mac Catalyst for mono subset. This enables building runtime packs and working jobs, but right now the `tests` subset needs some work to allow library test runs in CI
* Added C# implementation of System.Math.ScaleB and System.MathF.ScaleB, removed old bindings, added test cases.
* Moved tests into System.Runtime.Extensions tests.
* Removed unmanaged scalbn and scalbnf from pal and mono
* Update src/libraries/System.Private.CoreLib/src/System/Math.cs
Co-authored-by: Adeel Mujahid <[email protected]>
* Styling changes.
* Conditionally include ScaleB for Mono.
* Update src/mono/mono/metadata/sysmath.c
Tabs, not spaces.
Co-authored-by: Adeel Mujahid <[email protected]>
* Removing more scalb from PAL
* Completely removed ScaleB from Mono
* Cleaning up more scalbn
* Added comments for ScaleB, updated licenses for musl and Sun
* Fixed whitespace.
* Removing old references, fixing double ScaleB definition that merge didn't resolve
Co-authored-by: Adeel Mujahid <[email protected]>
* Delete custom FastRandom from ThreadPool
- Consolidates 128/256-bit variants of Xoshiro** into the same class name
- Uses that from ThreadPool instead of its custom xorshift-based algorithm
Throughput stays the same (~2.5ns per next random value) and incurs just one additional object allocation per thread pool thread.
* Consolidate TARGET_64/32BIT DefineConstants
* Improve Random (performance, APIs, ...)
- Changes the algorithm used by `new Random()` to be one that's smaller and faster and produces better results
- Refactors the implementation to make it internally pluggable
- Moves the existing implementation to be used when it's necessary for back compat
- Adds NextInt64 and NextSingle methods
* Adding support for ReciprocalEstimate and ReciprocalSqrtEstimate
* Adding basic documentation comments to the new Math.ReciprocalEstimate functions
* Increasing the epsilon for estimated functions to account for ARM64 only doing a single Newton-Raphson iteration