-
- Downloads
Set artifact working directory to be in the destination store to prevent unnecessary I/O
Similar to #33218, build artifacts were being uploaded into a CarrierWave temporary directory in the Rails root directory before moved to their final destination, which could cause a copy across filesystems. This merge request refactors the work in !11866 so that any uploader can just override `work_dir` to change the default implementation. Closes #33274
Showing
- app/uploaders/artifact_uploader.rb 4 additions, 0 deletionsapp/uploaders/artifact_uploader.rb
- app/uploaders/gitlab_uploader.rb 19 additions, 0 deletionsapp/uploaders/gitlab_uploader.rb
- app/uploaders/lfs_object_uploader.rb 0 additions, 12 deletionsapp/uploaders/lfs_object_uploader.rb
- changelogs/unreleased/sh-fix-refactor-uploader-work-dir.yml 4 additions, 0 deletionschangelogs/unreleased/sh-fix-refactor-uploader-work-dir.yml
- spec/uploaders/artifact_uploader_spec.rb 11 additions, 4 deletionsspec/uploaders/artifact_uploader_spec.rb
- spec/uploaders/gitlab_uploader_spec.rb 15 additions, 0 deletionsspec/uploaders/gitlab_uploader_spec.rb
- spec/uploaders/lfs_object_uploader_spec.rb 24 additions, 15 deletionsspec/uploaders/lfs_object_uploader_spec.rb
Please register or sign in to comment