Failure in as-if-foss in system tests `::Gitlab::CodeOwners::Validator.new(project, branch_name, paths).execute`
CodeOwners
is an EE module, but this concern is called in as-if-foss
tests, resulting in uninitialized constant Gitlab::CodeOwners
Failures:
1) Projects > Files > User wants to edit a file file has been updated since the user opened the edit page
Failure/Error: ::Gitlab::CodeOwners::Validator.new(project, branch_name, paths).execute
NameError:
uninitialized constant Gitlab::CodeOwners
Did you mean? CodeRay
# ./app/controllers/concerns/check_codeowner_rules.rb:7:in `codeowners_check_error'
# ./app/controllers/projects/blob_controller.rb:124:in `validate_codeowner_rules'
Affected tests:
rspec ./spec/features/projects/files/editing_a_file_spec.rb:26 # Projects > Files > User wants to edit a file file has been updated since the user opened the edit page
rspec ./spec/features/projects/blobs/edit_spec.rb:54 # Editing file blob as a developer updates the content of file with a number as file path
rspec ./spec/features/projects/blobs/edit_spec.rb:49 # Editing file blob as a developer from MR diff returns me to the mr
rspec ./spec/features/projects/blobs/edit_spec.rb:77 # Editing file blob as a developer from blob file path updates content
rspec ./spec/features/projects/files/user_edits_files_spec.rb:64 # Projects > Files > User edits files when an user has write access commits an edited file
rspec ./spec/features/projects/files/user_edits_files_spec.rb:81 # Projects > Files > User edits files when an user has write access commits an edited file to a new branch
rspec ./spec/features/projects/files/user_edits_files_spec.rb:170 # Projects > Files > User edits files when an user does not have write access commits an edited file in a forked project
rspec ./spec/features/projects/files/user_edits_files_spec.rb:202 # Projects > Files > User edits files when an user does not have write access when the user already had a fork of the project links to the forked project for editing
SimpleCov failed with exit 1
rspec ./spec/features/merge_request/maintainer_edits_fork_spec.rb:39 # a maintainer edits files on a source-branch of an MR from a fork allows committing to the source branch
rspec './spec/controllers/projects/blob_controller_spec.rb[1:4:2:1]' # Projects::BlobController POST create behaves like file matches a codeowners rule renders to the edit page with an error msg
rspec './spec/controllers/projects/blob_controller_spec.rb[1:5:2:1]' # Projects::BlobController PUT update behaves like file matches a codeowners rule renders to the edit page with an error msg