Commit bb88fb7e authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch 'patch-28' into 'master'

Returns a correct TMP_UPLOAD_PATH to workhourse

Closes #46763

See merge request gitlab-org/gitlab-ce!19148
parents 57838e33 acdea516
...@@ -11,7 +11,7 @@ module ObjectStorage ...@@ -11,7 +11,7 @@ module ObjectStorage
ObjectStorageUnavailable = Class.new(StandardError) ObjectStorageUnavailable = Class.new(StandardError)
DIRECT_UPLOAD_TIMEOUT = 4.hours DIRECT_UPLOAD_TIMEOUT = 4.hours
TMP_UPLOAD_PATH = 'tmp/upload'.freeze TMP_UPLOAD_PATH = 'tmp/uploads'.freeze
module Store module Store
LOCAL = 1 LOCAL = 1
......
---
title: Fix FreeBSD can not upload artifacts due to wrong tmp path
merge_request: 19148
author:
type: fixed
...@@ -1225,7 +1225,7 @@ describe API::Runner, :clean_gitlab_redis_shared_state do ...@@ -1225,7 +1225,7 @@ describe API::Runner, :clean_gitlab_redis_shared_state do
before do before do
fog_connection.directories.get('artifacts').files.create( fog_connection.directories.get('artifacts').files.create(
key: 'tmp/upload/12312300', key: 'tmp/uploads/12312300',
body: 'content' body: 'content'
) )
......
...@@ -1089,7 +1089,7 @@ describe 'Git LFS API and storage' do ...@@ -1089,7 +1089,7 @@ describe 'Git LFS API and storage' do
context 'with valid remote_id' do context 'with valid remote_id' do
before do before do
fog_connection.directories.get('lfs-objects').files.create( fog_connection.directories.get('lfs-objects').files.create(
key: 'tmp/upload/12312300', key: 'tmp/uploads/12312300',
body: 'content' body: 'content'
) )
end end
......
...@@ -618,7 +618,7 @@ describe ObjectStorage do ...@@ -618,7 +618,7 @@ describe ObjectStorage do
let!(:fog_file) do let!(:fog_file) do
fog_connection.directories.get('uploads').files.create( fog_connection.directories.get('uploads').files.create(
key: 'tmp/upload/test/123123', key: 'tmp/uploads/test/123123',
body: 'content' body: 'content'
) )
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment