Pipeline graph doesn't show lines connecting jobs/stages

Hi everyone.

I’ve been dealing with something strange in my pipeline visualization.

I have just realized that in none of my projects do the lines of connection between the jobs and stages appear.

This is how a pipeline looks everywhere: (see lines connectiong jobs and stages)

This is what my pipelines look like:
(See, no lines between jobs and stages)

I did several tests creating very simple repositories only with the .gitlab-ci.yml but it still does not appear, I even created another gitlab account from scratch but it behaves the same.

For these examples I am not using anything advanced, neither only / except, nor rules, nor merge_requests, not branches anything … a single file in master is the simplest thing in the world.

This is my .gitlab-ci.yml

stages:
  - build
  - test

build:
  stage: build
  script:
    - echo "building..."

test:
  stage: test
  script: 
    - echo "testing..."

integration-test:
  stage: test
  script: 
    - echo "integration testing..."

Thnaks for your help, I really appreciatte it

Hi @dacardona, I think this might be because you don’t use the needs or dependencies keywords…possibly?

Hi dear… Thanks for reply!!

I’ve seen tons of tutorials and videos doing the same super basic pipeline and they got the graph connected…

Do you have your jobs/stages connected?

Good question. Some do and some don’t. The ones that use needs definitely do.

Hi

I found a recent post on gitlab related to tis topic, actually edited 6 days ago: Pipeline Graph Structural Update (#276949) · Issues · GitLab.org / GitLab · GitLab, and specifically this thread and its responses: Pipeline Graph Structural Update (#276949) · Issues · GitLab.org / GitLab · GitLab

  • there will be no links at all. Is that ok? Is that a shipping blocker?
  • I believe no since the links as we have them today are arbitrary and does not provide any real value

I did the changes but same result:

This is my pipeline with needs :

stages:
  - build
  - test

build:
  stage: build
  script:
    - echo "building..."

test:
  stage: test
  needs: [build]
  script: 
    - echo "testing..."

integration-test:
  stage: test
  needs: [build]
  script: 
    - echo "integration testing..."

And pipeline lokks llike (No connections)

The only difference was in the pipeline editor in the “Visualize” option, now it shows the connections, but that’s not the point that I’m trying to solve:

Oh! I see what you mean. I was checking the visualize pane. Sorry for the confusion!

@dacardona, are you able to see the connections/links for needs in the ‘Needs tab’ of your pipeline view?

Hi !!!
Yes, after adding needs to my pipeline I can see the graph in “Needs” tab.

Thanks!!

Beautiful! We are looking at adding back the lines in a coming release. Hope this view works for now!

1 Like

Hi @jmeshell

Great!! , not a problem at all. In fact my jobs work correctly. It seemed strange to me that from one moment to the next I would no longer see the connections and I thought that something was wrong with my pipeline or some configuration.

Thanks for your answer

Thanks for raising this @dacardona The reason we removed the links in the main pipeline graph is because of a common misconception about them.

The links we showed between jobs on the pipeline graph previously, were arbritrary links drawn between every job and didn’t reflect the actual needs links in the pipeline. If you look at this example of an older pipeline, you should see what I mean.

In 13.12 (the next GitLab release) we’re rolling out a new view that will show the links more accurately. You can follow the rollout of that feature here: [Feature Flag]: Enable Needs/DAG/Job dependencies view in Pipeline Graph (#328538) · Issues · GitLab.org / GitLab · GitLab

I hope this helps, and apologies for any confusion caused.