Skip to content

GitLab release evidence is not being collected if release is created via UI

Summary

(Summarize the bug encountered concisely)

As discovered in #212090 (closed), Release evidence is not generated consistently when you create a release from a tag in the UI.

Steps to reproduce

(How one can reproduce the issue - this is very important)

  1. Go to Project > Project Overview > Releases
  2. Click Create a Release button
  3. Fill out relevant release details
  4. Navigate to the created Release and see if Evidence has been collected

What is the current bug behavior?

(What actually happens)

Evidence is NOT collected

What is the expected correct behavior?

(What you should see instead)

Evidence is collected

Possible fixes

Move code related to evidence creation from the API layer(https://gitlab.com/gitlab-org/gitlab/-/blob/f79ec5e60772350abef9b494abe1f40e6dbf2cd4/lib/api/releases.rb#L70) to the service layer(https://gitlab.com/gitlab-org/gitlab/blob/master/app/services/releases/create_service.rb#L49)