With getCurrentExecutions(false) as of JENKINS-26163, it would be possible à la CpsFlowExecutionTest.assertStepExecutions to create a RootAction and/or a support-core Component which would list all running flows and the running steps in each.

          [JENKINS-29705] Virtual thread dump

          Jesse Glick created issue -
          Jesse Glick made changes -
          Link New: This issue depends on JENKINS-26163 [ JENKINS-26163 ]

          Jesse Glick added a comment -

          Potentially useful to just have that, but more useful to see the actual CpsThreadGroup information including method calls in progress, like a real thread dump. Unsure how much of that information is currently even there in memory; some, since there is a trick to construct virtual stack trace lines in exceptions.

          Jesse Glick added a comment - Potentially useful to just have that, but more useful to see the actual CpsThreadGroup information including method calls in progress, like a real thread dump. Unsure how much of that information is currently even there in memory; some, since there is a trick to construct virtual stack trace lines in exceptions.
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-25550 [ JENKINS-25550 ]
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-26130 [ JENKINS-26130 ]
          Kohsuke Kawaguchi made changes -
          Labels Original: diagnostics New: diagnostics kohsuke-plane-projec
          Kohsuke Kawaguchi made changes -
          Labels Original: diagnostics kohsuke-plane-projec New: diagnostics kohsuke-plane-project
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-23013 [ JENKINS-23013 ]

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpTest.java
          cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsBodyExecution.java
          cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java
          cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsThread.java
          cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDump.java
          cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsThreadGroup.java
          http://jenkins-ci.org/commit/workflow-plugin/12cf061e0d55143abcaef628625420abe76d35ed
          Log:
          JENKINS-29705 added thread dump support

          Implemented the code to obtain the whole program state dump from
          CpsThreadGroup.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpTest.java cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsBodyExecution.java cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsThread.java cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDump.java cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsThreadGroup.java http://jenkins-ci.org/commit/workflow-plugin/12cf061e0d55143abcaef628625420abe76d35ed Log: JENKINS-29705 added thread dump support Implemented the code to obtain the whole program state dump from CpsThreadGroup.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          api/src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecution.java
          cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java
          cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpAction.java
          cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/CpsThreadDump/index.jelly
          job/src/main/java/org/jenkinsci/plugins/workflow/job/ActionFromFlowExecution.java
          job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
          http://jenkins-ci.org/commit/workflow-plugin/5e8fdbdc91f9539324a7a57e1e97ef70f813351f
          Log:
          JENKINS-29705 Exposed thread dump over HTTP

          Compare: https://github.com/jenkinsci/workflow-plugin/compare/12cf061e0d55^...5e8fdbdc91f9

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: api/src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecution.java cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsFlowExecution.java cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpAction.java cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/CpsThreadDump/index.jelly job/src/main/java/org/jenkinsci/plugins/workflow/job/ActionFromFlowExecution.java job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java http://jenkins-ci.org/commit/workflow-plugin/5e8fdbdc91f9539324a7a57e1e97ef70f813351f Log: JENKINS-29705 Exposed thread dump over HTTP Compare: https://github.com/jenkinsci/workflow-plugin/compare/12cf061e0d55 ^...5e8fdbdc91f9

            kohsuke Kohsuke Kawaguchi
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: