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

Update CI to use current Ruby #7

Merged
merged 5 commits into from
Aug 25, 2024
Merged

Update CI to use current Ruby #7

merged 5 commits into from
Aug 25, 2024

Conversation

smortex
Copy link
Contributor

@smortex smortex commented Aug 24, 2024

The dependencies used by the project are not compatible with the current versions of Ruby.

This PR remove the constraints on the gems needed to run the test suite and adjust the code so that the test suite can run with modern Ruby.

This require a recent version of mcollective-test not yet released, so CI failures are expected at the moment.

These versions are non-functional with current versions of Ruby.
Updating them allows us to start the test suite.
Both do similar monkey patching and when both are loaded, unexpected
side effects happen.
The exception we have is:
NameError: undefined local variable or method `failed_servce'
Because we are not talking to a real Puppet service.

While here, macke sure all tests in all test files are run by finxing
the test filename.
The test suite use the RSpec 1 syntax with `should` that got deprecated.
In order to ease up the transition, for now we want to stick with the
`should` syntax, and *not* use `expect`.

While here, also ensure exceptions are raised when deprecated features
are used and fix a bunch of warnings.
@smortex
Copy link
Contributor Author

smortex commented Aug 24, 2024

This require a recent version of mcollective-test not yet released, so CI failures are expected at the moment.

Oh yes, and we need to switch to GitHub actions 🙃

@smortex smortex marked this pull request as ready for review August 25, 2024 08:43
@smortex smortex merged commit e281d9d into master Aug 25, 2024
1 check failed
@smortex smortex deleted the ci-update branch August 25, 2024 11:07
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.

1 participant