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

BIB-46: Dual boot with Rails 7.1 #2581

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

torresga
Copy link
Contributor

@torresga torresga commented Sep 5, 2024

⚠️ Must follow #2579

This PR adds the dual boot code to dual boot both Rails 7.0 and Rails 7.1 locally and in CI.

Running rails c and rails s should work as expected with no errors.
The CI should run the tests for Rails 7.1.

You can append BUNDLE_GEMFILE=Gemfile.next to a command, i.e. BUNDLE_GEMFILE=Gemfile.next rails c to run whatever command using Rails 7.1.

We will continue to fix the broken build in Rails 7.1 in upcoming PRs.

@@ -149,7 +159,7 @@ GEM
brakeman (5.4.1)
buftok (0.2.0)
builder (3.3.0)
bullet (7.0.1)
bullet (7.1.6)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Base automatically changed from BIB-45-dual-boot-rails-6-1-and-7 to main September 8, 2024 15:37
@fbuys fbuys changed the base branch from main to BIB-49-rails-7-production September 11, 2024 11:59
So we can start work on Rails 7.1 upgrade.

What
- Update gemfiles and lock files.
- Ensure CI runs tests for both versions.
- Update incompatible gems.

Jira: https://ombulabs.atlassian.net/browse/BIB-46
@fbuys fbuys force-pushed the BIB-46-dual-boot-with-rails-7-1 branch from 45d2fb1 to f9b5d0a Compare September 11, 2024 19:35
Copy link

@fbuys fbuys left a comment

Choose a reason for hiding this comment

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

To early to approve this PR, we should wait for #2579 to be merged first

@torresga torresga force-pushed the BIB-46-dual-boot-with-rails-7-1 branch from 1d56154 to 0d597ae Compare October 7, 2024 16:23
@@ -185,7 +195,12 @@ GEM
crass (1.0.6)
css_parser (1.7.1)
addressable
database_cleaner (1.7.0)
database_cleaner (2.0.2)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We updated database_cleaner because we were getting this error in Rails 7.1:

An error occurred in a `before(:suite)` hook.
Failure/Error: DatabaseCleaner.clean_with(:deletion)

NoMethodError:
  undefined method `table_name' for ActiveRecord::SchemaMigration:Class
# ./spec/rails_helper.rb:161:in `block (2 levels) in <top (required)>'

@torresga torresga marked this pull request as ready for review October 9, 2024 13:57
Base automatically changed from BIB-49-rails-7-production to main October 15, 2024 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