gitlab-org--gitlab-foss/lib/tasks/gitlab
Zeger-Jan van de Weg 3aedccb17a
Port cleanup tasks to use Gitaly
Rake tasks cleaning up the Git storage were still using direct disk
access, which won't work if these aren't attached. To mitigate a
migration issue was created.

To port gitlab:cleanup:dirs, and gitlab:cleanup:repos, a new RPC was
required, ListDirectories. This was implemented in Gitaly, through
https://gitlab.com/gitlab-org/gitaly/merge_requests/868.

To be able to use the new RPC the Gitaly server was bumped to v0.120.

This is an RPC that will not use feature gates, as this doesn't scale on
.com so there is no way to test it at scale. Futhermore, we _know_ it
doesn't scale, but this might be a useful task for smaller instances.

Lastly, the tests are slightly updated to also work when the disk isn't
attached. Eventhough this is not planned, it was very little effort and
thus I applied the boy scout rule.

Closes https://gitlab.com/gitlab-org/gitaly/issues/954
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/40529
2018-09-07 13:58:31 +02:00
..
artifacts Backport EE changes 2018-03-22 13:35:42 -04:00
lfs [cherry-pick] '4862-verify-file-checksums' 2018-03-08 10:20:40 -05:00
uploads Updates from rubocop -a 2018-07-09 21:13:08 +08:00
assets.rake Load only the currently needed JS locale file 2017-10-04 11:23:52 +00:00
backup.rake Fix backup creation and restore for specific Rake tasks 2018-05-24 14:58:25 +00:00
bulk_add_permission.rake Resolve "Rename the Master role to Maintainer" Backend 2018-07-11 14:36:08 +00:00
check.rake Remove gitlab:user:check_repos task 2018-07-31 14:31:51 +02:00
cleanup.rake Port cleanup tasks to use Gitaly 2018-09-07 13:58:31 +02:00
db.rake Fixes an issue where migrations instead of schema loading were run 2018-06-27 13:39:55 -07:00
dev.rake Adds Rubocop rule for line break around conditionals 2018-01-11 16:34:01 +00:00
exclusive_lease.rake Add rake task to cleanup any existing exclusive lease 2018-03-09 13:32:18 +00:00
git.rake Remove git rake tasks 2018-07-31 14:31:50 +02:00
gitaly.rake Remove storage path dependency of gitaly install task 2018-08-12 18:52:44 -03:00
helpers.rake Eliminate the warnings from task helpers 2018-01-26 19:42:48 +08:00
import.rake Improve GitLab Import rake task to work with Hashed Storage and Subgroups 2017-11-07 19:11:42 +00:00
import_export.rake Add pipeline stages position clean-up migration 2018-06-29 13:57:52 +00:00
info.rake Disable SAML if OmniAuth is disabled 2018-07-20 18:54:46 +08:00
ldap.rake
list_repos.rake Gitlab::Shell works on shard name, not path 2018-04-25 13:36:22 +02:00
pages.rake Add gitlab-pages admin ping rake task 2018-04-27 11:01:54 +00:00
setup.rake Check Gitaly when running rake dev:setup 2018-04-19 10:40:28 +02:00
shell.rake Change Gitlab::Shell#add_namespace to #create_namespace 2018-03-14 09:56:22 +01:00
site_statistics.rake Refactor SiteStatistics to extract refresh logic into a rake task 2018-08-16 21:31:19 +02:00
storage.rake Resolve "Hashed Storage: Make possible to migrate single project" 2018-06-07 15:40:44 +00:00
tcp_check.rake Add a gitlab:tcp_check rake task 2017-12-13 15:53:32 +00:00
test.rake Clean up test.rake 2018-05-14 18:53:57 +11:00
traces.rake Add rake command to migrate archived traces from local storage to object storage 2018-08-16 14:28:47 +00:00
track_deployment.rake
two_factor.rake Use gitlab_environment because we need: 2018-04-03 23:00:09 +08:00
update_templates.rake Adds Rubocop rule for line break around conditionals 2018-01-11 16:34:01 +00:00
web_hook.rake
workhorse.rake Eliminate the warnings from task helpers 2018-01-26 19:42:48 +08:00