sameersbn / sameersbn/docker-gitlab

artifacts broken after upgrading to 11.5.0

Open
#1,789 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

wontfix
Dominant language
Shell
Stars
8.1k
Forks
2.1k
Avg merge
17h 47m
Merged PRs (30d)
7

Description

my artifact dependency is broken, if job A depends on Job B's artifact it will simply fail.

I found this in the production.log:

Processing by Projects::JobsController#show as JSON
Parameters: {"namespace_id"=>"PlayGround", "project_id"=>"dispatch", "id"=>"94011"}
Completed 500 Internal Server Error in 54ms (ActiveRecord: 9.5ms)

Errno::ENOENT (No such file or directory @ rb_sysopen - /home/git/data/shared/artifacts/0f/41/0f4121d0ef1df4c86854c7ebb47ae1c93de8aec8f944035eeaa6495dd71a0678/2018_11_27/94011/143404/job.log):
  app/uploaders/gitlab_uploader.rb:87:in `initialize'
  app/uploaders/gitlab_uploader.rb:87:in `open'
  app/uploaders/gitlab_uploader.rb:87:in `open'
  app/models/ci/job_artifact.rb:76:in `open'
  lib/gitlab/ci/trace.rb:70:in `block in read'
  lib/gitlab/ci/trace/stream.rb:20:in `initialize'

please is there any way I can downgrade?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the failing paths named in the production log: app/uploaders/gitlab_uploader.rb:87, app/models/ci/job_artifact.rb:76, and lib/gitlab/ci/trace.rb:70. Reproduce a job-artifact dependency failure after upgrading to 11.5.0 and trace why job.log is missing; done means dependent jobs can read the artifact without a 500 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, ruby
Domain
backend, ci-cd
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.