Failure in qa/specs/features/browser_ui/3_create/merge_request/merge_when_pipeline_succeeds_spec | Commit using the API failed (404) with `{"message":"404 Project Not Found"}`
Summary
API call to fabricate a commit creating a gitlab-ci.yml file fails when it receives a "404 Project Not Found" error message.
Occurred in production: https://ops.gitlab.net/gitlab-org/quality/production/-/jobs/3578511
Stack trace
Create Merge requests merges when pipeline succeeds
Failure/Error:
Resource::Repository::Commit.fabricate_via_api! do |commit|
commit.project = project
commit.commit_message = 'Add .gitlab-ci.yml'
commit.add_files(
[
{
file_path: '.gitlab-ci.yml',
content: <<~EOF
test:
tags: ["runner-for-#{project.name}"]
QA::Resource::ApiFabricator::ResourceFabricationFailedError:
Fabrication of QA::Resource::Repository::Commit using the API failed (404) with `{"message":"404 Project Not Found"}`.
# ./qa/resource/api_fabricator.rb:120:in `api_post'
# ./qa/resource/api_fabricator.rb:34:in `fabricate_via_api!'
Screenshot / HTML page
Possible fixes
Edited by Zeff Morgan