-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable remaining Extensions projects #33984
Conversation
...s/Microsoft.Extensions.Configuration.Json/src/Microsoft.Extensions.Configuration.Json.csproj
Outdated
Show resolved
Hide resolved
@@ -85,12 +85,12 @@ public void AddUserSecrets_ThrowsIfAssemblyAttributeFromType() | |||
{ | |||
var ex = Assert.Throws<InvalidOperationException>(() => | |||
new ConfigurationBuilder().AddUserSecrets<string>()); | |||
Assert.Equal(Resources.FormatError_Missing_UserSecretsIdAttribute(typeof(string).GetTypeInfo().Assembly.GetName().Name), | |||
Assert.Equal(SR.Format(SR.Error_Missing_UserSecretsIdAttribute, typeof(string).GetTypeInfo().Assembly.GetName().Name), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: existing, but this looks like it leaks the value of System.Private.CoreLib
. And provides a pretty useless error message: https://github.com/dotnet/extensions/blob/5054f8a0e544b3f9e670808fd0f581d8ea03bc5f/src/Configuration/Config.UserSecrets/src/Resources.resx#L127-L129
Given a user cannot change System.Private.Corelib should this be something else? (Not for this PR).
src/libraries/Microsoft.Extensions.Configuration.UserSecrets/tests/MsBuildTargetTest.cs
Show resolved
Hide resolved
builder.AddXunit(_output); | ||
}); | ||
// TODO refactor deployers to not depend on source code | ||
// see https://github.com/dotnet/extensions/issues/1697 and https://github.com/dotnet/aspnetcore/issues/10268 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to either do this or disable the test. Since our tests run on helix machines without a clone of source this won't work.
src/libraries/Microsoft.Extensions.Http/tests/Microsoft.Extensions.Http.Tests.csproj
Outdated
Show resolved
Hide resolved
...Microsoft.Extensions.Logging.EventSource/ref/Microsoft.Extensions.Logging.EventSource.csproj
Show resolved
Hide resolved
...Microsoft.Extensions.Logging.EventSource/src/Microsoft.Extensions.Logging.EventSource.csproj
Outdated
Show resolved
Hide resolved
f2d1a62
to
19f8387
Compare
I updated the PR to enable FunctionalTests and TestApp. That required me to bring over history on the following folder in Extensions repo: Then to simplify the PR for review I squashed all changes into two commits on top of the merge history commit: the commit messages hopefully make it easier to follow the changes Also note, I manually brought over changes seen in the following PR so that I could remove Serilog dependency and complete enabling all tests: |
...aries/Microsoft.Extensions.Hosting/tests/TestApp/Microsoft.Extensions.Hosting.TestApp.csproj
Outdated
Show resolved
Hide resolved
...ibraries/Microsoft.Extensions.Logging/tests/Common/Microsoft.Extensions.Logging.Tests.csproj
Show resolved
Hide resolved
Microsoft.Extensions.Configuration.Json Microsoft.Extensions.Configurations.UserSecrets Microsoft.Extensions.Configurations.Xml Logging (ref/src/pkg/test) - Microsoft.Extensions.Logging - Microsoft.Extensions.Logging.Configuration - Microsoft.Extensions.Logging.Console - Microsoft.Extensions.Logging.Debug - Microsoft.Extensions.Logging.EventLog - Microsoft.Extensions.Logging.EventSource - Microsoft.Extensions.Logging.TraceSource ref\src\pkg\test Microsoft.Extensions.Http Microsoft.Extensions.Caching.Memory Microsoft.Extensions.Hosting - [x] Functional/TestApp - Include Configuration.FunctionalTests and TestApp but refactor later More: - changes similar to 3040 in extensions - skip some test failures using ActiveIssue - ProjectExclusions removed - Suppress the duplication LoggingBuilderExtensions - deleting all csproj under Common
- no more project exclusions - delete files not used under Hosting/IntegrationTesting
- ValueTask instances should not have their result directly accessed unless the instance has already completed.
- Logging.Tests needs Logging./Abstraction/Console/EventLog
81bb10e
to
914fc70
Compare
disabled failing tests with ActiveIssue linking to the corresponding open issues: #34090 and #34091 Left to fix: allConfiguration failure on transport package: |
It looks like |
@KalleOlaviNiemitalo if it was your intent to report a problem, please open an issue with repro steps rather than comment on a closed pull request. Thanks! |
Out of scope for this PR: