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

GH-39074: [Release][Packaging] Use UTF-8 explicitly for KEYS #39082

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

kou
Copy link
Member

@kou kou commented Dec 5, 2023

Rationale for this change

KEYS may have UTF-8 (non ASCII) characters. Ruby chooses the default encoding based on LANG. If LANG=C, Ruby uses the US-ASCII encoding as the default encoding. If Ruby uses the US-ASCII encoding, we can't process KEYS because it has non ASCII characters.

What changes are included in this PR?

Use the UTF-8 encoding explicitly for KEYS. If we specify the UTF-8 encoding explicitly, our KEYS processing don't depend on LANG.

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@kou kou requested review from assignUser and raulcd as code owners December 5, 2023 21:05
Copy link

github-actions bot commented Dec 5, 2023

⚠️ GitHub issue #39074 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions bot added the awaiting committer review Awaiting committer review label Dec 5, 2023
@kou
Copy link
Member Author

kou commented Dec 5, 2023

@github-actions crossbow submit almalinux-* centos-* amazonlinux-*

Copy link

github-actions bot commented Dec 5, 2023

Unable to match any tasks for `amazonlinux-*`
The Archery job run can be found at: https://github.com/apache/arrow/actions/runs/7106566469

@kou
Copy link
Member Author

kou commented Dec 5, 2023

@github-actions crossbow submit almalinux-* centos-* amazon-linux-*

Copy link

github-actions bot commented Dec 5, 2023

Revision: 834a72f

Submitted crossbow builds: ursacomputing/crossbow @ actions-ad03727a29

Task Status
almalinux-8-amd64 GitHub Actions
almalinux-8-arm64 GitHub Actions
almalinux-9-amd64 GitHub Actions
almalinux-9-arm64 GitHub Actions
amazon-linux-2023-amd64 GitHub Actions
amazon-linux-2023-arm64 GitHub Actions
centos-7-amd64 GitHub Actions
centos-8-stream-amd64 GitHub Actions
centos-8-stream-arm64 GitHub Actions
centos-9-stream-amd64 GitHub Actions
centos-9-stream-arm64 GitHub Actions

@kou
Copy link
Member Author

kou commented Dec 5, 2023

+1

@kou kou merged commit 50e54b8 into apache:main Dec 5, 2023
6 checks passed
@kou kou deleted the ci-linux-packages-keys branch December 5, 2023 23:51
@kou kou removed the awaiting committer review Awaiting committer review label Dec 5, 2023
Copy link

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 50e54b8.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 3 possible false positives for unstable benchmarks that are known to sometimes produce them.

raulcd pushed a commit that referenced this pull request Dec 9, 2023
### Rationale for this change

`KEYS` may have UTF-8 (non ASCII) characters. Ruby chooses the default encoding based on `LANG`. If `LANG=C`, Ruby uses the `US-ASCII` encoding as the default encoding. If Ruby uses the `US-ASCII` encoding, we can't process `KEYS` because it has non ASCII characters.

### What changes are included in this PR?

Use the `UTF-8` encoding explicitly for `KEYS`. If we specify the `UTF-8` encoding explicitly, our `KEYS` processing don't depend on `LANG`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: #39074

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…pache#39082)

### Rationale for this change

`KEYS` may have UTF-8 (non ASCII) characters. Ruby chooses the default encoding based on `LANG`. If `LANG=C`, Ruby uses the `US-ASCII` encoding as the default encoding. If Ruby uses the `US-ASCII` encoding, we can't process `KEYS` because it has non ASCII characters.

### What changes are included in this PR?

Use the `UTF-8` encoding explicitly for `KEYS`. If we specify the `UTF-8` encoding explicitly, our `KEYS` processing don't depend on `LANG`.

### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: apache#39074

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Sutou Kouhei <[email protected]>
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.

[Release][Packaging] Linux packages fail on ARM due to wrong KEYS file with non US-ASCII character
1 participant