Skip to content

Conversation

itingliu
Copy link
Contributor

I believe these tests are failing because some other tests are mutating the global cached current locale or calendar.

We've identified most tests whose test expectations depend on the current locale. We've addressed them by either specifying a fixed locale on the tests, or guard them inside usingCurrentInternationalizationPreferences. But even if a test doesn't assert the result based on the value of the current locale, the test might still cause the cache to be populated concurrently at the time of accessing autoupdating and current locale, and subsequently break tests that expect a given value of the current locale.

Disable the tests for now while investigating a proper way to update the tests. These tests pass when building as part of the Darwin SDK, so leave them enabled there.

155476600

itingliu added 2 commits July 10, 2025 16:54
I believe these tests are failing because some other tests are mutating the global cached current locale or calendar.

We've identified most tests whose test expectations depend on the current locale. We've addressed them by either specifying a fixed locale on the tests, or guard them inside `usingCurrentInternationalizationPreferences`. But even if a test doesn't assert the result based on the value of the current locale, the test might still cause the cache to be populated concurrently at the time of accessing autoupdating and current locale, and subsequently break tests that expect a given value of the current locale.

Disable the tests for now while investigating a proper way to update the tests. These tests pass when building as part of the Darwin SDK, so leave them enabled there.

155476600
@itingliu
Copy link
Contributor Author

@swift-ci please test

@itingliu itingliu merged commit eefacbc into swiftlang:main Jul 11, 2025
16 checks passed
@itingliu itingliu deleted the integerFormatStyle-test-failures branch July 11, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants