Coverage check approval rule can't be enabled

Hi,
This is my first post here and I hope this is the right place for my question.

I tried to follow the docs on this page to set up an approval rule that requires approval of specified users when the test coverage declines.
However the action specified under step 3 is not available to me. There just is no field ‘Coverage-Check’ and no button to enable it.


Did i miss any precondidions for this feature that are not mentioned in the docs?

Thank you for your help.

Hi,
I’m encountering the exact same issue (GitlLab self-managed 17.2.1).
Have you Premium or Ultimate tier ?

I believe they removed the button and just forgot to update documentation.

Essentially, this is nothing special - that button was just a shortcut for following which you can do manually by clicking:

  • Add Approval Rule > name it Coverage-Check > add target branch and people that should approve > Save.
2 Likes

Thank you for your response. Unfortunately, even when coverage doesn’t decrease the rule isn’t optional as you can see below.

This was never an automatic check (AFAIK). All approval rules are manual checks (involves human to click a button). There is no special logic behind it.

According to the documentation yes:

:white_check_mark: I solved my problem by naming the rule Coverage-Check not Coverage Check.
Now it works perfectly:
Screenshot 2024-08-06 at 21.07.28

Thanks again and have a good day !

1 Like

Ah cool, didn’t realize. Good to know!

1 Like

Thanks a lot @matheogrl and @paula.kokic! It works for me.
What steps could i take to let the responsible team know that they should either fix the button or adjust the docs?

2 Likes

You can open up an Issue on GitLab with Bug template here

1 Like