Skip to content

AP-588 Upgrade Rails to 8.0.x#20

Merged
steve-sullivan merged 17 commits intomainfrom
AP-588-upgrade-dependencies
Apr 3, 2026
Merged

AP-588 Upgrade Rails to 8.0.x#20
steve-sullivan merged 17 commits intomainfrom
AP-588-upgrade-dependencies

Conversation

@steve-sullivan
Copy link
Copy Markdown
Contributor

Upgrade Rails and dependencies to 8.0.x

  • Upgrade Rails to 8.0.5
  • Upgrade omniauth-cas to 3.x and add CSRF protection
  • Update Puma, RSpec, RuboCop, and Berkeley Library gems
  • Fix Rails 8 changes (ActiveRecord connection pool, status codes)
  • Update auth for OmniAuth 2
  • Fix CI (db task + secret_key_base requirement)

Copy link
Copy Markdown
Member

@anarchivist anarchivist left a comment

Choose a reason for hiding this comment

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

generally looks good - rw+c. most of my comments are minor. you might want to ask Anna to look at this, too.

@steve-sullivan steve-sullivan requested a review from awilfox March 26, 2026 23:22
Copy link
Copy Markdown
Member

@awilfox awilfox left a comment

Choose a reason for hiding this comment

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

This looks mostly good, just a few nits. However, it looks like rails app:update wasn't run, similar to what happened at the beginning of BerkeleyLibrary/UCBEARS#21. Can you make sure that's run and the configuration files are updated appropriately? I described how to do that in the UCBEARS MR.

@steve-sullivan steve-sullivan requested a review from awilfox March 31, 2026 20:59
Copy link
Copy Markdown
Member

@awilfox awilfox left a comment

Choose a reason for hiding this comment

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

We're quite close! Luckily there aren't too many new configurations it found for 8.0. I'm not sure about 7.1 and 7.2; you may need to step each one of those as well.

You don't need to do each one, since some of them are obviously not going to affect us (old IE support and the like). The main ones I'm concerned about from 7.1 and 7.2 are the Postgres adaptor settings and YJIT.

@awilfox
Copy link
Copy Markdown
Member

awilfox commented Mar 31, 2026

To be clear, you can download the 7.1 and 7.2 files I linked above and put them in config/initializers/ and perform the same procedure as is described in the 8.0 file.

@steve-sullivan steve-sullivan requested a review from awilfox April 2, 2026 21:41
Copy link
Copy Markdown
Member

@awilfox awilfox left a comment

Choose a reason for hiding this comment

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

r+wc; I think we can drop the Rails 7.1 explicit setting, and then this should be good.

Thank you so much for your diligence through all these updates; I know it isn't easy or fun. You rocked it though!


# Rails 7.1 default: do not add autoload paths to $LOAD_PATH.
# Reduces load path size and avoids manual requires for autoloaded code.
config.add_autoload_paths_to_load_path = false
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need this if we are now loading 8.0 defaults?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ahhh, I needed it while testing, but yeah, seems it's unnecessary now using 8.0!

@steve-sullivan steve-sullivan merged commit 43c98b8 into main Apr 3, 2026
5 checks passed
@steve-sullivan steve-sullivan deleted the AP-588-upgrade-dependencies branch April 3, 2026 00:23
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.

3 participants