gitlab-org--gitlab-foss/spec/uploaders
Stan Hu 37dd073782 Fix LFS timeouts when trying to save large files
The following was happening:

1. Workhorse stores an LFS file in /var/opt/gitlab/gitlab-rails/shared/lfs-objects
2. CarrierWave then renames the file to a temporary directory (e.g. /opt/gitlab/embedded/service/gitlab-rails/tmp)
3. CarrierWave then renames the file to its final location (e.g. /var/opt/gitlab/gitlab-rails/shared/lfs-objects)

When the LFS upload path was on a different filesystem than the Rails
installation, step 2 could take a longer than 10 seconds, at which point Workhorse
would time out with "badgateway: failed after 10s: context canceled".

This change makes the work path in the same root as the LFS storage path, preventing moves
across filesystems.

Closes #33218
2017-06-04 21:51:59 -07:00
..
artifact_uploader_spec.rb Add missing specs 2017-06-01 16:34:48 +02:00
attachment_uploader_spec.rb Minor refactoring of Uploaders 2017-02-24 16:41:27 -05:00
avatar_uploader_spec.rb Minor refactoring of Uploaders 2017-02-24 16:41:27 -05:00
file_uploader_spec.rb Handle relative and absolute Upload paths in the Uploaders 2017-03-06 14:41:10 -05:00
gitlab_uploader_spec.rb Add missing specs 2017-06-01 16:34:48 +02:00
lfs_object_uploader_spec.rb Fix LFS timeouts when trying to save large files 2017-06-04 21:51:59 -07:00
personal_file_uploader_spec.rb Support uploaders for personal snippets comments 2017-05-02 15:22:24 +02:00
records_uploads_spec.rb Handle relative and absolute Upload paths in the Uploaders 2017-03-06 14:41:10 -05:00
uploader_helper_spec.rb Add RecordsUploads module to record Upload records via callbacks 2017-03-06 14:41:09 -05:00