Skip to content

Pipeline detailed view grouped by needs bug

Summary

In some cases the "Show dependencies" view of pipeline detailed view draws the line under a job.

Steps to reproduce

For example the following yml-file causes the dependency line to be drawn from build x server to deploy x server but it goes through build x client job.

stages:
  - test
  - build
  - deploy
pre-job:
  stage: test
  script:
    - echo "I do something before others"
install:
  stage: build
  script:
    - echo "installing stuff for client"
build x client:
  stage: build
  needs: ["install"]
  script:
    - echo "build client"
build x server:
  stage: build
  script:
    - echo "build server"
deploy x server:
  needs: ["build x server"]
  stage: deploy
  script:
    - echo "deploy server"
deploy x client:
  needs: ["build x client"]
  stage: deploy
  script:
    - echo "deploy client"

Example Project

https://gitlab.com/Rulqu/dependencygroupbug

What is the current bug behavior?

Dependency line is going through another job and it causes confusion.

What is the expected correct behavior?

The dependency line should avoid other jobs.

Relevant logs and/or screenshots

image image

Output of checks

Edited by 🤖 GitLab Bot 🤖