gitlab-org--gitlab-foss/spec
Douwe Maan fa4eeb499d Merge branch 'handle-invalid-kept-around-references' into 'master'
Gracefully handle case when keep-around references are corrupted or exist already

We were seeing a number of error messages when attempting to create a keep-around ref:
    
1. Failed to create locked file `refs/keep-around/XYZ`: File exists
2. Failed to write reference `refs/keep-around/XYZ`: a reference with that name already exists.
    
I'm not sure how these happen, but I suspect when multiple workers attempt to write the same file we may have an issue. The force parameter should help ensure the file gets created,
as well as the rescues to prevent 500 Errors.
    
Rugged/libgit2 unfortunately does not allow you to delete or re-create a reference that has been corrupted, even with the force parameter. A truncated reference will stay that way until manual intervention.
    
Closes #20109


See merge request !5430
2016-07-22 19:59:16 +00:00
..
config Revert "Fix merge conflicts - squashed commit" 2016-06-03 11:10:17 +02:00
controllers Fix failing spec on help controller 2016-07-22 11:49:09 +03:00
factories Refactor Issues::BulkUpdateService spec 2016-07-20 17:59:34 -06:00
features Merge branch 'fix/new-project-import-tooltip' into 'master' 2016-07-21 09:52:06 +00:00
finders Avoid `describe`-ing symbols in specs 2016-07-12 10:27:58 -05:00
fixtures Merge branch 'discussion-model' into 'master' 2016-07-21 17:56:23 +00:00
helpers Cast duration to integer in `TimeHelper#time_interval_in_words` 2016-07-21 12:18:34 +02:00
initializers Skip repository storage path valitaions on test environment 2016-07-21 18:33:51 -04:00
javascripts Merge branch '17341-firefox-u2f' into 'master' 2016-07-15 20:07:51 +00:00
lib Merge branch 'discussion-model' into 'master' 2016-07-21 17:56:23 +00:00
mailers Make Notify specs more robust by setting up assignee names 2016-07-22 13:54:12 +02:00
models Gracefully handle case when keep-around references are corrupted or exist already 2016-07-22 06:38:02 -07:00
requests Merge branch 'artifacts-from-ref-and-build-name-api' into 'master' 2016-07-21 09:01:47 +00:00
routing Fix help page paths to make sure shortcuts and the UI help page work. 2016-07-19 11:17:14 -06:00
services Merge branch 'fix-data-integrity-issue-with-repository-downloads-path' into 'master' 2016-07-21 21:44:53 +00:00
support Merge branch '4142-show-inline-video' into 'master' 2016-07-21 07:29:38 +00:00
tasks/gitlab Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
uploaders Remove VideoJS and clean the integration 2016-07-20 11:36:42 +02:00
views add modification to commit title test 2016-07-18 15:03:27 +02:00
workers Fix emails on push for new and deleted branches 2016-07-21 10:53:38 +01:00
factories_spec.rb Revert "Fix merge conflicts - squashed commit" 2016-06-03 11:10:17 +02:00
rails_helper.rb
spec_helper.rb We're not using them (and look at the typo) 2016-07-12 22:17:00 +08:00
teaspoon_env.rb Revert "Fix merge conflicts - squashed commit" 2016-06-03 11:10:17 +02:00