gitlab-org--gitlab-foss/spec/models
Stan Hu 391064830d 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 do not allow you to delete or re-create a reference that has
been corrupted, even with the force parameter.

Closes #20109
2016-07-22 06:38:02 -07:00
..
ci Merge branch 'cs-warn-on-failure' into 'master' 2016-07-20 18:57:01 +00:00
concerns Avoid describe-ing symbols in specs 2016-07-12 10:27:58 -05:00
hooks Codestyle: make sure we have space around operators 2016-05-13 04:46:56 -03:00
members Avoid describe-ing symbols in specs 2016-07-12 10:27:58 -05:00
project_services Refactor service settings view 2016-07-20 12:11:37 -03:00
ability_spec.rb Refactor Participable 2016-06-01 16:22:35 +02:00
abuse_report_spec.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
appearance_spec.rb Branded login page also in CE 2016-02-26 15:50:51 +01:00
application_setting_spec.rb Default to manual input for domain_whitelist, syntax fixes and added new tests. 2016-07-18 17:53:43 -05:00
award_emoji_spec.rb Incorportate feedback 2016-06-01 12:10:08 +02:00
blob_spec.rb Add a Blob model that wraps Gitlab::Git::Blob 2016-02-18 22:45:30 -05:00
broadcast_message_spec.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
build_spec.rb Merge branch 'master' into artifacts-from-ref-and-build-name-api 2016-07-21 01:24:05 +08:00
commit_range_spec.rb Fix note validation spec failures 2016-06-01 10:31:46 -07:00
commit_spec.rb Optimize Banzai::Filter::RelativeLinkFilter 2016-06-21 10:53:16 -04:00
commit_status_spec.rb Fix stage status shown for pipelines 2016-07-15 16:35:48 +02:00
deploy_key_spec.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
deploy_keys_project_spec.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
deployment_spec.rb Improve manual actions code and add model, service and feature tests 2016-07-18 14:46:20 +02:00
diff_note_spec.rb Make DiffNote#update_position private 2016-07-07 16:13:55 -04:00
email_spec.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
environment_spec.rb Add specs for models and services 2016-06-14 13:51:12 +02:00
event_spec.rb Update test with new factory name 2016-07-07 15:57:38 -04:00
external_issue_spec.rb Hide number sign for string prefixed external issues 2016-04-12 10:01:52 +02:00
forked_project_link_spec.rb Avoid describe-ing symbols in specs 2016-07-12 10:27:58 -05:00
generic_commit_status_spec.rb Avoid describe-ing symbols in specs 2016-07-12 10:27:58 -05:00
global_milestone_spec.rb Avoid describe-ing symbols in specs 2016-07-12 10:27:58 -05:00
group_spec.rb Avoid describe-ing symbols in specs 2016-07-12 10:27:58 -05:00
identity_spec.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
issue_spec.rb Refactor user authorization check for a single project to avoid querying all user projects 2016-07-20 15:14:31 -04:00
key_spec.rb Remove Duplicated keys add UNIQUE index to fingerprint 2016-06-20 13:29:04 +02:00
label_link_spec.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
label_spec.rb Allow '?', or '&' for label titles 2016-07-05 20:57:09 -03:00
legacy_diff_note_spec.rb Update tests 2016-07-15 18:17:15 -05:00
member_spec.rb Exclude requesters from Project#members, Group#members and User#members 2016-07-01 17:44:46 +02:00
merge_request_diff_spec.rb Support renames in diff_for_path actions 2016-07-11 09:31:34 +01:00
merge_request_spec.rb Collapse large diffs by default 2016-07-08 10:56:55 +01:00
milestone_spec.rb Avoid describe-ing symbols in specs 2016-07-12 10:27:58 -05:00
namespace_spec.rb Avoid describe-ing symbols in specs 2016-07-12 10:27:58 -05:00
note_spec.rb Retrieve rendered HTML from cache in one request 2016-07-21 21:17:25 +02:00
notification_setting_spec.rb Exclude projects pending delete from notifications 2016-07-07 20:49:17 +01:00
personal_access_token_spec.rb Fix rubocop spec. 2016-06-03 10:11:36 +05:30
project_group_link_spec.rb Bring ProjectGroupLink model and migrations from EE 2016-03-11 17:47:05 +01:00
project_security_spec.rb Avoid describe-ing symbols in specs 2016-07-12 10:27:58 -05:00
project_snippet_spec.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
project_spec.rb Merge branch '20067-wiki-not-visible-from-web' into 'master' 2016-07-21 09:12:21 +00:00
project_team_spec.rb UI and copywriting improvements 2016-06-14 13:18:14 +02:00
project_wiki_spec.rb Fix hook data for Wiki Page event 2016-05-31 11:24:58 -03:00
protected_branch_spec.rb Support wildcard matches for protected branches at the model level. 2016-07-05 10:50:34 +05:30
release_spec.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
repository_spec.rb Gracefully handle case when keep-around references are corrupted or exist already 2016-07-22 06:38:02 -07:00
service_spec.rb Avoid describe-ing symbols in specs 2016-07-12 10:27:58 -05:00
snippet_spec.rb Fix visibility of private project snippets for members when searching 2016-06-22 20:09:19 -03:00
spam_log_spec.rb Refactor Admin::SpamLogsController to block user before destroying 2016-02-02 11:25:44 -02:00
todo_spec.rb Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
tree_spec.rb Prioritize previewable over plain README files 2016-01-25 11:27:07 -02:00
user_spec.rb Merge branch 'email-domain-blacklist' into 'master' 2016-07-20 20:26:00 +00:00
wiki_page_spec.rb Fix old version warning when viewing wiki latest version via version_id 2016-01-29 14:17:00 -02:00