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

Adds Rails 7.1.x and Ruby 3.3 to CI matrix #170

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

berkos
Copy link
Contributor

@berkos berkos commented Oct 15, 2023

👋 Thanks for the review in advance.

It also updates the CI badge that was pointing on Travis

@berkos berkos changed the title Add Rails 7.1.x to CI matrix Adds Rails 7.1.x and Ruby 3.3 to CI matrix Dec 28, 2023
@@ -6,13 +6,8 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: [ '2.7', '3.0', '3.1', '3.2', 'head', 'truffleruby' ]
rails: [ '6.1', '7.0', 'main' ]
include:
Copy link
Member

Choose a reason for hiding this comment

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

Just looking at this briefly, I don't understand what the purpose of this include is yet.

It was updated in #153 to remove all of the old versions, but curious as to why it was removed here if you have ideas.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👋 I think, based on my assumption, but I could also be wrong that this was a left over from previous commits.

More specific:
The includes for Ruby 3.2 was added early here: 8b2fdd6 when there was still support for Rails 5.1 (which does not work with Ruby 3.2 and made sense 3.2 to be explicit).

Then later Rails 5.1 was removed but that include was still left there due to the reason that ruby: [...] did not had 3.2.

Then, when 3.2 was added in the main ruby: [...] ecc0adf which by that time there was no Rails 5.1 it would make sense to also remove this specific includes as there were not really adding any new matrix combination.

For the current PR here, I thought it would make sense to remove those extra includes since they are not adding any new jobs as it is.

Reference also on Github CI docs

Copy link
Member

Choose a reason for hiding this comment

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

Just eyeballing the two workflows from this branch and main, I can't tell the difference 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @zzak thanks for the response, I am not sure I am following.
Do you mean the actual workflows? 🤔

On main we have a total of 18 checks:
Screenshot 2023-12-29 at 08 39 59

Which is 6 Ruby flavours * 3 Rails flavours

While on this branch:
7 Ruby flavours * 4 Rails flavours == 28 runs as It adds Rails 7.1 and Ruby 3.3
Screenshot 2023-12-29 at 08 39 50

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I mean not counting the new workflows you've added, it seems like there is no difference without the include which makes me think it's fine to be removed. 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, yes! As I mentioned on my first response, based on how the main branch is now that include was not making any difference, just like you said, hence the cleanup.🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @zzak , please let me know if there any pending actions on this. 🙂

Copy link
Member

Choose a reason for hiding this comment

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

I've given it a look and like I said, the workflows look fine so I don't think there is anything actionable, just wait for a review. 🙏

Maybe you could squash your commits?

Copy link
Contributor

Choose a reason for hiding this comment

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

Awesome, commits look squashed ✨ !

@berkos berkos force-pushed the add-rails-7.1-to-ci-matrix branch 2 times, most recently from 0ad9649 to 39f3431 Compare February 10, 2024 13:38
- Update CI badge on Contributing.md
@rafaelfranca rafaelfranca merged commit e9548a3 into rails:main Aug 20, 2024
26 checks passed
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.

4 participants