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 tests after bundler change - Stacked 1/3 #1441

Closed
wants to merge 2 commits into from
Closed

Conversation

schneems
Copy link
Contributor

The Ruby buildpack uses the Ruby buildpack on CI. When the bundler versions changed in 56ff138 it also changed the behavior of these tests (which use the local bundler version). That means that after the buildpack was deployed, it retroactively meant that tests on main were failing.

The issue with these tests is that they're using a feature of bundler that's been removed, specifically this change https://devcenter.heroku.com/changelog-items/2809. In these tests the Ruby version is specified in the Gemfile but not the Gemfile.lock:

With the newer version of bundler, these tests now fail. To fix this tests will need to be updated or removed (based on their current relevance).

The Ruby buildpack uses the Ruby buildpack on CI. When the bundler versions changed in 56ff138 it also changed the behavior of these tests (which use the local bundler version). That means that after the buildpack was deployed, it retroactively meant that tests on main were failing.

The issue with these tests is that they're using a feature of bundler that's been removed, specifically this change https://devcenter.heroku.com/changelog-items/2809. In these tests the Ruby version is specified in the Gemfile but not the Gemfile.lock:

- Gemfile https://github.com/sharpstone/mri_193/blob/master/Gemfile
- Gemfile.lock https://github.com/sharpstone/mri_193/blob/master/Gemfile.lock 

With the newer version of bundler, these tests now fail. To fix this tests will need to be updated or removed (based on their current relevance).
@schneems schneems changed the title Fix tests after bundler change Fix tests after bundler change - Stacked 1/3 Apr 15, 2024
@schneems schneems marked this pull request as ready for review April 15, 2024 18:52
@schneems schneems requested a review from a team as a code owner April 15, 2024 18:52
Copy link
Member

@joshwlewis joshwlewis left a comment

Choose a reason for hiding this comment

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

Nice. Thanks for extracting. This totally makes sense in isolation.

@schneems schneems enabled auto-merge (squash) April 16, 2024 15:08
@schneems schneems closed this Apr 16, 2024
auto-merge was automatically disabled April 16, 2024 16:20

Pull request was closed

@schneems
Copy link
Contributor Author

It was merged in with #1440 which was also approved. I clicked the "enable auto merge" but didn't see that my own comments were considered blocking so it wasn't merged in. That PR had the exact same commits anyway, so it's the exact same code. Leaving a note as to why I'm closing this after approval.

@edmorley edmorley deleted the schneems/fix-tests branch April 28, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants