Skip to content

Fix pipeline failures

张泽华请求将fix-pipeline-failures-220908合并到main-jh

What does this MR do and why?

Fix pipeline failure https://jihulab.com/gitlab-cn/gitlab/-/jobs/4404590

Reason

In config/initializers/1_settings.rb#213, will load Gitlab::ImportSources.values to Settings.gitlab['import_sources'] which will call Feature.enabled? in jh/lib/jh/gitlab/import_sources.rb. The Feature.enabled? method will use Redis, which is not loaded at the current time. So the pipeline failed.

Temporary solutions

Add require Rails.root.join 'lib/gitlab/redis.rb' to jh/lib/jh/gitlab/import_sources.rb.

Screenshots or screen recordings

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

How to set up and validate locally

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

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

合并请求报告