-
Notifications
You must be signed in to change notification settings - Fork 10
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 ruby and rails #749
Open
fosterfarrell9
wants to merge
18
commits into
dev
Choose a base branch
from
upgrade/ruby_and_rails
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ix deprecation warning
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: This PR has a "best before" date: 2025-03-31, see here.
This PR upgrades Ruby to 3.3.7 and Rails to 7.2.2.1 (and in particular resolves #611 and goes most of the way for #709), and some gems that needed an upgrade in order to make the Rails upgrade work. So far, it seems to work mostly nicely. Several deprecation warnings were shown; I fixed them all except one (see below),
and some unit tests are failing (see below).
Notes for the reviewer:
app:update
script overwrite ourpuma.rb
file which seemed quite out of date compared to the current standard one. One notable difference is the handling of the pid file. Before, it wasNow, it is
On partiulcar, if we need the PID file in production, we should set an environment variable. I am not sure: We have
in
production/entrypoint_worker.sh
."development"
referring to a "development" environment. Do we need that? All our development takes place indocker_development
.production.rb
ccontains the lineconfig.force_ssl = true
. I added it, but put it in a comment. We should find out what happens if we uncomment it.docker_development.rb
I added the following lines wich come form the current Rails default devlopment file:I think the first one makes sense, and the second one should remain a comment since we have our own rubocop thing going on.
See here. It appears we could get rid of it if we upgrade sass-loader to v16 in our yarn modules, but do we want that? It seems that vite offers a better solution, see here.
so this seems to refer to this. But in
config/environments/test.rb
we already setUpdate: I guess the problem is in
config/initializers/active_job.rb
where we set (for all environments)which probably overrides the
:test
setting. Do we have tests (unit or cypress) that rely on sidekiq? If not, we could just do a conditional here.active_support.cache_format_version
: I think we should be able to safely change this in production now (which happens automatically in this PR since we use the Rails 7.2 framework defaults inapplication.rb
).