Failure (400 Bad request) in browser_ui/3_create/snippet/clone_push_pull_project_snippet_spec.rb | Create Version control for project snippets clones, pushes, and pulls a project snippet over SSH, deletes via UI
Summary
Noticed that a couple tests started failing in staging around snippets.
There was a feature flag toggle for that run with gitaly_transactional_symbolic_ref_updates
to true
and wondering if it is related.
Also tried to test locally but that feature flag didn't exist in latest master, which could be related as well.
Failing job(s): https://ops.gitlab.net/gitlab-org/quality/staging/-/jobs/6424896#L2476
Failing spec(s):
- Create Version control for project snippets clones, pushes, and pulls a project snippet over SSH, deletes via UI
- Create Multiple file snippet behaves like copying snippet file contents copies file contents of a multi-file personal_snippet to a comment and verifies them
Corresponding test case(s): https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347796
Stack trace
Failures:
1) Create Version control for project snippets clones, pushes, and pulls a project snippet over SSH, deletes via UI
Failure/Error:
Resource::ProjectSnippet.fabricate! do |snippet|
snippet.file_name = new_file
end
QA::Resource::Errors::ResourceFabricationFailedError:
Fabrication of QA::Resource::ProjectSnippet using the API failed (400) with `{"message":{"error":"Repository Error creating the snippet"}}`.
Screenshot / HTML page
Possible fixes
Edited by Sean Gregory