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

(GH-372) Reset min Ruby requirement #373

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

chelnak
Copy link
Contributor

@chelnak chelnak commented Jan 23, 2023

Prior to this change the required Ruby version was set to greater than or equal to 2.7. This meant that the spec_helpers gem would not run on systems with Ruby 2.5.

This change updates the required Ruby version so that Rubies 2.5 and above are compatibel.

Additionally the following gems were downgraded for compatibility:

  • pathspec is now ~> 0.2
  • puppet-lint is now ~> 2.5.2

@chelnak chelnak added the bug label Jan 23, 2023
@chelnak chelnak requested a review from a team as a code owner January 23, 2023 15:09
@chelnak chelnak self-assigned this Jan 23, 2023
@chelnak chelnak linked an issue Jan 23, 2023 that may be closed by this pull request
Prior to this change the required Ruby version was set to greater than
or equal to 2.7. This meant that the spec_helpers gem would not run on
systems with Ruby 2.5.

This change updates the required Ruby version so that Rubies 2.5 and
above are compatibel.

Additionally the following gems were downgraded for compatibility:

* pathspec is now ~> 0.2
* puppet-lint is now ~> 2.5.2
@chelnak chelnak force-pushed the GH-372-reset_min_ruby_requirement branch from a844a28 to 1013d7a Compare January 23, 2023 15:10
Copy link
Contributor

@GSPatton GSPatton left a comment

Choose a reason for hiding this comment

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

looks good to me

@GSPatton GSPatton merged commit 911922a into main Jan 23, 2023
@GSPatton GSPatton deleted the GH-372-reset_min_ruby_requirement branch January 23, 2023 15:13
@ekohl
Copy link
Contributor

ekohl commented Jan 23, 2023

Why didn't CI run on this? I don't see any checks. https://github.com/puppetlabs/puppetlabs_spec_helper/blob/main/.github/workflows/ci.yml (or https://github.com/puppetlabs/cat-github-actions/blob/main/.github/workflows/gem_ci.yml) also doesn't appear to run in a matrix build so how do you know it actually works?

@chelnak
Copy link
Contributor Author

chelnak commented Jan 23, 2023

CI had disabled itself which is annoying.

I've re-enabled and made some updates in #GH-374.

@ekohl
Copy link
Contributor

ekohl commented Jan 23, 2023

Ah yes, combining cron and PR testing in the same flow. I've been hit by that too. I recommend adding required checks to avoid it. In gha-puppet we have a dummy job that depends on all others, so you can simply make that required instead of the whole matrix: https://github.com/voxpupuli/gha-puppet/blob/a8fea30a9fcf14fd4cc9071c839e5a55d5dbab83/.github/workflows/beaker.yml#L140-L149

@chelnak
Copy link
Contributor Author

chelnak commented Jan 23, 2023

Nice I'll take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ruby 2.7+ required but Puppet 6 doesn't run on Ruby 2.7
3 participants