Skip to content

Run the Linux Single Machine CI with the Spanish locale.#82450

Merged
jjonescz merged 8 commits into
mainfrom
dev/jorobich/add-ubuntu-es
Mar 4, 2026
Merged

Run the Linux Single Machine CI with the Spanish locale.#82450
jjonescz merged 8 commits into
mainfrom
dev/jorobich/add-ubuntu-es

Conversation

@JoeRobich

@JoeRobich JoeRobich commented Feb 19, 2026

Copy link
Copy Markdown
Member

We already have a Linux leg running in helix. The single machine run of Linux is just to ensure we haven't broken the test runner's ability to run tests locally. This repurposes it for the Spanish locale tests that run for each PR.

Also, moves the Windows Spanish CI leg to run on rolling builds.

Moves the Windows Spanish CI leg to run on rolling builds.
@JoeRobich JoeRobich requested a review from a team as a code owner February 19, 2026 00:56
@333fred

This comment was marked as resolved.

@JoeRobich JoeRobich requested a review from a team as a code owner February 23, 2026 23:36
@JoeRobich JoeRobich force-pushed the dev/jorobich/add-ubuntu-es branch from c16ea18 to 657872b Compare February 23, 2026 23:38
diff1.EmitResult.Diagnostics.Verify(
// error CS7043: Cannot emit update; constructor 'System.Exception..ctor(string)' is missing.
Diagnostic(ErrorCode.ERR_EncUpdateFailedMissingSymbol).WithArguments("constructor", "System.Exception..ctor(string)").WithLocation(1, 1),
Diagnostic(ErrorCode.ERR_EncUpdateFailedMissingSymbol).WithArguments(CodeAnalysisResources.Constructor, "System.Exception..ctor(string)").WithLocation(1, 1),

@JoeRobich JoeRobich Feb 23, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeAnalysisResources was used elsewhere in this test file but not in these tests. This showed up in failures similar to expected: "method" and actual: "método". #Closed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this indicates a real product issue. When diagnostic is created, its arguments should not be pulled from resources by using default culture.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LocalizableErrorArgument or something similar should be used instead.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted and opened #82612 to track


var cmd = CreateCSharpCompiler(null, dir.Path,
new[] { "/t:library", "/nologo", "/warnaserror+", src.Path },
new[] { "/t:library", "/preferreduilang:en", "/nologo", "/warnaserror+", src.Path },

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other tests were already setting /preferreduilang:en prior to checking error string.

@dotnet dotnet deleted a comment from azure-pipelines Bot Feb 23, 2026
@JoeRobich JoeRobich requested review from 333fred and tmat February 24, 2026 07:19
Comment thread docs/contributing/Localization In Compiler Tests.md
@AlekseyTs

AlekseyTs commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

Done with review pass (commit 6) #Closed

@JoeRobich

Copy link
Copy Markdown
Member Author

@AlekseyTs Ready for another review.

@AlekseyTs

Copy link
Copy Markdown
Contributor

Done with review pass (commit 7)

@AlekseyTs AlekseyTs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (commit 8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants