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.2.0] Force the Bazel server Java runtime to use the root locale #17715

Closed
wants to merge 3 commits into from
Closed

[6.2.0] Force the Bazel server Java runtime to use the root locale #17715

wants to merge 3 commits into from

Conversation

ShreeM01
Copy link
Contributor

@ShreeM01 ShreeM01 commented Mar 9, 2023

This ensures consistent behavior of string operations even if the individual operations do not set a locale.

Without this change, Bazel can't operate in e.g. a Turkish locale, where it fails with error messages such as:

In rule 'test', size 'medium' is not a valid size.

This is because Turkish case mapping rules make it so that a capital ASCII 'I' lowercases to a non-ASCII variant of 'i'.

Fixes #17541

Closes #17702.

PiperOrigin-RevId: 515339563
Change-Id: I8417d0befd76ba6d140588be5f7e50529af3f6c7

tjgq and others added 2 commits March 9, 2023 09:09
While non-empty tree artifacts in the inputs to an action are expanded into the files they contain and omitted from the input mapping, empty tree artifacts are still present, as they signal the need to create the directory.

I'm explicitly skipping the empty tree artifacts in prefetchFiles() as otherwise they get skipped as a result of FileArtifactValue#isRemote() returning false for the FileArtifactValue associated with an empty tree artifact (even if it was produced remotely!), which is extremely subtle.

Closes #17183.

[NOTE: this is a combined cherry pick of 763f966 and 4c57def, as the former left Bazel in a broken state.]

PiperOrigin-RevId: 501207095
Change-Id: Ib52727d6fdc6b7a291a61fba33914e57531fb1f4
This ensures consistent behavior of string operations even if the individual operations do not set a locale.

Without this change, Bazel can't operate in e.g. a Turkish locale, where it fails with error messages such as:

In rule 'test', size 'medium' is not a valid size.

This is because Turkish case mapping rules make it so that a capital ASCII 'I' lowercases to a non-ASCII variant of 'i'.

Fixes #17541

Closes #17702.

PiperOrigin-RevId: 515339563
Change-Id: I8417d0befd76ba6d140588be5f7e50529af3f6c7
@ShreeM01 ShreeM01 requested review from lberki and meteorcloudy March 9, 2023 21:05
@ShreeM01 ShreeM01 deleted the branch bazelbuild:release-6.2.0 March 9, 2023 21:44
@ShreeM01 ShreeM01 closed this Mar 9, 2023
@ShreeM01 ShreeM01 reopened this Mar 9, 2023
@ShreeM01 ShreeM01 closed this by deleting the head repository Mar 9, 2023
@ShreeM01 ShreeM01 reopened this Mar 9, 2023
@ShreeM01 ShreeM01 enabled auto-merge (squash) March 9, 2023 22:49
@sgowroji sgowroji added the team-Rules-ObjC Issues for Objective-C maintainers label Mar 10, 2023
@ShreeM01 ShreeM01 disabled auto-merge March 10, 2023 15:51
@ShreeM01 ShreeM01 closed this Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-ObjC Issues for Objective-C maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants