Skip to content

Fix Parser::AST::Processor::Mixin error in chef-server-ctl reconfigure#4194

Open
jashaik wants to merge 2 commits into
mainfrom
shahid/fix-parser-ast-mixin-error
Open

Fix Parser::AST::Processor::Mixin error in chef-server-ctl reconfigure#4194
jashaik wants to merge 2 commits into
mainfrom
shahid/fix-parser-ast-mixin-error

Conversation

@jashaik
Copy link
Copy Markdown
Contributor

@jashaik jashaik commented May 22, 2026

Summary

Fixes NameError: uninitialized constant Parser::AST::Processor::Mixin which caused chef-server-ctl reconfigure to fail with a fatal error during cookbook compilation.

Root Cause

The infra-server cookbook Gemfile had no version constraints on cookstyle. On a fresh bundle install, the latest cookstyle resolved rubocop-ast >= 1.49.0 which references Parser::AST::Processor::Mixin — a constant alias not defined in parser 3.3.9.0 (the cached version satisfying the >= 3.3.7.2 constraint). This caused the cookbook compilation phase to crash.

Changes Made

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.

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>
@jashaik jashaik requested review from a team as code owners May 22, 2026 06:40
@netlify
Copy link
Copy Markdown

netlify Bot commented May 22, 2026

👷 Deploy Preview for chef-server processing.

Name Link
🔨 Latest commit 8f34a7d
🔍 Latest deploy log https://app.netlify.com/projects/chef-server/deploys/6a105e34fca34a00084d9954

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