Skip to content

Fix AI tool selection spec failure

Mark Chao requested to merge 448306-fix-epic-permission into master

What does this MR do and why?

Fix error when REAL_AI_REQUEST=true rspec './ee/spec/lib/gitlab/llm/completions/chat_real_requests_spec.rb[1:1:6:1:2:1:1:1]' is run. The causes are:

  • autoload seems to be unable to load a child namespaced module in the parent namespace definition, resulting in NameError: uninitialized constant Gitlab::ExternalAuthorization::Config error.
  • epics feature is not stubbed to be enabled

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #448306 (closed)

Merge request reports