-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
OrganizeImportsTests
involving non-English characters are failing locally.
#58834
Comments
I play with this test and the key problem is the comparing of three Japanese characters. And I can't find a combination to let あ be the largest. |
@dtivel I believe you wrote these test cases like 15 years ago right :) Any recollection on the concerns here? |
I don't remember anything about this test. What does test history look like? Has the test been flaky for the past 15 years or did it suddenly start failing now? |
This predates roslyn by like 10+ years :D it was back when i added "sort imports" back in the wee VS2005 days and we worked on it together :) |
It's been reported to fail since Jan. But I am not sure it is starting to fail since which commit. |
It's possible that #57365 introduced the failure during local runs. It is probably related to a different runtime being used when running coreclr tests in CI versus locally. |
Fixed in this PR: |
Version Used:
main
Steps to Reproduce:
Run
Build.cmd -testCoreClr
locally.Actual Behavior:
Expected Behavior:
No test failure. The code path for comparing appears to be using
InvariantCulture
, which per documentation:StackOverflow question around this area for reference.
The comparison, per my understanding, happens in:
https://github.com/dotnet/roslyn/blob/main/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/Utilities/TokenComparer.cs
https://github.com/dotnet/roslyn/blob/main/src/Workspaces/SharedUtilitiesAndExtensions/Compiler/VisualBasic/Utilities/TokenComparer.vb
The text was updated successfully, but these errors were encountered: