Skip to content
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

[6.0] Test failures on OSX: OSVersion_ValidVersion_OSX, CurrencyNegativePattern_Get_ReturnsExpected_ByLocale #80252

Closed
CarnaViire opened this issue Jan 5, 2023 · 14 comments
Labels
area-System.Runtime blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-mac-os-x macOS aka OSX

Comments

@CarnaViire
Copy link
Member

CarnaViire commented Jan 5, 2023

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=125170
Build error leg or test failing: System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX, System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(locale: \"es-BO\")
Pull request: #79549, #80190, #80209

Failing Configurations (3)

net6.0-OSX-Debug-x64-CoreCLR_checked-OSX.1200.Amd64.Open
net6.0-OSX-Debug-x64-CoreCLR_release-OSX.1200.Amd64.Open
net6.0-OSX-Debug-x64-Mono_release-OSX.1200.Amd64.Open

Related/potential cause: #80030

Error Message

  1. System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX

Exception Message

Assert.Contains() Failure
Not found: 12.4
In value:  osx.11.1-x64

CallStack

   at System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX() in /_/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs:line 193
  1. System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(locale: \"es-BO\")

Exception Message

Assert.Contains() Failure
Not found: 12
In value:  Int32[] [1]

Stack Trace

   at System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(String locale) in /_/src/libraries/System.Globalization/tests/NumberFormatInfo/NumberFormatInfoCurrencyNegativePattern.cs:line 56

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@CarnaViire CarnaViire added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Jan 5, 2023
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jan 5, 2023
@ghost
Copy link

ghost commented Jan 5, 2023

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

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=125170
Build error leg or test failing: System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX, System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(locale: \"es-BO\")
Pull request: #79549, #80190, #80209

Failing Configurations (3)

net6.0-OSX-Debug-x64-CoreCLR_checked-OSX.1200.Amd64.Open
net6.0-OSX-Debug-x64-CoreCLR_release-OSX.1200.Amd64.Open
net6.0-OSX-Debug-x64-Mono_release-OSX.1200.Amd64.Open

Related/potential cause: #80030

Error Message

  1. System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX

Exception Message

Assert.Contains() Failure
Not found: 12.4
In value:  osx.11.1-x64

CallStack

   at System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX() in /_/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs:line 193
  1. System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(locale: \"es-BO\")

Exception Message

Assert.Contains() Failure
Not found: 12
In value:  Int32[] [1]

Stack Trace

   at System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(String locale) in /_/src/libraries/System.Globalization/tests/NumberFormatInfo/NumberFormatInfoCurrencyNegativePattern.cs:line 56
Author: CarnaViire
Assignees: -
Labels:

blocking-clean-ci, area-Infrastructure, untriaged, Known Build Error

Milestone: -

@ghost
Copy link

ghost commented Jan 11, 2023

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

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=125170
Build error leg or test failing: System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX, System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(locale: \"es-BO\")
Pull request: #79549, #80190, #80209

Failing Configurations (3)

net6.0-OSX-Debug-x64-CoreCLR_checked-OSX.1200.Amd64.Open
net6.0-OSX-Debug-x64-CoreCLR_release-OSX.1200.Amd64.Open
net6.0-OSX-Debug-x64-Mono_release-OSX.1200.Amd64.Open

Related/potential cause: #80030

Error Message

  1. System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX

Exception Message

Assert.Contains() Failure
Not found: 12.4
In value:  osx.11.1-x64

CallStack

   at System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX() in /_/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs:line 193
  1. System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(locale: \"es-BO\")

Exception Message

Assert.Contains() Failure
Not found: 12
In value:  Int32[] [1]

Stack Trace

   at System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(String locale) in /_/src/libraries/System.Globalization/tests/NumberFormatInfo/NumberFormatInfoCurrencyNegativePattern.cs:line 56

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
Author: CarnaViire
Assignees: -
Labels:

area-System.Globalization, os-mac-os-x, blocking-clean-ci, untriaged, Known Build Error

Milestone: -

@carlossanlop
Copy link
Member

carlossanlop commented Jan 11, 2023

Here's an example of a failing test happening in the internal->public merge PR for 6.0:

@tarekgh
Copy link
Member

tarekgh commented Jan 11, 2023

@carlossanlop this looks to me the OS detection is the culprit here and not the test itself. This may explain the other Environment test failure which is same.
Can you send more details about the version of the OSX running the test? I tagged the issue as System.Runtime because this is not the globalization issue.

@ghost
Copy link

ghost commented Jan 11, 2023

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

Issue Details

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=125170
Build error leg or test failing: System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX, System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(locale: \"es-BO\")
Pull request: #79549, #80190, #80209

Failing Configurations (3)

net6.0-OSX-Debug-x64-CoreCLR_checked-OSX.1200.Amd64.Open
net6.0-OSX-Debug-x64-CoreCLR_release-OSX.1200.Amd64.Open
net6.0-OSX-Debug-x64-Mono_release-OSX.1200.Amd64.Open

Related/potential cause: #80030

Error Message

  1. System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX

Exception Message

Assert.Contains() Failure
Not found: 12.4
In value:  osx.11.1-x64

CallStack

   at System.Tests.EnvironmentTests.OSVersion_ValidVersion_OSX() in /_/src/libraries/System.Runtime.Extensions/tests/System/EnvironmentTests.cs:line 193
  1. System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(locale: \"es-BO\")

Exception Message

Assert.Contains() Failure
Not found: 12
In value:  Int32[] [1]

Stack Trace

   at System.Globalization.Tests.NumberFormatInfoCurrencyNegativePattern.CurrencyNegativePattern_Get_ReturnsExpected_ByLocale(String locale) in /_/src/libraries/System.Globalization/tests/NumberFormatInfo/NumberFormatInfoCurrencyNegativePattern.cs:line 56

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
Author: CarnaViire
Assignees: -
Labels:

area-System.Runtime, os-mac-os-x, blocking-clean-ci, untriaged, Known Build Error

Milestone: -

@ViktorHofer
Copy link
Member

ViktorHofer commented Jan 11, 2023

I agree with Tarek that this needs to be investigated, ideally before next servicing release's code-complete, as the failures might indicate a product regression.

@tarekgh
Copy link
Member

tarekgh commented Jan 11, 2023

#44120

@akoeplinger
Copy link
Member

The OSVersion_ValidVersion_OSX test isn't that concerning, it's just a test issue regarding how the version is checked.

The CurrencyNegativePattern_Get_ReturnsExpected_ByLocale was fixed by #63971 so we'd need to backport that to 6.0

@tarekgh
Copy link
Member

tarekgh commented Jan 11, 2023

@akoeplinger looks you are right. I was looking at the main branch code and not 6.0 release. Any idea why EnvironmentTest is failing too?

I can port the globalization test fix to 6.0.

@akoeplinger
Copy link
Member

akoeplinger commented Jan 12, 2023

@tarekgh I see we're at least missing this change to the test from this commit in 6.0 which makes it only look at the major version: 5da4464#diff-3b1296c3b8a733ad1c027de7b5c653d0843afcc959cf9b2656160a9dcf8c0aa5R193-R194

But that doesn't explain the full story since we're still getting 12 from Environment.OSVersion vs. 11 from RuntimeInformation.RuntimeIdentifier.

@akoeplinger
Copy link
Member

I figured it out, will send a PR. I'll include the globalization fix in that.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jan 12, 2023
@akoeplinger
Copy link
Member

#80560

@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jan 12, 2023
@tarekgh
Copy link
Member

tarekgh commented Jan 13, 2023

Fixed by #80560

@tarekgh tarekgh closed this as completed Jan 13, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Jan 13, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Feb 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Runtime blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-mac-os-x macOS aka OSX
Projects
None yet
Development

No branches or pull requests

5 participants