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

Relax Ruby version requirement; get CI passing #23

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

benjaminwil
Copy link

Ruby 2.7 has been end-of-lifed, and Solidus no longer supports Ruby 2, either. We should relax the Ruby version constraints for this extension. There doesn't seem to be a specific reason for the constraint as it was written.

@benjaminwil benjaminwil force-pushed the ruby-version-requirement-bump branch 2 times, most recently from 0a7d63c to 19225c7 Compare August 22, 2023 00:33
@benjaminwil benjaminwil force-pushed the ruby-version-requirement-bump branch from 524cf3e to 325280b Compare November 21, 2023 20:00
@benjaminwil benjaminwil changed the title Relax Ruby version requirement Relax Ruby version requirement and get CI passing Nov 21, 2023
@benjaminwil benjaminwil force-pushed the ruby-version-requirement-bump branch from 325280b to dc61444 Compare November 21, 2023 20:59
@benjaminwil benjaminwil force-pushed the ruby-version-requirement-bump branch 2 times, most recently from bcde30a to 78e668f Compare April 2, 2024 19:24
In tests. We'd like to use it for the feature test in this extension.
Ruby 2 has been end-of-lifed. There doesn't seem to be a specific reason
for this Ruby version requirement, so let's relax it.
@benjaminwil benjaminwil force-pushed the ruby-version-requirement-bump branch 2 times, most recently from 2f38dcd to 45e9064 Compare June 4, 2024 18:54
benjaminwil and others added 6 commits June 4, 2024 12:12
We can depend on `solidus_dev_support` to do this for us.

We did a `bundle update solidus_dev_support`, too.
On CI this feature test was flaky. It seems like not all product pages
were being visited consistently; the errors were about "Jersey" being
missing from the expected page body text.
There is no reason for us to require this as a dependency. `sassc` is
also a deprecated way of compiling SCSS to CSS.
In CI we received this error, causing the test run to fail early:

    Zeitwerk::NameError: expected file /home/circleci/project/app/overrides/add_recently_viewed_products.rb
      to define constant AddRecentlyViewedProducts, but didn't
    /home/circleci/project/spec/dummy/config/environment.rb:5:in `<top (required)>'

Co-Authored-By: Adam Mueller <[email protected]>
This change:

- Ensures that browser tools for running feature tests are explicitly
  available.
- Ensures that all required executors use Ruby 3. (Ruby 2 is now EOL.)
@benjaminwil benjaminwil force-pushed the ruby-version-requirement-bump branch from 45e9064 to 0da1c9d Compare June 4, 2024 19:12
This causes test runs on CI to fail with:

   Failure/Error: ActiveStorage::Current.host = 'https://www.example.com'

     NoMethodError:
       undefined method `host=' for #<ActiveStorage::Current:0x00007f12e8d2bbb0 @attributes={}>
     # ./spec/spec_helper.rb:28:in `block (2 levels) in <top (required)>'
@benjaminwil benjaminwil force-pushed the ruby-version-requirement-bump branch from 99d7846 to 921d6e7 Compare July 25, 2024 21:10
@benjaminwil benjaminwil changed the title Relax Ruby version requirement and get CI passing Relax Ruby version requirement; get CI passing Jul 25, 2024
Copy link

@MadelineCollier MadelineCollier left a comment

Choose a reason for hiding this comment

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

Nice work! Thanks for all the comments and well worded commits explaining each of the changes. A pleasure to review.

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