Cleanup stale +deleted repo paths on project removal
1. When removing projects, we can end-up leaving the +deleted repo path dirty and not successfully removing the non-deleted namespace (mv process is not atomic and can be killed without fully moving the path). 2. In order to solve that, we're adding a clean-up phase on ensure which will schedule possible staled +deleted path deletion. Note that we don't check the current state (if there is or not a repo) in order to schedule the deletion. That's intentional in order to leverage Gitlab::GitalyClient::NamespaceService#remove idempotency and ensure consistency.
显示
- app/services/projects/destroy_service.rb 19 个添加, 5 个删除app/services/projects/destroy_service.rb
- changelogs/unreleased/osw-enforces-project-removal-with-past-failed-attempts.yml 5 个添加, 0 个删除...sw-enforces-project-removal-with-past-failed-attempts.yml
- spec/services/projects/destroy_service_spec.rb 34 个添加, 0 个删除spec/services/projects/destroy_service_spec.rb
想要评论请 注册 或 登录