Skip to content

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

Edited by Michael Kozono