Uploading artifacts to coordinator... too large archive should fail job

Summary

ERROR: Uploading artifacts to coordinator... too large archive id=1004 responseStatus=413 Request Entity Too Large status=413 Request Entity Too Large token=y9oZhbeX FATAL: Too large
Job succeeded

Steps to reproduce

  • Ask gitlab to save an artifact that is bigger than max upload size in nginx.
  • Run the job

What is the current bug behavior?

Job succeeds

What is the expected correct behavior?

Job should fail

Relevant logs and/or screenshots

ERROR: Uploading artifacts to coordinator... too large archive id=1004 responseStatus=413 Request Entity Too Large status=413 Request Entity Too Large token=y9oZhbeX FATAL: Too large
Job succeeded

GitLab 9.2.5 GitLab Shell 5.0.4 GitLab Workhorse v2.0.0 GitLab API v4 Git 2.13.0 Ruby 2.3.4p301 Rails 4.2.8 mysql2 5.6.34-log