Remove rake gitlab:list_repos

Problem

This rake task has a number of issues:

  • It tries to output local paths even though they are likely stored on a remote gitaly or gitaly cluster. This wont be possible after #375254 (closed)
  • It does not output snippets, group wiki or design repositories #246481 (closed)
  • It uses no pagination no matter how many repositories exist.
  • It has not worked for a long time #350080 (closed)

Workaround

It may be possible to use the API or Gitaly RPCs to accomplish something similar for project repositories.

#384361 (comment 1516445416):

You would probably need to run it on the gitaly node that hosts that specific storage, determine the storage root (should be part of the gitaly/omnibus config) and convert those API responses into rsync commands.

I still don't really understand the use-case though. You still need to move the DB and files etc to the new instance. I think, like list_repos itself, these docs have an overly simplistic view of what a gitlab installation is.

Snippets, project wikis, group wikis, and designs are not covered by this rake task, nor is there an API to list their repositories.

Proposal

  • Deprecate the rake task. This was partially done in 16.4 #384361 (comment 1523433829) and completed in 16.7 !137592 (merged).
  • Remove the rake task in 17.0
  • Remove/edit the documentation
  • Remove the documentation nav link https://gitlab.com/gitlab-org/gitlab-docs/-/blob/8a568b55701f6a01fc06b56cc37092befa64cf0a/content/_data/navigation.yaml#L781-782
Edited Apr 27, 2024 by Michael Kozono
Assignee Loading
Time tracking Loading