Create rake task to deduplicate runner tags

Due to OS upgrades bringing differences in the underlying index collation provided by libc, it can happen that duplicate tags are allowed into the tags table. There is a snippet that has been used by users to fix these problems in an ad-hoc fashion. We should create a rake task with this script, so that we're sure that it matches the current version of the database as it evolves.

Links

  • Automatically detect changes in postgres collation (#370622 - closed)
  • $3700665
  • https://docs.gitlab.com/ee/development/rake_tasks.html
  • https://docs.gitlab.com/ee/development/testing_guide/testing_rake_tasks.html
  • https://docs.gitlab.com/ee/raketasks/
Edited Feb 11, 2025 by Pedro Pombeiro
Assignee Loading
Time tracking Loading