Investigate: Tags not removed, despite matching the cleanup policy rules

Summary

After recent announcement about changes in GitLab Saas Free tier I found that our project exceeds 5GB threshold. It was strange, because I had Cleanup Policy set up like on the screenshot

Screenshot_2022-08-22_at_00.27.57

When I looked into container registry I found that there are at least 80 tags per image most of which are more than 6 months old. Also, some images had tag with the git hash which must be removed by second rule.

I was forced to remove oldest tags manually. This task was also hard to achieve, because

  1. there are no pagination
  2. you cannot select more than 10 tags at once (no page size, related - #370331)
  3. you cannot select all tags on page with 10 tags checkbox and then deselect one or two of the selected tags
  4. you cannot select several tags at once with shift key
  5. you cannot sort tags by date
  6. after deleting of a tag it still shown on the page and you could not notice whether you deleted a tag or not without reloading page

See attached screen recordings for a reference:

Screen_Recording_2022-08-22_at_00.30.38

Here I try to use shift key to select select more than one tag at once:

Screen_Recording_2022-08-22_at_00.27.26

Maybe this issue is related to #276925 (closed)

Edited by Egor Panfilov