Commit Graph
896 Commits
Author SHA1 Message Date
Eric St. John 8d0ead0175 Fix warnings when building corefx
A couple of these were harbingers of test issues so I cleaned everything
up so that folks can pay attention when they add a warning.


Commit migrated from https://github.com/dotnet/corefx/commit/811ea81d1fad349649e844a76cf0574f6460841d
2016-11-11 09:19:09 -08:00
dotnet-bot a02764567f Update CoreFx to beta-24711-02
Commit migrated from https://github.com/dotnet/corefx/commit/3709a83afb9ffb8aa05b6c6f5561859527226595
2016-11-11 15:52:34 +00:00
dotnet-bot b9b36cbb7a Update CoreFx, External, ProjectNTfs to beta-24711-01, beta-24711-00, beta-24711-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/2ab7ba374f98bb0c3785435169d9b568c5f24eba
2016-11-11 06:19:20 +00:00
dotnet-bot d1fb8ddc0f Update CoreFx, External, ProjectNTfs to beta-24710-01, beta-24710-00, beta-24710-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/0a2361383fda2720c5eada8c80d24850a9d61246
2016-11-10 14:31:27 -08:00
Stephen Toub bd16d17031 Merge pull request dotnet/corefx#13527 from stephentoub/curl_defaults
Make HttpClient on Unix treat SslProtocols.None as meaning system defaults

