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

Fix builds for Rails integration tests #158

Closed
wants to merge 4 commits into from

Conversation

mec
Copy link
Contributor

@mec mec commented Jul 12, 2024

A couple of things changed recently that broke these for us:

  • Rails 7.2 beta dropped support for Ruby < 3.1
  • ffi dropped support for Rubygems < 3.3.22

To fix this we have switched from fetching the Rails version to
supplying them in the GitHub actions, at least until Rails 7.2 is out.

We have also updated Rubygems and bundler to new enough versions to
compile the ffi gem.

We also had to add the build-essential package into a later build step
as ffi seems to get built a second time - this is possibly incorrect and
will need looking into.

We should possibly decide to at least drop testing for end of life versions:

  • Ruby 2.7.8
  • Rails 5.2.8.1

@coveralls
Copy link

coveralls commented Jul 12, 2024

Pull Request Test Coverage Report for Build 10418343681

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 9171164056: 0.0%
Covered Lines: 393
Relevant Lines: 393

💛 - Coveralls

@mec mec force-pushed the chore/update-ci-integration-test-env branch 3 times, most recently from d681677 to b8f97d6 Compare July 12, 2024 14:31
Copy link
Contributor

@pezholio pezholio left a comment

Choose a reason for hiding this comment

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

Just one comment, I'd feel happier if we carried on getting the latest Rails versions when running the tests. I've made a comment that tweaks the JQ command to filter out the Beta versions (which I assume was why you ended up hardcoding 😃 )

.github/workflows/rails-integration-tests.yml Outdated Show resolved Hide resolved
A couple of things changed recently that broke these for us:

- Rails 7.2 beta dropped support for Ruby < 3.1
- ffi dropped support for Rubygems < 3.3.22

We have updated Rubygems and bundler to new enough versions to
compile the ffi gem.

We also had to add the build-essential package into a later build step
as ffi seems to get built a second time - this is possibly incorrect and
will need looking into.

We should possibly decide to at least drop testing for end of life versions:

- Ruby 2.7.8
- Rails 5.2.8.1
@mec mec force-pushed the chore/update-ci-integration-test-env branch from b8f97d6 to 4839aa9 Compare August 16, 2024 08:38
@mec
Copy link
Contributor Author

mec commented Aug 16, 2024

Classic! So in the time it's taken me to get to this, Rails 7.2 is out so we need to come back to this!

@mec mec force-pushed the chore/update-ci-integration-test-env branch from 8deb203 to 4839aa9 Compare August 16, 2024 09:52
pezholio and others added 3 commits August 16, 2024 10:59
It’s end of life now, so we should stop support.
`2.7.x` is end of life now, so let’s run integration tests and develop
against the lowest supported version of Ruby
We are dropping integration test for Rails 5 as it becomes more effort
to support them than there is value in having it.
@mec
Copy link
Contributor Author

mec commented Aug 23, 2024

Superseded by #160

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