Skip to content

Draft: Disable rubocop rule for migration that have removed test

Baodong requested to merge gitlab-jh/jh-team/gitlab:mr-121213-follow-up into master

What does this MR do and why?

Disable rubocop rule Migration/UpdateColumnInBatches for migration that have removed test.

The test file of db/migrate/20221014034338_populate_releases_access_level_from_repository.rb was spec/migrations/populate_releases_access_level_from_repository_spec.rb,

it was removed in MR: !121213 (diffs)

Deleting the test generated a rubocop error and broken the pipeline of JH's default branch: https://jihulab.com/gitlab-cn/gitlab/-/pipelines/1256512/failures

Screenshots or screen recordings

Non-UI

How to set up and validate locally

bundle exec rubocop db/migrate/20221014034338_populate_releases_access_level_from_repository.rb

MR acceptance checklist

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

Edited by Baodong

Merge request reports

Loading