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 CI: update ruby version + Add retry on consul lock if failures #75

Merged
merged 2 commits into from
Oct 18, 2024

Conversation

mougams
Copy link
Contributor

@mougams mougams commented Oct 17, 2024

  • CI is failing due to lib compatibility versions
  • Update code to ruby 3
  • Add retry on consul lock if failures

@mougams mougams force-pushed the update_ruby_version branch 7 times, most recently from b462876 to 591ef5a Compare October 17, 2024 17:13
Copy link
Contributor

@jlundqvist-criteo jlundqvist-criteo left a comment

Choose a reason for hiding this comment

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

Thx for the review, some comments mainly around the versions chosen

cookstyle.yml Outdated Show resolved Hide resolved
.rubocop.yml Outdated Show resolved Hide resolved
.rubocop.yml Show resolved Hide resolved
spec/unit/primitive_consul_maintenance_spec.rb Outdated Show resolved Hide resolved
.kitchen.docker.yml Outdated Show resolved Hide resolved
@mougams mougams force-pushed the update_ruby_version branch from 591ef5a to 333c5fe Compare October 18, 2024 09:16
@mougams mougams changed the title Fix CI: update ruby version Fix CI: update ruby version + Add retry on consul lock if failures Oct 18, 2024
Marking as breaking since this requires at minium ruby 3.0.
Also updated minimal chef version is metadata file.

- CI is failing due to lib compatibility versions
- Update code to ruby 3.0.3
- Disable rubocop Style/HashSyntax
- Update rubocop config namespace
- Replace foodcritic by cookstyle in the CI run
- Update kitchen docker:
  - update OS to latest
Since consul lock is based on consul infrastructure,
we can hit issues when consul is restarting while locking
choregraphie on consul. Indeed, we had cases where consul on leader
node took times to restart causing Diplomat call failure.
@mougams mougams force-pushed the update_ruby_version branch from 6f5e1e9 to c4555df Compare October 18, 2024 14:16
@jeremy-clerc jeremy-clerc merged commit ede6edf into criteo-cookbooks:master Oct 18, 2024
5 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.

3 participants