Skip to content

Conversation

@neha-p6
Copy link
Collaborator

@neha-p6 neha-p6 commented Nov 17, 2025

Description

  1. Remove chef gem from oc-chef-pedant Gemfile as the only reason chef gem was being used is to get KNIFE::VERSION via chef version but this ended up pulling entire chef dependency chain just get version number of chef (which was anyway hardcoded in Gemfile) did not make sense. This also ended up causing a circular dependency between chef -> chef-zero -> oc-chef-pedant also pulling chef18 in chef19 via oc-chef-pedant. So we will remove the chef gem dependency from here, getting rid of all the nested dependencies.

  2. Removing chef gem will also remove activesupport dependency from oc-chef-pedant. But oc-chef-pedant internally is using activesupport/concert a lot in specs, even though activesupport was not a direct dependency for it. So we will add activesupport as direct dependency of oc-chef-pedant so that specs continue to work. Later on team can look into getting rid of activesupport which requires modifications to specs as activesupport/concert implementation will need to be replaced.

  3. Pull chef-zero from github main branch instead of gem since there are fixes in there which are not released yet so that pipelines here continue to work

[Please describe what this change achieves]

Issues Resolved

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

Check List

@netlify
Copy link

netlify bot commented Nov 17, 2025

👷 Deploy Preview for chef-server processing.

Name Link
🔨 Latest commit 07a733a
🔍 Latest deploy log https://app.netlify.com/projects/chef-server/deploys/691c722d364ec500082efc37

@neha-p6 neha-p6 force-pushed the neha-p6/remove_activesupport branch 5 times, most recently from 552bbd7 to 59d15c5 Compare November 18, 2025 11:24
…s dependency, add activesupport as direct dependency which used to pulled in via chef since it is widely using concern implementation

Signed-off-by: neha-p6 <[email protected]>
@neha-p6 neha-p6 force-pushed the neha-p6/remove_activesupport branch from 3b29270 to 07a733a Compare November 18, 2025 13:18
@sonarqubecloud
Copy link

@sonarqube-for-infrastructure-prod

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@neha-p6
Copy link
Collaborator Author

neha-p6 commented Nov 18, 2025

@neha-p6 neha-p6 marked this pull request as ready for review November 18, 2025 13:47
@neha-p6 neha-p6 requested review from a team as code owners November 18, 2025 13:47
@neha-p6 neha-p6 changed the title Remove activesupport Drop chef gem dependency from oc-chef-pedant Nov 18, 2025
@sreepuramsudheer
Copy link
Contributor

sreepuramsudheer commented Nov 19, 2025

Copy link
Contributor

@sreepuramsudheer sreepuramsudheer 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.

@jashaik jashaik merged commit 03c5cf1 into main Nov 21, 2025
40 of 41 checks passed
@jashaik jashaik deleted the neha-p6/remove_activesupport branch November 21, 2025 04:31
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.

4 participants