Skip to content

fix: patch inspec-core 5.22.x/5.23.x for Parser::AST::Processor::Mixin (reconfigure crash)#4195

Merged
jashaik merged 2 commits into
mainfrom
fix/inspec-core-parser-mixin-error
May 25, 2026
Merged

fix: patch inspec-core 5.22.x/5.23.x for Parser::AST::Processor::Mixin (reconfigure crash)#4195
jashaik merged 2 commits into
mainfrom
fix/inspec-core-parser-mixin-error

Conversation

@lbakerchef
Copy link
Copy Markdown
Contributor

Problem

chef-server-ctl reconfigure crashes on all current main builds with:

FATAL: NameError: uninitialized constant Parser::AST::Processor::Mixin

This hits during "Compiling cookbooks" in the chef-client subprocess spawned by run_chef(). The gem resolver picks inspec-core-5.22.40 (over the also-installed 5.24.5) because 5.24.5 requires addressable < 2.8.8 which conflicts with the addressable-2.9.0 CVE pin. That broken version of inspec crashes on load.

See the omnibus-config PR for full root cause analysis and the constraint triangle explanation: https://github.com/chef/chef-server-omnibus-config/pull/14

Change

Updates the omnibus submodule to point to chef-server-omnibus-config branch fix/inspec-core-parser-mixin-error, which adds a build-time patch step to private-chef-ctl.rb.

Testing

Verified in a live VM built from current main (build 8295):

  • Before: reconfigure crashes at cookbook compile phase

Note

The submodule change targets the fix/inspec-core-parser-mixin-error branch of chef-server-omnibus-config. The omnibus-config PR should merge first (or simultaneously), then this submodule pointer should be updated to track main before merge.

@lbakerchef lbakerchef requested review from a team as code owners May 23, 2026 05:46
@netlify
Copy link
Copy Markdown

netlify Bot commented May 23, 2026

👷 Deploy Preview for chef-server processing.

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

@lbakerchef lbakerchef self-assigned this May 23, 2026
Points omnibus submodule to fix/inspec-core-parser-mixin-error branch
which patches inspec-core 5.22.x/5.23.x for Parser::AST::Processor::Mixin
compatibility at build time.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Lincoln Baker <51833247+lbakerchef@users.noreply.github.com>
@lbakerchef lbakerchef force-pushed the fix/inspec-core-parser-mixin-error branch from 4a29510 to 1b9ad1c Compare May 23, 2026 07:50
Points to e96f0bd which includes the patch for Parser::AST::Processor::Mixin
compatibility in inspec-core 5.22.x/5.23.x.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Jan Shahid Shaik <jashaik@progress.com>
@jashaik jashaik merged commit a7ffa10 into main May 25, 2026
35 of 38 checks passed
@jashaik jashaik deleted the fix/inspec-core-parser-mixin-error branch May 25, 2026 08:30
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.

2 participants