Broken FOSS master: ./spec/lib/gitlab/import_export/attributes_permitter_spec.rb
In https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/2934956244, I see:
Ci::PipelineSchedulePolicy
rules
rules for protected ref
when no one can create the tag but it is not a tag
includes ability to play pipeline schedule
rules for owner of schedule
includes abilities to do all operations on pipeline schedule
rules for a maintainer
allows for playing and destroying a pipeline schedule
Failures:
1) Gitlab::ImportExport::AttributesPermitter included_attributes for Project for resource_iteration_events behaves like a permitted attribute does not contain attributes that would be cleaned with AttributeCleaner
Failure/Error: relation_name.to_s.constantize
NameError:
wrong constant name resource_iteration_events
Shared Example Group: "a permitted attribute" called from ./spec/lib/gitlab/import_export/attributes_permitter_spec.rb:162
# ./lib/gitlab/import_export/base/relation_factory.rb:44:in `rescue in relation_class'
# ./lib/gitlab/import_export/base/relation_factory.rb:38:in `relation_class'
# ./spec/support/shared_examples/lib/gitlab/import_export/attributes_permitter_shared_examples.rb:10:in `block (2 levels) in <main>'
# ./spec/support/shared_examples/lib/gitlab/import_export/attributes_permitter_shared_examples.rb:16:in `block (2 levels) in <main>'
# ./spec/support/shared_examples/lib/gitlab/import_export/attributes_permitter_shared_examples.rb:29:in `block (2 levels) in <main>'
# ./spec/spec_helper.rb:435:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:426:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:422:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:56:in `with_raw_context'
# ./spec/spec_helper.rb:422:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:265:in `block (2 levels) in <top (required)>'
# ./spec/support/system_exit_detected.rb:7:in `block (2 levels) in <main>'
# ./spec/support/flaky_tests.rb:27:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:106:in `block (3 levels) in <main>'
# ./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 <main>'
# ------------------
# --- Caused by: ---
# NameError:
# uninitialized constant ResourceIterationEvent
# Did you mean? ResourceStateEvent
# ResourceMilestoneEvent
# ./lib/gitlab/import_export/base/relation_factory.rb:42:in `relation_class'
Finished in 5.23 seconds (files took 27.51 seconds to load)
4 examples, 1 failure
Failed examples:
rspec './spec/lib/gitlab/import_export/attributes_permitter_spec.rb[1:5:65:1:2]' # Gitlab::ImportExport::AttributesPermitter included_attributes for Project for resource_iteration_events behaves like a permitted attribute does not contain attributes that would be cleaned with AttributeCleaner
Edited by Stan Hu