Fix Parser::AST::Processor::Mixin error in chef-server-ctl reconfigure#4194
Open
jashaik wants to merge 2 commits into
Open
Fix Parser::AST::Processor::Mixin error in chef-server-ctl reconfigure#4194jashaik wants to merge 2 commits into
jashaik wants to merge 2 commits into
Conversation
Points omnibus submodule to shahid/fix-parser-ast-mixin-error commit (ad2a454) which pins cookstyle 8.5.0 and rubocop-ast ~> 1.47.1 in the infra-server cookbook Gemfile to prevent the uninitialized constant error during chef-server-ctl reconfigure. See: chef/chef-server-omnibus-config@ad2a454 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Jan Shahid Shaik <jashaik@progress.com>
👷 Deploy Preview for chef-server processing.
|
Point omnibus submodule branch to shahid/fix-parser-ast-mixin-error instead of main, so CI picks up the cookstyle/rubocop-ast version pins. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Jan Shahid Shaik <jashaik@progress.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes
NameError: uninitialized constant Parser::AST::Processor::Mixinwhich causedchef-server-ctl reconfigureto fail with a fatal error during cookbook compilation.Root Cause
The infra-server cookbook
Gemfilehad no version constraints oncookstyle. On a freshbundle install, the latestcookstyleresolvedrubocop-ast >= 1.49.0which referencesParser::AST::Processor::Mixin— a constant alias not defined inparser 3.3.9.0(the cached version satisfying the>= 3.3.7.2constraint). This caused the cookbook compilation phase to crash.Changes Made
cookstyle 8.5.0andrubocop-ast ~> 1.47.1in the infra-server cookbook Gemfile.Related PR
chef/chef-server-omnibus-config#13 — contains the actual Gemfile change.
Testing
Pins to the known-working gem combination confirmed in production backup:
cookstyle 8.5.0+rubocop-ast 1.47.1+parser 3.3.9.0.This work was completed with AI assistance following Progress AI policies.