Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel stages show as complete when only 1 stage complete #447

Open
The-Jonsey opened this issue Jun 12, 2024 · 5 comments
Open

Parallel stages show as complete when only 1 stage complete #447

The-Jonsey opened this issue Jun 12, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@The-Jonsey
Copy link

Jenkins and plugins versions report

Environment
println("Jenkins: ${Jenkins.instance.getVersion()}")
println("OS: ${System.getProperty('os.name')} - ${System.getProperty('os.version')}")
println("Java: ${System.getProperty('java.version')} - ${System.getProperty('java.vm.vendor')} (${System.getProperty('java.vm.name')})")
println "---"

Jenkins.instance.pluginManager.plugins
.collect()
.sort { it.getShortName() }
.each {
  plugin -> println("${plugin.getShortName()}:${plugin.getVersion()}")
}
return

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux

Reproduction steps

  1. Write a pipeline with parallel stages i.e
pipeline {
    agent any

    stages {
        stage('Parallel Stages') {
            parallel {
                stage('Fast Stage') {
                    steps {
                        sh 'sleep 5'
                    }
                }
                stage('Slow Stage') {
                    steps {
                        sh 'sleep 60'
                    }
                }
            }
        }
    }
}
  1. Run said pipeline and preview on the job page with the list of builds, rather than the individual build graph

Expected Results

The graph view to show some indication of stages still running, as this can make builds look like they are complete, while they are still running

Actual Results

Job page showing build appears to be complete
Screenshot 2024-05-30 at 10-16-27 Parallel Looks Like Complete Pipeline-Graph-View Jenkins
Build graph showing build is still running
Screenshot 2024-05-30 at 10-16-36 Graph Parallel Looks Like Complete Pipeline-Graph-View #3 Jenkins

Anything else?

No response

Are you interested in contributing a fix?

No response

@The-Jonsey The-Jonsey added the bug Something isn't working label Jun 12, 2024
@SaturnIC
Copy link

SaturnIC commented Jul 9, 2024

Its even worse when
one stage succeeds in the parallel stage and later another parallel stage fails,
the pipeline graph will look like all the parallel stages succeeded when in fact at least one didn't.

@mortonl
Copy link

mortonl commented Aug 12, 2024

We've noticed what I think is a related issue today:
When looking at the job level pipeline graph for multiple parallel stages it shows as an empty circle:
image

But when we go into the build page it shows correctly that the one relevant stage was completed successfully:
image

@timja
Copy link
Member

timja commented Aug 12, 2024

yes sounds related, the algorithm here could do with improving

@nre-ableton
Copy link

What I find confusing is that there is a progress indicator in the "Pipeline Console" view:

Image

But when looking at the "Pipeline Overview" view, it looks to be complete:

Image

Has there been any progress on this issue?

@timja
Copy link
Member

timja commented Oct 8, 2024

Not that I'm aware of

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants