* Disable several failing tests on iOSSimulator arm64
A few tests popped up as failures on the rolling build due to parts of System.Diagnostics.Process throwing PNSE. Disabled the functional tests from running on arm64 as mlaunch can't detect the return code.
* Update src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs
Co-authored-by: Steve Pfister <[email protected]>
Co-authored-by: Alexander Köplinger <[email protected]>
* [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]>
* [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]>
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]>
* 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
* Add server core testing to Windows x64
* Add server core testing
* Use 20h1 queue instead
* Remove runtime testing until we get more capacity on 20H1 queue
* Use 2004 image
* Skip tests on Server core
* PR Feedback and fix build
* Disable more server core tests
* Disable more tests on Server Core
* Attempt fixing failing process test in server core
address feedback
* Fix PlatformDetection.IsInContainer for windows and feedback from Eirik's change
* PR Feedback
* Don't run server core on PRs yet until we get more capacity
Co-authored-by: Eirik Tsarpalis <[email protected]>
* Remove new platform members from OSPlatform
* remove IsOSPlatformEarlierThan and IsOSPlatformOrLater methods
* remove unused resource and dependency
* delegate RuntimeInformation.IsOSPlatform to call OperatingSystem.IsOSPlatform. it won't compile now as the new guards have not been merged yet (#40457)
* remove OSPlatform.Browser and it's usage
* Add Browser specific PersistedFiles implementation
Simplified the implementation removes dependency on several native calls
which all return only default values.
Co-authored-by: Alexander Köplinger <[email protected]>
Creating an OperatingSystem with PlatformID.Other would result in an exception about an unexpected enum value.
https://github.com/dotnet/runtime/pull/38790 was missing some tests that verified this behavior.
* Return the correct OSVersion on OSX like systems.
Fix#34977
* Rename files to not have Linux when they aren't Linux specific.
* Assert OSVersion Build number is valid.
* PR feedback
Move interop code to Common\src\Interop.
Specify the full path to libobjc.dylib.
Fix objc_msgSend_stret for ARM64.
* Specify full path to libproc.dylib.
Fix#24095
Many of our RemoteInvokes are there purely because of needing to change the current thread culture but on UAP that actually impacting the whole process. Until that's addressed, we can at least avoid the RemoteInvoke on all platforms other than UAP. There are also some RemoteInvokes that can be avoided by just serializing all of the (small number of) tests in a test assembly. And there's some additional cleanup to be done as well around not explicitly returning an exit code unless required.
This helps measurably with test performance. Consider the System.ComponentModel.Annotations test suite. On my machine, prior to these changes, it took ~25 seconds; after these changes, it takes ~0.3. It helps even more when running against a checked runtime, where all of our test costs are magnified. With a checked runtime, prior to these changes, it takes ~196 seconds; after these changes, it takes ~2.5 seconds. This should help measurably with CI time in coreclr.
Commit migrated from https://github.com/dotnet/corefx/commit/cd18bafbabf7fe47601f6f790d157409034a2477
* Added test for logging exception details on calls to Environment.FailFast
* Add more cases to test
* Remove CollectConsoleOutput and pass in StartInfo instead
* Separate out test cases into independent tests, change Assert.True to Assert.Contains, lowercase String
* fix NETFX failure
Commit migrated from https://github.com/dotnet/corefx/commit/e6214129d52616632e9187b9b33e182e8d643f55
* Windows interop fixes for System.Runtime.Extensions
- Allow for long paths in GetCurrentDirectory
- Use ValueStringBuilder instead of StringBuilder
- Handle buffer growth
* Add System.Memory to System.Diagnostics.PerformanceCounter
* Address feedback, minor cleanup
Commit migrated from https://github.com/dotnet/corefx/commit/050bc33738887d9d8fcc9bc5965b7d9ca65bc7f4
* Fix outerloop in System.Runtime.Extensions
* Add back finalizer to call Dispose(false)
* Fixing Dispose issue on Unix.
Also making code style consistent in ProcessTestBase by having a using statement to work with RemoteInvokeHandle
* Remove comment
Commit migrated from https://github.com/dotnet/corefx/commit/d27d0d98b4cffbe8b15c5acdb2403112029c48d0
* Cleanup Windows 10 version detection
Windows 10 Version 1709 ("Fall Creators Update") has been released. This
PR cleans up the version detection to use the latest RTM build numbers
and removes obsolete InsiderPreview detection for those tests.
Also, removed ActiveIssue for tests that are now fixed due to Windows 10
fixes.
Fixesdotnet/corefx#22187
* Addressed feedback
Commit migrated from https://github.com/dotnet/corefx/commit/ac410223aa763a0f67880815057ee1bfe0f4cb6e
* Moving PlatformDetection to Corefx.Private.TestUtilities assembly
The purpose of this change is to clean up all test projects instead of including the PlatformDetection code inside every test project, we’ll have it in the Corefx.Private.TestUtilities.
I have refactored the PlatformDetection to split the different implementation of Windows and Linux. If we need to do more refactoring there we can do it later as needed.
* Fix Linux BB
* Update the xunit package reference
* Fix wrong condition on one of the tests
* Update the ConditionalFact/Theory to use Type as a parameter
Commit migrated from https://github.com/dotnet/corefx/commit/878e2fcf5a9f1068015e5fada9231088663e3490