Skip to content

[release/10.0] [Test Only] Accept both ICU mappings for Pacific Standard Time in Canada - #136981

Merged
tarekgh merged 1 commit into
dotnet:release/10.0from
tarekgh:fix-timezone-icu-canada-release10
Nov 5, 2026
Merged

tarekgh merged 1 commit into
dotnet:release/10.0from
tarekgh:fix-timezone-icu-canada-release10

Conversation

@tarekgh

@tarekgh tarekgh commented Nov 4, 2026

Copy link
Copy Markdown
Member

Fixes Issue #136758

main PR #136942

Description

Manual backport of #136942 to release/10.0.

Allow IdsConversionsWithRegionTest to accept either America/Vancouver or America/Los_Angeles for Pacific Standard Time with region CA, depending on the ICU mapping data installed on the test host. The theory accepts a params string[] of expected IDs and uses Assert.Contains. All other 22 cases retain a single accepted value.

The port preserves the branch's existing [ConditionalTheory(nameof(SupportIanaNamesConversion))] attribute. There are no product or public API changes.

Customer Impact

Without this change, the test fails on hosts with updated ICU mappings, producing unrelated CI failures and potentially blocking servicing validation. This is a test-only fix, not a change to the conversion result applications receive.

Regression

No product regression. The test's hardcoded expected mapping does not account for newer external ICU data.

Testing

Compiled the exact modified theory method and all 23 InlineData rows extracted from this branch in a temporary standalone xUnit project, replacing only the conditional theory attribute with [Theory] in the temporary harness.

From the temporary harness directory:

& 'C:\Program Files\dotnet\dotnet.exe' test BackportTheoryValidation.csproj --framework net10.0 -p:TheoryFile=net10-theory.cs --logger 'trx;LogFileName=net10.trx'

Passed on Windows with .NET 10.0.14: 23 passed, zero failed, zero skipped.

From the release worktree:

git diff --check

Passed. The extracted method and data also match the merged main fix exactly.

Full release-branch builds and repository test-project execution were not run. Local execution used the host's older ICU mapping, which returns America/Vancouver; execution with updated ICU data was not tested locally.

Risk

Low. Only one existing test is changed. The condition controlling when it runs is unchanged, and only the Canadian Pacific mapping gains an additional accepted result. No shipping code, package contents, or public contracts change.

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.

Not applicable: test-only change.

Resolves #136758

Backport dotnet#136942 to release/10.0, preserving the existing conditional theory attribute.
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 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-system-globalization
See info in area-owners.md if you want to be subscribed.

@tarekgh tarekgh added this to the 10.0.x milestone Nov 4, 2026
@tarekgh tarekgh added the Servicing-consider Issue for next servicing release review label Nov 4, 2026
@tarekgh

tarekgh commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

/ba-g the failures are unrelated and the test changed in this PR is passing.

@tarekgh tarekgh added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Nov 5, 2026
@tarekgh
tarekgh merged commit 4c990bd into dotnet:release/10.0 Nov 5, 2026
69 of 102 checks passed
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.

2 participants