spec/lib/gitlab/background_migration/update_ci_pipeline_artifacts_unknown_locked_status_spec.rb:33 fails
Job https://gitlab.com/gitlab-org/gitlab/-/jobs/3166230367
Failures:
1) Gitlab::BackgroundMigration::UpdateCiPipelineArtifactsUnknownLockedStatus#perform updates ci_pipeline_artifacts with unknown lock status
Failure/Error: let!(:locked_artifact) { pipeline_artifacts.create!(project_id: project.id, pipeline_id: locked_pipeline.id, size: 1024, file_type: 0, file_format: 'gzip', file: 'a.gz', locked: unknown) }
ActiveModel::UnknownAttributeError:
unknown attribute 'locked' for #<Class:0x00007f2dc4376c90>.
# ./spec/lib/gitlab/background_migration/update_ci_pipeline_artifacts_unknown_locked_status_spec.rb:33:in `block (3 levels) in <top (required)>'
# ./spec/spec_helper.rb:414:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:406:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:402:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:58:in `with_raw_context'
# ./spec/spec_helper.rb:402:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:242:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <top (required)>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <top (required)>'
# ./spec/support/database_cleaner.rb:42:in `block (2 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <top (required)>'
# ./spec/support/database/prevent_cross_joins.rb:60:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (2 levels) in <top (required)>'
# ./spec/support/database/multiple_databases.rb:128:in `block (2 levels) in <top (required)>'
Finished in 17 minutes 48 seconds (files took 44.82 seconds to load)
82 examples, 1 failure
Failed examples:
rspec ./spec/lib/gitlab/background_migration/update_ci_pipeline_artifacts_unknown_locked_status_spec.rb:52 # Gitlab::BackgroundMigration::UpdateCiPipelineArtifactsUnknownLockedStatus#perform updates ci_pipeline_artifacts with unknown lock status