Changes:
- enabled `runtime (Libraries Test Run release mono Windows_NT x64 Debug)` CI lane (Windows Nano Server CI leg is disabled);
- enabled the tests that pass;
- marked failing test assemblies/classes/methods with `ActiveIssue` attribute using respective GH issues;
- removed CoreFX.issues_windows.rsp file and related mono rsp arguments.
Fixes#1980
Fixes#18090
Linux pal level struct for network info had only int32 field for speed. Even though our public API has it as long. The problem was in value overflowing in calculation MBits --> Bits.
- Optimize ToUpperInvariant/ToLowerInvariant
- Also optimize static field TextInfo.Invariant
- Rewrite ToUpper/Lower(Invariant) call sites to use optimized method
- Fix some uses of culture-aware ToUpper / ToLower to use invariant culture
- Replace Trim().Length with IsNullOrWhiteSpace where appropriate
- Use ordinal StartsWith / EndsWith where appropriate
- Avoid calling CultureInfo.InvariantCulture where possible
* libraries -restore for vertical build without test restore
* Automatic test change and regex to remove the addition of an extra line at eof
* manual test restore fixed (restore completely done for vertical build)
* build native done
* Automatic ref change and regex to remove the last line
* manual reference assebly change and generated shims build
* automatic src change and regex
* native bin place and src build manual change
* apicompat and pretest.csproj done
* fixing the package build
* fixing all config
* packaging and feedback
* adding back placeholder configuration
* fixing the shims
* delete configuration.props
* making the build work in master
* Test Change
* fixing the packageing, test restore replacing TargetFramework -> OriginalTargetFramework
* delete test configuraiton.props, trailing semicolon and use targetFramework
* reverting the package change
* enable apicompat and fixing configurationGroup for individual projects
* fixing the api compat
* making ilproj work
* adding the outerBuildTest
* adding the arcade package version
* fixing the merge conflicts
* minor changes
* adding additional configs and setting the runtimeOS
* making the vs stuff work
* removing the target Group to fix the apicompat
* fixing the linux build and some minor changes
* making additionalBuildTargetFramework LOcalProperty
* fixing the allConfigurations build
* fixing the netfx build
* fixing package Testing and restore
* Missing TargetFrameworks tag
* making the VSdesgin stuff work
* Remove OriginalFramework Entirely
* some minor pr feedback
* RemoveExtraSemicolon
* use boolean exclude flag
* fixing yml scripts to pass tests
* adding comments and some minor feedback
* moving packaging property to correct plave
* fixing the build for web assembly
* Fixing the live ci build
* Fixing the live build for shims
* fixing the tests
* fixing the packaging and enterprise linux
* fixing package sizes
* Fix the targetFramework
* updating the targetFramework sdl
* removing the buildOS and be able to use OSGroup as done in the old system
* Fixing the osgroup stuff for send to helix task
* Fix OSX failures
* Fixing the osx build
* uploading tmp folder to artifacts
* running restore for runtime.deproj correctly
- In some cases, I deleted ActiveIssues associated with issues where the problem was supposedly fixed. We'll see.
- In some cases, I deleted test cases entirely, e.g. where the corresponding issue said effectively "we'll live with the behavior" or "another repo is responsible for this now" (paraphrasing), or where the tests were initially added to the repo years ago already disabled and against bug numbers from some old bug database.
- In some cases, I replaced the link with the correct one.
- In some cases, I re-opened closed issues.
This PR introduces two new PhysicalAddress.TryParse methods taking span and string as well as adds a PhysicalAddress.Parse overload taking span.
Fixesdotnet/corefx#29780
* netcoreapp -> netcoreapp5.0 in .sln files
* netcoreapp; -> netcoreapp5.0; , netcoreapp- to netcoreapp5.0-
* netcoreapp- -> netcoreapp5.0 in .csproj
* 'netcoreapp -> 'netcoreapp5.0 in .csproj
* done with libraries sub folder
* missed semicolon
* minor changes
* netcoreapp -> netcoreapp5.0 in some extra files
* vNext target variable in configurations.props
* netcoreapp => netcoreapp5/0 in some other .props file
* netcoreapp -> vnext in .csproj
* making the netcorepap framework switch work
* fixing sendToHelix and linux build
* TargetFrameworkVNext -> netcoreappCurrent
* case correct netcoreappcurrent
* fixing send to helix zip path
* netfx -> net472 in .sln
* netfx; -> net472; in .props
* netfx- -> net472- in .props
* netfx - -> net472- in .csproj
* 'netfx-> 'net472 in .csproj
* netfx -> net472 manual change
* fixing ci build for netfx
* Not trying to change the global property
* Fixing build failure due to master changes in net https tests
* adding documentaiton and fixing filtering
* netcoreapp -> netcore5.0 in py file
* changing the path to use netcoreapp5.0 version
* feedback and override corefx path corrected in installers
* remaing netcoreapp5.0 changes done
* netcoreapp-> netcoreapp5.0 after live builds
* net472 -> netframeworkcurrent
* Fix test build break and update common path usages to use property
* Use normalize directory for CommonPath and CommonTestPath
* Update instances of CommonPath and CommonTestPath to not use trailing \
* improve GetLinuxNetworkInterfaces
* more improvements to GetAllNetworkInterfaces()
* fix compilation
* update ethtool to support older kernels
* fix osx
* more platform fixes
* put PrefixLengthToSubnetMask back as it was
* normalize units properlry
* fix constant
* feedback from review
* fix log initialization
Commit migrated from https://github.com/dotnet/corefx/commit/8bd0eb37f048375f038954fe444f7abd7b5681b6
Mechanical/automated change. The only manual changes were a) removing the two rules from the CodeAnalysis.ruleset file, b) removing spaces from one line of a .targets file that is used to generate a .cs file, and c) reverting the changes in a few test files where the naive replacement happened in the middle of a verbatim string where the whitespace actually mattered.
Commit migrated from https://github.com/dotnet/corefx/commit/09a6e66b0c2b31bd0f6e7e3170537d14027aeed0
* Re-enable xunit warning 1026 (unused theory arguments)
Some of these were addressed by explicitly discarding theory arguments, generally in cases where either a) the argument was being used as a description to aid in debugging failures, or b) the argument was part of a member data that was used by some theories and not by others all sharing the same member data.
However, there are quite a few legitimate bugs being fixed here, enough that highlights it's worthwhile to have the rule enabled. Some are cases where the argument was supposed to be used but wasn't. Some are cases where the argument isn't used at all, and in many cases where we end up running the same test over and over and wasting cycles. Some are cases where we're unnecessarily including irrelevant inputs to the tests and making the input data more complicated than it needs to be. Etc.
(Along the way, I also fixed some cases where VS was warning about lambdas being used instead of local functions, and in cases where I agreed I fixed them, via auto-fixers.)
* Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/daf93ee0e5e5233141eb762c64b6049cfd7d123e
* Replace "Assert.Equal(true, " with "Assert.True("
* Replace "Assert.Equal(false, " with "Assert.False("
And fix a few Assert.Equal(true cases that deal with objects and thus need to be reverted.
* Replace "Assert.StrictEqual(true, " with "Assert.True("
* Revert a few changes where true/false was being compared to object
* Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/1296bc8386a7283e319ddf723282f16651f9ea5f
* Socket: Linux: unblock synchronous socket operations on Dispose
* Fix windows build
* TryUnblockSocket: always do an abortive close for TCP
* TryUnblockSocket: experiment, always call Shutdown
* SyncTcpReceiveSendGetsCancelledByDisposeOrClose: Don't check for abortive close
* Fix build
* Revert always shutdown to compare CI results
* PR feedback
* TcpReceiveSendGetsCanceledByDisposeOrClose: fix timing race
* TcpReceiveSendGetsCanceledByDisposeOrClose: fix timing race II
* Fix test
* TcpReceiveSendGetsCanceledByDisposeOrClose: fix timing race III
* TcpReceiveSendGetsCanceledByDisposeOrClose: only run on Sync
* Also perform abortive close when canceling async send/receive
* Fix aborted set to true
* Check what fails on OSX with Shutdown
* Revert "Check what fails on OSX with Shutdown"
This reverts commit dotnet/corefx@5ab7fce93c.
* Don't perform abortive close for operations that were already canceled
* interrup Accept/Listen on OSX
* Find out what Disconnectx does for different tests on CI machines
* Move Linux connect AF_UNSPEC and OSX disconnectx into pal Disconnect function, update tests for OSX
* Trigger CI
* TcpReceiveSendGetsCanceledByDispose: check SocketErrorCode
* TcpReceiveSendGetsCanceledByDispose: OSX is also performing an RST close for disconnectx
* Revert "TcpReceiveSendGetsCanceledByDispose: OSX is also performing an RST close for disconnectx"
This reverts commit dotnet/corefx@a8d5b02724.
* TcpReceiveSendGetsCanceledByDispose: fix test for OSX
* call CancelIoEx to kick out pending operations
* Socket interop: replace IntPtr with SafeHandle
* Windows: RST close when operations were canceled
* Extend tests to check local SocketError
* test: update expected SocketErrors
* update tests: Apm API throws ObjectDisposedException instead of SocketException
* Extend asserts
* Update expected result for ConnectTask
* Update tests based on Windows behavior (https://github.com/dotnet/corefx/pull/37706)
* Map SocketErrors in Socket.cs
* Rewrite nullable asserts
* Fix test for Mac
* Handle SendFile SocketError
* SyncSendFileGetsCanceledByDispose: change how we generate the large file
* SyncSendFileGetsCanceledByDispose: ensure unique filename
* Fix NETFX build
* SyncSendFileGetsCanceledByDispose: skip on NetFramework
* PR feedback
* Fix broken build
* Perform DangerousAddRef for Socket used with UpdateAcceptContext socket option
Commit migrated from https://github.com/dotnet/corefx/commit/3fac6ad5bc4576eb2216ccb24fbed2bf173d41f4