-
Notifications
You must be signed in to change notification settings - Fork 733
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
Port config fix to 2.2 #1221
Port config fix to 2.2 #1221
Conversation
Port of #1202
src/Configuration/test/Config.FunctionalTests/ConfigurationTests.cs
Outdated
Show resolved
Hide resolved
There's no reload for user secrets in 2.2 so those tests had to be removed |
Original PR: #1202 DescriptionThere is a race condition that can be hit if a file is being updated while the configuration system is refreshing configuration from that file. Customer ImpactCustomer reported. Application crashes with exception. Regression?No; same behavior in 2.1. At this time, we're bring for 2.2 only. RiskLow. Configuration system is relatively small and code change is simple. |
For my own curiosity, how often does "Shiproom" meet to discuss such proposed changes? |
@martincostello Usually twice per week. |
Thanks - I was just wondering as I was reviewing our production logs from over the weekend and we had a handful of the exception occur, so I just wanted to what the status was. |
This fix is incomplete without an update to eng/PatchConfig.props. |
Approved for 2.2.4 |
@dougbu what am I supposed to do to patchconfig.props? |
I think |
Alright, @dougbu updated patchconfig |
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.
Looks complete from an eng perspective.
@HaoK I resolved the conflict with my branding update. You're good to go here because that's in. (2.1.10 branding is still pending right this minute.)
...ration/test/Config.FunctionalTests/Microsoft.Extensions.Configuration.FunctionalTests.csproj
Outdated
Show resolved
Hide resolved
Hrm build checks are red after updating the patch config... any ideas @dougbu ?
|
Oh well, this isn't quite ready to go |
@HaoK will get back to you on the version mismatches once I get home. Things aren't working as they should… |
@HaoK didn't find similar changes elsewhere,. But, I'm guessing the package verifier is correct. Add the following to the "Microsoft.Extensions.Configuration.EnvironmentVariables": {
"Exclusions": {
"ASSEMBLY_FILE_VERSION_MISMATCH": {
"lib/netstandard2.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll": "Enter justification"
},
"ASSEMBLY_VERSION_MISMATCH": {
"lib/netstandard2.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll": "Enter justification"
}
}
},
"Microsoft.Extensions.Configuration.KeyPerFile": {
"Exclusions": {
"ASSEMBLY_FILE_VERSION_MISMATCH": {
"lib/netstandard2.0/Microsoft.Extensions.Configuration.KeyPerFile.dll": "Enter justification"
},
"ASSEMBLY_VERSION_MISMATCH": {
"lib/netstandard2.0/Microsoft.Extensions.Configuration.KeyPerFile.dll": "Enter justification"
}
}
} |
Cool that was it, green now @dougbu |
- port of dotnet/extensions#1202 - with PR tweaks for 2.2 - e.g. adjust Microsoft.Extensions.Configuration.FunctionalTests.csproj to match layout here - update PatchConfig.props and NuGetPackageVerifier.json\n\nCommit migrated from dotnet/extensions@9ebff1a
- port of dotnet/extensions#1202 - with PR tweaks for 2.2 - e.g. adjust Microsoft.Extensions.Configuration.FunctionalTests.csproj to match layout here - update PatchConfig.props and NuGetPackageVerifier.json\n\nCommit migrated from dotnet/extensions@9ebff1a
- port of dotnet/extensions#1202 - with PR tweaks for 2.2 - e.g. adjust Microsoft.Extensions.Configuration.FunctionalTests.csproj to match layout here - update PatchConfig.props and NuGetPackageVerifier.json Commit migrated from dotnet/extensions@9ebff1a
- port of dotnet/extensions#1202 - with PR tweaks for 2.2 - e.g. adjust Microsoft.Extensions.Configuration.FunctionalTests.csproj to match layout here - update PatchConfig.props and NuGetPackageVerifier.json Commit migrated from dotnet/extensions@9ebff1a
- port of dotnet/extensions#1202 - with PR tweaks for 2.2 - e.g. adjust Microsoft.Extensions.Configuration.FunctionalTests.csproj to match layout here - update PatchConfig.props and NuGetPackageVerifier.json Commit migrated from dotnet/extensions@9ebff1a
- port of dotnet/extensions#1202 - with PR tweaks for 2.2 - e.g. adjust Microsoft.Extensions.Configuration.FunctionalTests.csproj to match layout here - update PatchConfig.props and NuGetPackageVerifier.json Commit migrated from dotnet/extensions@9ebff1a
@ajcvickers