Skip to content

Updating for Ruby 3.4 and Cookstyle#87

Merged
johnmccrae merged 9 commits intomainfrom
jfm/ruby-version-change
Jun 30, 2025
Merged

Updating for Ruby 3.4 and Cookstyle#87
johnmccrae merged 9 commits intomainfrom
jfm/ruby-version-change

Conversation

@johnmccrae
Copy link
Contributor

@johnmccrae johnmccrae commented Jun 2, 2025

Description

We are moving to Ruby 3.4 and Cookstyle for Chef-19. This gem has not been updated in quite some time. We're ensuring compatibility here.

We also updated a couple of tests as they were failing under Ruby 3.1/3.4

The install_ruby.ps1 file is a bit of slog. What we found during extensive testing was that the images were pretty polluted with multiple copies of Ruby installed at the root as part of the image but also installed via Choco. Tests were failing because the ucrt libraries were way out of whack and didn't match the Ruby version. We ended needing to take a kind of scorched earth approach and remove everything that smelled like Ruby or MSYS

Issues Resolved

[List any existing issues this PR resolves, or any Discourse or
StackOverflow discussions that are relevant]

Check List

@johnmccrae johnmccrae requested review from a team as code owners June 2, 2025 18:51
@johnmccrae johnmccrae added the Expeditor: Bump Version Minor Used by github.minor_bump_labels to bump the Minor version number. label Jun 2, 2025
Copy link

@tpowell-progress tpowell-progress left a comment

Choose a reason for hiding this comment

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

Not sure about the [presumably performance] deep nesting of ifs.

Copy link

@tpowell-progress tpowell-progress left a comment

Choose a reason for hiding this comment

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

Try the suggested refactor

Copy link

@tpowell-progress tpowell-progress left a comment

Choose a reason for hiding this comment

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

A couple of cleanup items suggested.

Signed-off-by: John McCrae <john.mccrae@progress.com>
@johnmccrae johnmccrae force-pushed the jfm/ruby-version-change branch from 90d872e to 5c7bccd Compare June 26, 2025 23:24
Signed-off-by: John McCrae <john.mccrae@progress.com>
Signed-off-by: John McCrae <john.mccrae@progress.com>
Signed-off-by: John McCrae <john.mccrae@progress.com>
Signed-off-by: John McCrae <john.mccrae@progress.com>
Signed-off-by: John McCrae <john.mccrae@progress.com>
Signed-off-by: John McCrae <john.mccrae@progress.com>
Signed-off-by: John McCrae <john.mccrae@progress.com>
Signed-off-by: John McCrae <john.mccrae@progress.com>
@sonarqubecloud
Copy link

@johnmccrae johnmccrae requested a review from neha-p6 June 30, 2025 13:10
@tpowell-progress tpowell-progress requested a review from a team June 30, 2025 13:12
strategy:
fail-fast: false
matrix:
os: [windows-2022, windows-2025]
Copy link

Choose a reason for hiding this comment

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

i think we are not yet supporting windows-2025 in our infrastructure

@johnmccrae johnmccrae merged commit 986a3a7 into main Jun 30, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Expeditor: Bump Version Minor Used by github.minor_bump_labels to bump the Minor version number.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants