Master broken ee/spec/models/members/member_role_spec.rb:160 # MemberRole covering all permissions columns has all attributes listed in the member_roles table
Summary
Steps to reproduce
Proposed Resolution
Please refer to the Resolution guidance to learn more about resolution of broken master.
Job #4267043980 failed for b0b4c3e5:
Failures:
1) MemberRole covering all permissions columns has all attributes listed in the member_roles table
Failure/Error:
expect(described_class.attribute_names.map(&:to_sym))
.to contain_exactly(*described_class::ALL_CUSTOMIZABLE_PERMISSIONS.keys,
*described_class::NON_PERMISSION_COLUMNS)
expected collection contained: [:base_access_level, :created_at, :id, :namespace_id, :read_code, :updated_at]
actual collection contained: [:base_access_level, :created_at, :id, :namespace_id, :read_code, :read_vulnerability, :updated_at]
the extra elements were: [:read_vulnerability]
# ./ee/spec/models/members/member_role_spec.rb:161:in `block (3 levels) in <main>'
# ./spec/spec_helper.rb:423:in `block (3 levels) in <top (required)>'
# ./spec/support/sidekiq_middleware.rb:18:in `with_sidekiq_server_middleware'
# ./spec/spec_helper.rb:415:in `block (2 levels) in <top (required)>'
# ./spec/spec_helper.rb:411:in `block (3 levels) in <top (required)>'
# ./lib/gitlab/application_context.rb:61:in `with_raw_context'
# ./spec/spec_helper.rb:411: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 <main>'
# ./spec/support/fast_quarantine.rb:39:in `block (2 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (3 levels) in <main>'
# ./spec/support/database/prevent_cross_joins.rb:62:in `with_cross_joins_prevented'
# ./spec/support/database/prevent_cross_joins.rb:108:in `block (2 levels) in <main>'
Finished in 4.07 seconds (files took 41.07 seconds to load)
1 example, 1 failure
Failed examples:
rspec ./ee/spec/models/members/member_role_spec.rb:160 # MemberRole covering all permissions columns has all attributes listed in the member_roles table