镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

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

Merged
tarekgh merged 1 commit into
release/11.0from
backport/pr-136942-to-release/11.0
Nov 5, 2026
Merged

tarekgh merged 1 commit into
release/11.0from
backport/pr-136942-to-release/11.0

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Backport of #136942 to release/11.0

/cc @tarekgh

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.

<!-- -->

## Summary

Allow `IdsConversionsWithRegionTest` to accept either
`America/Vancouver` or `America/Los_Angeles` when converting `Pacific
Standard Time` with region `CA`. The result depends on the ICU mapping
data installed on the test host.

The theory now takes a `params string[]` of expected IANA IDs and checks
that the returned ID is in that set. All other cases retain a single
accepted value. No product behavior changes.

## Validation

```powershell
& .dotnet\dotnet.exe build src\libraries\System.Runtime\tests\System.Runtime.Tests\System.Runtime.Tests.csproj /t:Test /p:XunitMethodName=System.Tests.TimeZoneInfoTests.IdsConversionsWithRegionTest
```

Passed: build completed with zero warnings and errors; all 23 theory
cases passed with zero failures or skips.

```powershell
git --no-pager diff --check
```

Passed.

Validation used this Windows host's ICU 72.1 mapping, which returns
`America/Vancouver`. Execution with updated ICU data was not tested
locally.

Resolves #136758

Co-authored-by: Tarek Mahmoud Sayed <tarekms@ntdev.microsoft.com>
@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.

@tarekgh tarekgh changed the title [release/11.0] Accept both ICU mappings for Pacific Standard Time in Canada [release/11.0] [Test Only] Accept both ICU mappings for Pacific Standard Time in Canada Nov 4, 2026
@tarekgh tarekgh added this to the 11.0.0 milestone Nov 4, 2026
@tarekgh tarekgh added the Servicing-consider Issue for next servicing release review label Nov 4, 2026
@tarekgh tarekgh self-assigned this Nov 4, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@tarekgh

tarekgh commented Nov 5, 2026

Copy link
Copy Markdown
Member

/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 4dc878a into release/11.0 Nov 5, 2026
97 of 101 checks passed
@tarekgh
tarekgh deleted the backport/pr-136942-to-release/11.0 branch November 5, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.DateTime Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants