Skip to content

Remove application code reference from the background migration resolve_vulnerabilities_for_removed_analyzers_spec.rb

The ResolveVulnerabilitiesForRemovedAnalyzers background migration creates an internal bot user using the line:

user_id = Users::Internal.security_bot.id

This causes all the callbacks related user record creation being executed and cause pipeline failures due to outdated schema.

Eg: https://gitlab.com/gitlab-org/gitlab/-/jobs/8713250214

Edited by Adam Cohen