Commit migrated from https://github.com/dotnet/corefx/commit/28e8fdf7fb6717e29206a155abc6d92308ef3663
2016-11-09 20:23:03 -05:00
Jeremy Kuhne f05a8c4187 Move IO types into System.Runtime.Extensions (dotnet/corefx#13451)
Move all of System.IO into System.Runtime.Extensions.
Finish moving System.IO.Primitives into System.Runtime.

Commit migrated from https://github.com/dotnet/corefx/commit/55eb2f16c4ccdb6e4c50a89af5c14ac843239901
2016-11-09 14:44:50 -08:00
Cristian Pop fad54f95d4 Merge pull request dotnet/corefx#13075 from CIPop/tls_pr
TLS SystemDefault support.

Commit migrated from https://github.com/dotnet/corefx/commit/1ae37add7583acebfa21bbc2074ab627a2f765a7
2016-11-09 14:01:31 -08:00
Stephen Toub 4c57b8d7f1 Make HttpClient on Unix treat SslProtocols.None as meaning system defaults
This way, as libcurl and OpenSSL are updated to support newer protocols and disable older ones, we inherit the latest settings.


Commit migrated from https://github.com/dotnet/corefx/commit/79777327b700f6d14fa5c64b072e5a031d6d512b
2016-11-09 14:23:32 -05:00
dotnet-bot c5bd931c2d Update CoreFx to beta-24709-02
Commit migrated from https://github.com/dotnet/corefx/commit/68a1670fc7b9c9419f5d3100ac9a4347874aeef8
2016-11-09 15:38:49 +00:00
dotnet-bot d6f29b0517 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24709-02, beta-24709-01, beta-24709-00, beta-24709-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/8a5167a13e1ae72cff71285c49f5f84e10a64248
2016-11-09 09:19:32 +00:00
dotnet-bot c561086403 Update CoreClr, CoreFx to beta-24709-01, beta-24708-05, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/bafbeec4841285834d31bee295c225a61de2b780
2016-11-09 01:10:38 +00:00
Cristian Pop 1fb0a8ece8 TLS SystemDefault support.
Commit migrated from https://github.com/dotnet/corefx/commit/e882577f1cdf1c6505681c0a52a532d78f03c24f
2016-11-08 16:07:26 -08:00
Stephen Toub 27794c3e5c Update corefx to beta-24708-03
Commit migrated from https://github.com/dotnet/corefx/commit/9f9c2885208315215b7e328ea399f13c83d1b8a7
2016-11-08 17:10:15 -05:00
dotnet-bot b740f1d2bd Update CoreClr, CoreFx, External, ProjectNTfs to beta-24708-02, beta-24707-01, beta-24708-00, beta-24708-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/b255d0bf4df94eb383c1bb4b42b1bfe9b64f3238
2016-11-08 17:07:45 -05:00
Stephen Toub 7928cb6303 Use std::nothrow with new operator in native shims
To avoid exceptions propagating out of native shims and crashing at interop boundary.


Commit migrated from https://github.com/dotnet/corefx/commit/02dda0a64c651573928fbafe0218f023890442d4
2016-11-06 07:18:09 -05:00
dotnet-bot d63a7b41df Update CoreFx to beta-24705-01
Commit migrated from https://github.com/dotnet/corefx/commit/c7603507fe200426130f10d6b2cc67dfeda2c83f
2016-11-05 02:22:03 +00:00
dotnet-bot 540789c36c Update CoreClr, CoreFx, External, ProjectNTfs to beta-24704-04, beta-24704-03, beta-24704-00, beta-24704-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/d75d49704cffb9652304a357750d7f3f357be6fc
2016-11-05 00:21:20 +00:00
Jeremy Kuhne 90d1f3d724 Update to CoreCLR FileStream (dotnet/corefx#13229)
* Json changes for updating to new CLR

* Take new CoreCLR

Uses new copy of FileStream from CoreCLR
Moves FileStream to System.Runtime
Forwards from old locations
Various workarounds/fixes

* Update to CoreCLR beta-24704-03


Commit migrated from https://github.com/dotnet/corefx/commit/bd667b3e719ff84110d9b3c8c087a678337aa5a5
2016-11-04 11:52:01 -07:00
Stephen Toub 4d8438fb1a Merge pull request dotnet/corefx#13316 from joperezr/UpdateCorefxDependencies
Updating corefx versions to beta-24703-01

Commit migrated from https://github.com/dotnet/corefx/commit/23c2758bf8fbecf2e0758b4cc792f3b75d10766b
2016-11-03 15:02:08 -04:00
Jose Perez Rodriguez 2db115c87d Updating corefx versions to beta-24703-01
Commit migrated from https://github.com/dotnet/corefx/commit/39b5977106283eb0017dbc43af7f4d6b195753b1
2016-11-03 10:23:38 -07:00
Stephen Toub 5c80441a2c More aggressively clean up disposable resource in Http tests
Most of these likely don't matter, but some of these can be keeping alive the underlying connections associated with the HttpClient instance, and it's possible that can lead to more resource contention / exhaustion.


Commit migrated from https://github.com/dotnet/corefx/commit/ec47d4e19f3215f75e652e8e5ff61cc4c253c056
2016-11-03 11:18:27 -04:00
Eric Mellino b22982fb03 Merge pull request dotnet/corefx#13233 from mellinoe/fedora-24
Add full support build for test runs on Fedora 24

Commit migrated from https://github.com/dotnet/corefx/commit/31cb259750808d9f2c1e4788f4bf8a2ea1ab3695
2016-11-02 12:10:39 -07:00
Stephen Toub 183b074730 Fix HttpVersion conflicts
Added an HttpVersionInternal to be used by the higher-stack libraries that need things beyond HttpVersion.Version10/Version11 and/or that have builds targeting versioning of System.Net.Primitives that doesn't have the newly exposed HttpVersion.  This can be removed once all of those libraries have all of their builds targeting the updated primitives lib.


Commit migrated from https://github.com/dotnet/corefx/commit/119ae03ddc2ce49511f10b02fb39818aab0aa577
2016-11-01 19:42:30 -04:00
Stephen Toub 4ee10f7b6c Update CoreFx, ProjectNTfs to beta-24701-01, beta-24701-00, respectively (master)
Commit migrated from https://github.com/dotnet/corefx/commit/1b2b88d11c6b0d226481c96b1a88d20bb8cefaf9
2016-11-01 19:42:30 -04:00
Eric Mellino 6a3b8fa4fd Support full test builds on fedora 24
Commit migrated from https://github.com/dotnet/corefx/commit/f3ae1c1cea4709252b48179fd1eed5a18740d8fc
2016-11-01 22:56:10 +00:00
David Shulman 2677ef78c1 Disable tests for clean CI
ServerAsyncAuthenticate_AllClientVsIndividualServerSupportedProtocols_Success

HttpClient_ClientUsesAuxRecord_Ok

Ref: dotnet/corefx#8744, dotnet/corefx#11623


Commit migrated from https://github.com/dotnet/corefx/commit/0bec1523df81351d7b01e4addee5b350a0f454ef
2016-11-01 12:05:37 -07:00
Stephen Toub 66863565c9 Use nameof in more places
We previously made a pass through corefx to use nameof with argument exceptions.  Since then, a lot more code has come into the repo, and not all argument exceptions were converted at the time. We also previously missed a bunch of places where helpers were used to throw the exceptions.  This does another pass through corefx to catch most of the remaining occurrences.


Commit migrated from https://github.com/dotnet/corefx/commit/08609e84ab068d09a6e72b5906bb5282e444ae2e
2016-11-01 09:25:09 -04:00
David Shulman 637fa2d8b0 Disable another test
Ref dotnet/corefx#13188


Commit migrated from https://github.com/dotnet/corefx/commit/804d3aea2539aa1be5b49b94204f070cb134444b
2016-10-31 14:07:51 -07:00
David Shulman b20f48b477 Disable another test
Disable http test, dotnet/corefx#10504.


Commit migrated from https://github.com/dotnet/corefx/commit/974924694891402de972a7e1eb52c3f9bc0f41dd
2016-10-31 11:38:47 -07:00
David Shulman 13c6b6c2e7 Disable tests to unblock CI
Disabling tests for dotnet/corefx#12637 and dotnet/corefx#12778.


Commit migrated from https://github.com/dotnet/corefx/commit/597ef01e84cfb6cc1c4dda25500e07b27c8e144c
2016-10-31 11:26:55 -07:00
Stephen Toub 5f0b53cb3c Update CoreFx to beta-24629-01 (master)
Commit migrated from https://github.com/dotnet/corefx/commit/63a1dbe34233c086f7fc6d28b1fefecfefc822ed
2016-10-29 22:41:56 -04:00
Stephen Toub 7b2a531875 Add additional System.Net tracing tests
- Add tests that actually exercise the event sources, making sure that no event source errors are produced and that events are actually generated.
- Fix a few src issues found from these tests.


Commit migrated from https://github.com/dotnet/corefx/commit/2284f735df7ad8c072b7861980d205c4476709b8
2016-10-29 11:53:54 -04:00
Stephen Toub 9c38e533c4 Address PR feedback
- Fix a few copy-and-paste errors
- Rename DumpArray to DumpBuffer
- Prefix every NetEventSource usage with IsEnabled check (except for Fail, which represents a critical programming error)


Commit migrated from https://github.com/dotnet/corefx/commit/3b251eb0632d1a1b70bdeb928c86d45b2bb2b897
2016-10-29 10:01:53 -04:00
Stephen Toub 78652d624e Overhaul System.Net library logging
This PR overhauls how logging is accomplished in the System.Net libraries.

There are a few problems with the existing solution:
1. In the original sources, logging was split across a GlobalLog class and a Logging class.  Global-related tracing went to GlobalLog, and library-specific tracing went to Logging.  When the sources were moved to corefx, this evolved into multiple EventSource-based types, most of which were in Common and were then src-included into each System.Net assembly.  This has a significant problem, though, which is that the name/Guid identity of an EventSource can only exist once in a process, and subsequent EventSource instances with the same identity fail.  This means that whichever assembly ends up logging something first wins, and all other tracing from other System.Net assemblies ends up being lost.
2. The split also may have made sense when all components shared the same GlobalLog, but now that GlobalLog is included as a unique EventSource instance in each assembly, it's no longer global.  This means that we're not only loading multiple EventSources unnecessarily (each has its own costs), but we're also duplicating logging, as some logging is done to one or the other, but some logging is done to both.
3. Due to sharing the Logging class, which evolved into an EventSource-based type, many logging calls had to include which component they came from as an enum value, leading to bloating at the call sites.
4. Additionally, many logging operations included the name of the method in which the calling was being done, which meant both longer call sites as well as stale values as members got renamed over time.
5. Call sites ended up getting fairly long due to lots of string concatenation operations and other manipulations in the logging call.  This also then led to most call sites needing to be guarded behind checks for IsEnabled, leading to lots of code at every call site and obscuring the actual information being traced.
6. An additional requirement that got added with the move to corefx was that certain failure conditions should both Debug.Fail and do tracing, leading to some tracing operations taking upwards of 10 lines of code.

All of these issues are addressed by this PR.

- Each System.Net assembly that needs to log now loads a single NetEventSource type for doing logging, each with its own identity.
- That implementation is split across a common, partial NetEventSource.Common.cs file used by all such assemblies, and then a per-assembly partial NetEventSource.AssemblyName.cs file used by the individual assembly.  The former file contains most of the logging implementation.  The latter files typically contain just the partial class declaration along with the [EventSource] attribute that gives that assembly's NetEventSource its unique identity / name.
- The logging operations in NetEventSource.Common.cs use a variety of relatively-recent language enhancements to improve the logging.  Each operation uses a [CallerMemberName] so that the call sites don't need to specify the caller.  FormattableString is used so that call sites can use string interpolation while still providing the logging implementation the flexibility to format the individual components in a desired fashion (e.g. IntPtrs are formatted as hex, SafeHandles are rendered in a way that includes their name+hashcode+handle, etc.), along with a mechanism that allows individual libraries to add additional formatting rules.  Each operation allows the this reference (or another this-like context object) to be passed in, to simply identify the source of the call (in concert with the caller member name).  A debug-only mechanism is included in the tracing to help find potential perf issues due to misuse of the logger.  Etc.
- A Fail logging operation is included that both traces and does a Debug.Fail.

With these changes, most call sites are greatly simplified.  Some examples:
Before:
```C#
if (GlobalLog.IsEnabled)
{
    GlobalLog.AssertFormat("ContextAwareResult#{0}::ContextCopy|Called on completed result.", LoggingHash.HashString(this));
}
Debug.Fail("ContextAwareResult#" + LoggingHash.HashString(this) + "::ContextCopy |Called on completed result.");
```
After:
```C#
NetEventSource.Fail(this, "Called on completed result.");
```

Before:
```C#
if (NetEventSource.Log.IsEnabled()) NetEventSource.Enter(NetEventSource.ComponentType.Http, this, ".ctor", handler);
```
After:
```C#
NetEventSource.Enter(this, handler);
```

Etc.

In addition to fixing up all of the event sources, I of course also fixed up all usage in order to clean up the call sites.  However, this was a rather mechanical change: I did not remove existing logging (other than duplication) nor did I add new logging.  At some point, we should review the actual logging being done to determine what's missing and what's not needed.  I also did not revise the additional existing events on the sockets and security event sources, but we may want to remove those (or some of those) in favor of just using the shared events.


Commit migrated from https://github.com/dotnet/corefx/commit/92fd5c0814bcc0c03acfa9f3ad857661828b35a6
2016-10-29 10:01:53 -04:00
dotnet-bot ad2c08f972 Update CoreFx to beta-24628-03
Commit migrated from https://github.com/dotnet/corefx/commit/e634b174854638f226c81ebd5a2b6d22afca83de
2016-10-28 19:01:25 +00:00
dotnet-bot 519246eb66 Update CoreClr, CoreFx to beta-24628-03, beta-24628-02, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/56c61a5a1158ef9f1c84c87442f39015d9042491
2016-10-28 16:27:01 +00:00
Stephen Toub 45df74c422 Re-disable re-enabled HTTP tests that are still failing
Commit migrated from https://github.com/dotnet/corefx/commit/ccbc93652ad7570e3b7262ede4ae4cbb17bbc592
2016-10-28 09:01:13 -04:00
dotnet-bot 5eb2424d89 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24628-02, beta-24628-01, beta-24628-00, beta-24628-01, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/56b92839e58ab41582e98eaf87452ec4b50712b4
2016-10-28 09:16:27 +00:00
dotnet-bot 4ed327f131 Update CoreClr, CoreFx, External, ProjectNTfs to beta-24627-05, beta-24627-05, beta-24627-00, beta-24627-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/b030c0a58466c70ca34b56933903b31e580e6189
2016-10-27 22:28:54 +00:00
Alex Ghiondea 81e93c452c Re-enable tests for issues that have already been resolved.
Commit migrated from https://github.com/dotnet/corefx/commit/51394d7ca62027468d488b25a4ab87f4a12dc5ba
2016-10-26 15:00:58 -07:00
dotnet-bot a196fb6572 Update CoreFx to beta-24626-02
Commit migrated from https://github.com/dotnet/corefx/commit/ffd454cef1f7dd4a2f6969747cf45a4729e6387c
2016-10-26 14:46:03 +00:00
dotnet-bot de5dd7cba0 Update CoreClr, CoreFx, ProjectNTfs to beta-24626-01, beta-24625-02, beta-24625-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/ff859b462ada317c02c96b93918ec0e2d072459e
2016-10-26 00:20:25 +00:00
Matt Galbraith 499ac922d7 Update Microsoft.DotNet.BuildTools.TestSuite and Microsoft.xunit.netcore.extensions
Commit migrated from https://github.com/dotnet/corefx/commit/262cef73a95a6f743ce19abc0b42a80ff715ac52
2016-10-25 10:47:06 -07:00
dotnet-bot b943e5d281 Update CoreClr, CoreFx, External to beta-24625-02, beta-24625-01, beta-24625-00, respectively
Commit migrated from https://github.com/dotnet/corefx/commit/e1bdcc213a47f4761a6a46e8e0d612d7bc237c9a
2016-10-25 08:19:47 +00:00
sxmichael 07d55fcb2a Mandatory http response status should be 100..1000 (dotnet/corefx#12938)
* Mandatory http response status should be 100..1000
* Added test for expected status codes
* Added OuterLoop attribute for 2 tests


Commit migrated from https://github.com/dotnet/corefx/commit/bd929648f648ee1e139b648266e9863e352baab5
2016-10-24 16:00:22 -04:00
Jose Perez Rodriguez 132e478c7b Updating Corefx versions to beta-24624-01
Commit migrated from https://github.com/dotnet/corefx/commit/cd40177af397e309c41f2bbcec007e21761bb688
2016-10-24 12:01:45 -07:00
Matt Galbraith 8cdd4afd6d A couple test fixes that fell out of recent bugs and package restore improvements:
Fix Xunit return code / file creation behavior:
- Update Xunit.console.netcore - now has same behavior as 2.2.0 Desktop version for exit codes
- Update Microsoft.DotNet.BUildTools to 1.0.26-prerelease-00921-01, to pick up a runner script that can honor the exit code from above instead of hide it.

Fix UWP tests:
- Update Microsoft.DotNet.BuildTools.TestSuite  1.0.0-prerelease-00921-01 - Pick up native compilation package
- Update microsoft.xunit.runner.uwp to 1.0.3-prerelease-00921-01 - Various fixes included in PR
- Microsoft.xunit.netcore.extensions to 1.0.0-prerelease-00920-01 - Same


Commit migrated from https://github.com/dotnet/corefx/commit/95f0052492a5a1086e2b23e209fd6eaa95334b3b
2016-10-24 09:28:51 -07:00
Stephen Toub 344ae45288 Update CoreFx dependencies to beta-24623-01
Commit migrated from https://github.com/dotnet/corefx/commit/617811c779e36848fb1af4c2e8d8b3b1dba42e83
2016-10-23 11:50:14 -04:00
Eric StJohn 138037f578 Merge pull request dotnet/corefx#12872 from ericstj/reducePackages
Reduce packages

Commit migrated from https://github.com/dotnet/corefx/commit/48cd48f181386b12e44287d9a22eefd4c9a35b22
2016-10-21 10:02:31 -07:00
Stephen Toub afcdd30cb7 Expose ICloneable in System.Net.Http
Commit migrated from https://github.com/dotnet/corefx/commit/b39e08f58fcd42195f1e3a4b52fa383e978bce5c
2016-10-21 10:47:07 -04:00