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

Cherry pick logger fix for Ruby 3.3 #9510

Merged
merged 4 commits into from Dec 27, 2023
Merged

Cherry pick logger fix for Ruby 3.3 #9510

merged 4 commits into from Dec 27, 2023

Conversation

ntkme
Copy link
Contributor

@ntkme ntkme commented Dec 27, 2023

This PR ports #9392 to 4.3 stable branch. This change is backward compatible with older version of logger. We should fix this as soon as possible, because Jekyll is completely unusable on Ruby 3.3 right now. In my test this is the only patch required for Ruby 3.3.

This also picks #9469 and #9196, but these are test-only fixes for the CI.

cc @parkr @ashmaroli Can you please help take a look and perhaps cut a patch release? Thank you.

@mattr-
Copy link
Member

mattr- commented Dec 27, 2023

Looks fine to me. Will get this merged and start running through the release process in a couple of hours.

@mattr- mattr- merged commit a6b1800 into jekyll:4.3-stable Dec 27, 2023
7 of 8 checks passed
@ntkme ntkme deleted the cherry-pick-fix-ruby-3.3 branch December 27, 2023 17:12
@parkr parkr added the ⏪ backport Changes will be merged into an older stable branch label Dec 28, 2023
HyukjinKwon pushed a commit to apache/spark that referenced this pull request Jan 9, 2024
….3.0

### What changes were proposed in this pull request?

1. Bump jekyll to 4.3.3.
2. Loosen the dependency spec for jekyll to make updates easier.
3. Don't mention Ruby 1 or 2 in the docs.
4. Don't use `sudo` with `gem` in the docs.

### Why are the changes needed?

1. Jekyll 4.3.2 is [broken on Ruby 3.3.0][1]. Jekyll 4.3.3 [fixes the issue][2].
2. There is no need to pin Jekyll in the Gemfile since it gets pinned automatically for us in the lock file. This makes updating dependencies via `bundle update` easier.
3. Both Ruby 1 and 2 are [EOL][eol]. We should not use or reference them in the docs.
4. Installing stuff as the superuser is explicitly discouraged by both pip and gem. Pip issues this warning:

    > WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

    And bundler issues this warning:

    > Don't run Bundler as root. Installing your bundle as root will break this application for all non-root users on this machine.

    We should not encourage this pattern in our docs.

[1]: jekyll/jekyll#9510
[2]: https://github.com/jekyll/jekyll/releases/tag/v4.3.3
[eol]: https://www.ruby-lang.org/en/news/2022/04/12/ruby-2-7-6-released/

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Building the docs against Ruby 3.2.2 and 3.3.0.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #44628 from nchammas/SPARK-46626-jekyll-ruby.

Authored-by: Nicholas Chammas <nicholas.chammas@gmail.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⏪ backport Changes will be merged into an older stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants