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 #66

Merged
merged 10 commits into from
Aug 25, 2024
Merged

Update CI to use current Ruby #66

merged 10 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.

smortex added 10 commits August 24, 2024 15:32
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 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.
Running the test suite fail because some mocks created in other tests
are leaked and used again in other tests.

Reconfiguring logging help, so do this for now.
Expectation defined at [...] expected keyword arguments (...), but received positional hash ({...}). These will stop matching when strict keyword argument matching is enabled. See the documentation for Mocha::Configuration#strict_keyword_argument_matching=.
Older versions of Ruby where happy to deserialize aly kind of data, but
nowadays you can't trust what people put on the internet.
Matching a non-string value against a regular expression does not make
sense, and in the test suite we pass an integer.  This used to work with
older versions of Ruby but now raise an error.
@smortex smortex marked this pull request as ready for review August 25, 2024 08:44
@smortex smortex merged commit cf3ba84 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