Skip to content

[release/11.0] Fix configuration reload test race - #134370

Merged
ViveliDuCh merged 1 commit into
release/11.0from
backport/pr-133368-to-release/11.0
Sep 21, 2026
Merged

ViveliDuCh merged 1 commit into
release/11.0from
backport/pr-133368-to-release/11.0

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Backport of #133368 to release/11.0

/cc @ViveliDuCh @svick

Customer Impact

  • Customer reported
  • Found internally

[Select one or both of the boxes. Describe how this issue impacts customers, citing the expected and actual behaviors and scope of the issue. If customer-reported, provide the issue number.]

Regression

  • Yes
  • No

[If yes, specify when the regression was introduced. Provide the PR or commit if known.]

Testing

[How was the fix verified? How was the issue missed previously? What tests were added?]

Risk

[High/Medium/Low. Justify the indication by mentioning how risks were measured and addressed.]

IMPORTANT: If this backport is for a servicing release, please verify that:

  • For .NET 8 and .NET 9: The PR target branch is release/X.0-staging, not release/X.0.
  • For .NET 10+: The PR target branch is release/X.0 (no -staging suffix).

Package authoring no longer needed in .NET 9

IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.

Fixes #132147.

The test waited for the expected configuration value before asserting
that the root reload token had changed. `FileConfigurationProvider`
updates its data before it raises its provider reload token, so the
expected value could become visible while the root token was still
unchanged.

Update each wait condition in `DeletingFilesThatRedefineKeysWithReload`
to require both the expected value and the corresponding root reload
token notification before the test continues.

## Testing

- `dotnet build
src\libraries\Microsoft.Extensions.Configuration\tests\FunctionalTests\Microsoft.Extensions.Configuration.Functional.Tests.csproj
/t:test
/p:XunitMethodName=Microsoft.Extensions.Configuration.Test.ConfigurationTests.DeletingFilesThatRedefineKeysWithReload`
- 20 repeated runs of `DeletingFilesThatRedefineKeysWithReload` (40
theory cases)
- `dotnet build
src\libraries\Microsoft.Extensions.Configuration\tests\FunctionalTests\Microsoft.Extensions.Configuration.Functional.Tests.csproj
/t:test`

> [!NOTE]
> This pull request description was generated with GitHub Copilot.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-extensions-configuration
See info in area-owners.md if you want to be subscribed.

@mrek-msft

Copy link
Copy Markdown
Member

Test only change. Adding servicing-approved.

@mrek-msft mrek-msft added the Servicing-approved Approved for servicing release label Sep 21, 2026
@ViveliDuCh

Copy link
Copy Markdown
Member

/ba-g only known test failures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants