-
Notifications
You must be signed in to change notification settings - Fork 479
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
Update Spring to 3.1.1 #51022
Update Spring to 3.1.1 #51022
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apologies, I'm going to attempt to answer my own question, but please feel free to correct me if I am mistaken -- it looks like this means that this seems fine for the normal developer case, but could possibly be worth keeping in mind if you had to run locally without cache_classes for some reason, in which case you might need to disable spring? in any case, no concerns with merging. |
Oh, good callout, thanks! I had glanced at that change, but only to verify that it specifically wants us to set code-dot-org/dashboard/config/environments/development.rb Lines 4 to 7 in 25636b6
However, I failed to realize that we're also using Spring in the test environment, and there we have the value set to code-dot-org/dashboard/config/environments/test.rb Lines 4 to 8 in 25636b6
Tests still passed, but their documentation explicitly calls out that it's important this be false in the test environment, so I think I have some more investigation to do. |
Okay, after some investigation it turns out that the reason they recommend Either way, I think the question of whether or not we want to enable the class cache in the test environment can be discussed independently of this version bump, so I'm going to set it down for now (at least, until the time comes to update Rails to 7.0). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still going to have to manually kill spring a few times a day, right? 😂
Probably, yeah 🙃 |
thanks for digging into this, @Hamms! one more question to check my understanding:
Can you help me understand what impact this will have on running dashboard unit tests locally -- since we are still going to have cache_classes = true in test, does this mean that |
This PR isn't making any changes to our configuration: |
@Hamms I think we may still have a problem here. would you mind double checking what I am seeing?
|
Oh, correct, I had the values backwards in my head when I was writing that comment; I meant |
To pick up full support for Ruby 3.x, added in that version.
The primary breaking change since 2.0.1 is the removal of support for versions of Ruby older than 2.5
Links
https://github.com/rails/spring/blob/main/CHANGELOG.md#311
Testing story
Tested locally; both that this version of Spring fixes the issues we otherwise run into on Ruby 3, and that it works as expected in Ruby 2