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

upgrade puma 6.0 #23295

Open
wants to merge 1 commit into
base: morphy
Choose a base branch
from
Open

upgrade puma 6.0 #23295

wants to merge 1 commit into from

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Dec 12, 2024

For reference, here is the PR we used to upgrade to python puma 6.3: #22672

@kbrock kbrock added dependencies security fix Security fix generated by WhiteSource labels Dec 12, 2024
@kbrock kbrock requested a review from Fryguy as a code owner December 12, 2024 00:27
@kbrock kbrock changed the title upgrade puma upgrade puma 6.0 Dec 17, 2024
@jrafanie
Copy link
Member

For reference, here is the PR we used to upgrade to python 6.3: #22672

Looks like python slithered into your mind... 🐍

@@ -916,7 +916,7 @@ GEM
faraday (>= 0.9, < 2.0.0)
psych (3.3.2)
public_suffix (4.0.6)
puma (4.3.10)
Copy link
Member

Choose a reason for hiding this comment

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

My only question is can you revisit the config/puma.rb and see if there were any changes in threads that might affect our current value and if there are any other settings added/changed that we might want to look at. Note, the comment there is from 3.0.0 puma.

It's fine if it's a followup PR but it's worth revisiting those when we upgrade to see if anything needs to change. For example, if the default is the same as our setting, we can probably drop threads(5, 5) from our configuration.

Copy link
Member Author

Choose a reason for hiding this comment

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

@jrafanie config/puma.rb on morphy is the same as on master.
I did not find any changes that we would need.

Copy link
Member

Choose a reason for hiding this comment

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

does this affect us setting min and max thread from configuration file?

We've removed the following public methods on Puma::Server: Puma::Server#min_threads, Puma::Server#max_threads. Instead, you can pass in configuration as an option to Puma::Server#new. This might make certain gems break (capybara for example).

@@ -916,7 +916,7 @@ GEM
faraday (>= 0.9, < 2.0.0)
psych (3.3.2)
public_suffix (4.0.6)
puma (4.3.10)
puma (6.5.0)
Copy link
Member

Choose a reason for hiding this comment

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

If 6.5 is out anyway, should we just change the Gemfile to ~> 6.5 ?

@jrafanie
Copy link
Member

I didn't realize this is for morphy... should we consider 5.6.9 as that's also patched there.

I'm fine with latest on master but morphy is so old. I don't know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies security fix Security fix generated by WhiteSource
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants