Skip to content

Frontend: Error occurred while drawing relationship links for jobs with parallel matrix

Summary

If a job with parallel:matrix depends on another job, on the pipeline details page, it's impossible to show the dependencies.

Steps to reproduce

  1. Create a pipeline like this
# .gitlab-ci.yml
stages:
  - build
  - deploy

build-job:
  stage: build
  script:
    - echo "Compiling the code..."
    - echo "Compile complete."

deploy-job:
  stage: deploy
  needs:
    - build-job
  script:
    - echo "Deploying application..."
    - echo "Application successfully deployed."
  parallel:
    matrix:
      - FOO: bar
  1. Go to CI/CD > Pipelines and then the detail of the pipeline that has been run
  2. Select Group jobs by: Job dependencies and check Show dependencies
  3. An error occurred while drawing job relationship links. should be shown.

Example Project

https://gitlab.com/tchandelle/demo-pipeline-job-dependencies/-/pipelines/483033670

What is the current bug behavior?

Dependencies are not shown. And alert saying:

An error occurred while drawing job relationship links.

What is the expected correct behavior?

Dependencies should be shown

Relevant logs and/or screenshots

pipeline-jobs

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of:
`sudo gitlab-rake gitlab:env:info`)

(For installations from source run and paste the output of:
`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:check SANITIZE=true)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)

(we will only investigate if the tests are passing)

Possible fixes