Small sized artifacts cannot be uploaded to the coordinator [gitlab-runner 11.8.0]
Summary
Small sized artifacts (tarball with emtpy folders or very small files) cannot be uploaded to the coordinator
WARNING: Uploading artifacts to coordinator... failed id=333911 responseStatus=500 Internal Server Error status=500 Internal Server Error token=xTxMuFPX
Steps to reproduce
gitlab-runner Runtime platform: arch=amd64 os=linux pid=17980 revision=4745a6f3 version=11.8.0
To reproduce run a pipeline job with this CI/CD file (cf: example project
stages:
- build
JOB1:
stage: build
script:
- mkdir -p folder1 folder4
- touch folder4/test
- tar cvf ${CI_JOB_NAME}.tar folder*
artifacts:
name: ${CI_JOB_NAME}.tar
paths:
- ${CI_JOB_NAME}.tar
Example Project
I have created a artifact_fail project for it. I could reproduce the issue as per the following pipeline failed job link
What is the current bug behavior?
Unexpected behaviour with uploading artefacts on gitlab 11.8.1 CE edition server and gitlab-runner 11.8.0. Reproduced also on latest 11.9.0-ee edition.
Small sized artifacts (tarball with emtpy folders or very small files) cannot be uploaded to the coordinator while I do not encounter an issue when it comes to larger artifacts with more content in them (larger files or executables)
Running with gitlab-runner 11.8.0 (4745a6f3)
on mbsvla-xserver02.au.thalesgroup.local T4JzTxF3
Using Shell executor...
Running on mbsvla-xserver02.au.thalesgroup.local...
Cloning repository...
Cloning into '/home/fmadiot/gitlab-runner/builds/T4JzTxF3/0/florentmadiot/artifact_fail'...
Checking out d1415604 as master...
Skipping Git submodules setup
$ mkdir -p folder1 folder4
$ touch folder4/test
$ tar cvf ${CI_JOB_NAME}.tar folder*
folder1/
folder4/
folder4/test
Uploading artifacts...
Runtime platform arch=amd64 os=linux pid=17980 revision=4745a6f3 version=11.8.0
JOB1.tar: found 1 matching files
WARNING: Uploading artifacts to coordinator... failed id=182359250 responseStatus=500 Internal Server Error status=500 Internal Server Error token=VsJ6M8p7
WARNING: Retrying...
WARNING: Uploading artifacts to coordinator... failed id=182359250 responseStatus=500 Internal Server Error status=500 Internal Server Error token=VsJ6M8p7
WARNING: Retrying...
WARNING: Uploading artifacts to coordinator... failed id=182359250 responseStatus=500 Internal Server Error status=500 Internal Server Error token=VsJ6M8p7
FATAL: invalid argument
ERROR: Job failed: exit status 1