Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29705

Virtual thread dump

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            jglick 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.

            Show
            jglick 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.
            Hide
            scm_issue_link 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.

            Show
            scm_issue_link 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.
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            COMPATIBILITY.md
            TUTORIAL.md
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/input/InputStepRestartTest.java
            aggregator/src/test/resources/org/jenkinsci/plugins/workflow/steps/input/InputStepRestartTest/oldFlow.zip
            cps/gulpfile.js
            cps/package.json
            cps/src/main/js/samples.js
            cps/src/main/js/workflow-editor.js
            demo/Dockerfile
            job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
            support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputAction.java
            support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputStepExecution.java
            http://jenkins-ci.org/commit/workflow-plugin/b25572639b743005a1b2b18473912286ba1d59e6
            Log:
            Merge branch 'master' into JENKINS-29705

            Compare: https://github.com/jenkinsci/workflow-plugin/compare/5e8fdbdc91f9...b25572639b74

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md COMPATIBILITY.md TUTORIAL.md aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/input/InputStepRestartTest.java aggregator/src/test/resources/org/jenkinsci/plugins/workflow/steps/input/InputStepRestartTest/oldFlow.zip cps/gulpfile.js cps/package.json cps/src/main/js/samples.js cps/src/main/js/workflow-editor.js demo/Dockerfile job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputAction.java support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputStepExecution.java http://jenkins-ci.org/commit/workflow-plugin/b25572639b743005a1b2b18473912286ba1d59e6 Log: Merge branch 'master' into JENKINS-29705 Compare: https://github.com/jenkinsci/workflow-plugin/compare/5e8fdbdc91f9...b25572639b74
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/IsUnixStepTest.java
            basic-steps/src/main/java/org/jenkinsci/plugins/workflow/steps/IsUnixStep.java
            basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/IsUnixStep/config.jelly
            basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/IsUnixStep/help.html
            http://jenkins-ci.org/commit/workflow-plugin/e44b6b1250b21d878736c2c26e44b870c0397469
            Log:
            Merge branch 'master' into JENKINS-29705

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/IsUnixStepTest.java basic-steps/src/main/java/org/jenkinsci/plugins/workflow/steps/IsUnixStep.java basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/IsUnixStep/config.jelly basic-steps/src/main/resources/org/jenkinsci/plugins/workflow/steps/IsUnixStep/help.html http://jenkins-ci.org/commit/workflow-plugin/e44b6b1250b21d878736c2c26e44b870c0397469 Log: Merge branch 'master' into JENKINS-29705
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            http://jenkins-ci.org/commit/workflow-plugin/f790735002d1e80d0065ec6c23093285a9c1a057
            Log:
            [FIXED JENKINS-29705] Noting change.

            Compare: https://github.com/jenkinsci/workflow-plugin/compare/85f741f9241e...f790735002d1

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md http://jenkins-ci.org/commit/workflow-plugin/f790735002d1e80d0065ec6c23093285a9c1a057 Log: [FIXED JENKINS-29705] Noting change. Compare: https://github.com/jenkinsci/workflow-plugin/compare/85f741f9241e...f790735002d1
            Hide
            jglick Jesse Glick added a comment -

            Damn you link daemon…

            Show
            jglick Jesse Glick added a comment - Damn you link daemon…
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/ExecutorStepTest.java
            support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java
            http://jenkins-ci.org/commit/workflow-plugin/707beee3aa8e1df95f1b6c4823f1d2ca0893c03d
            Log:
            Merge branch 'master' into JENKINS-29705

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/ExecutorStepTest.java support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/ExecutorStepExecution.java http://jenkins-ci.org/commit/workflow-plugin/707beee3aa8e1df95f1b6c4823f1d2ca0893c03d Log: Merge branch 'master' into JENKINS-29705
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            CHANGES.md
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpTest.java
            api/src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecutionOwner.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/CpsThreadDumpAction.java
            cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsThreadGroup.java
            cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsVmExecutorService.java
            cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpAction/index.jelly
            job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
            support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputAction.java
            http://jenkins-ci.org/commit/workflow-plugin/2ac2149d009c811109d20f3f857e2c639ce8fbd4
            Log:
            Merge pull request #249 from jenkinsci/JENKINS-29705

            JENKINS-29705 Added thread dump support

            Compare: https://github.com/jenkinsci/workflow-plugin/compare/8dd67dd83e0f...2ac2149d009c

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: CHANGES.md aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpTest.java api/src/main/java/org/jenkinsci/plugins/workflow/flow/FlowExecutionOwner.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/CpsThreadDumpAction.java cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsThreadGroup.java cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsVmExecutorService.java cps/src/main/resources/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpAction/index.jelly job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java support/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputAction.java http://jenkins-ci.org/commit/workflow-plugin/2ac2149d009c811109d20f3f857e2c639ce8fbd4 Log: Merge pull request #249 from jenkinsci/ JENKINS-29705 JENKINS-29705 Added thread dump support Compare: https://github.com/jenkinsci/workflow-plugin/compare/8dd67dd83e0f...2ac2149d009c
            Hide
            scm_issue_link 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
            http://jenkins-ci.org/commit/workflow-api-plugin/649990e0de6a5e16b3026a601615356dad6ddbb1
            Log:
            JENKINS-29705 Exposed thread dump over HTTP

            Originally-Committed-As: 5e8fdbdc91f9539324a7a57e1e97ef70f813351f

            Show
            scm_issue_link 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 http://jenkins-ci.org/commit/workflow-api-plugin/649990e0de6a5e16b3026a601615356dad6ddbb1 Log: JENKINS-29705 Exposed thread dump over HTTP Originally-Committed-As: 5e8fdbdc91f9539324a7a57e1e97ef70f813351f
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            http://jenkins-ci.org/commit/workflow-api-plugin/8b741c7f4c2d967c5d96004b3f38371928658ebf
            Log:
            Merge branch 'master' into JENKINS-29705

            Originally-Committed-As: b25572639b743005a1b2b18473912286ba1d59e6

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: http://jenkins-ci.org/commit/workflow-api-plugin/8b741c7f4c2d967c5d96004b3f38371928658ebf Log: Merge branch 'master' into JENKINS-29705 Originally-Committed-As: b25572639b743005a1b2b18473912286ba1d59e6
            Hide
            scm_issue_link 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-cps-plugin/64e33a01dceb8c9b5e43df4bc785c1d536f8e487
            Log:
            JENKINS-29705 added thread dump support

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

            Originally-Committed-As: 12cf061e0d55143abcaef628625420abe76d35ed

            Show
            scm_issue_link 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-cps-plugin/64e33a01dceb8c9b5e43df4bc785c1d536f8e487 Log: JENKINS-29705 added thread dump support Implemented the code to obtain the whole program state dump from CpsThreadGroup. Originally-Committed-As: 12cf061e0d55143abcaef628625420abe76d35ed
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            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
            http://jenkins-ci.org/commit/workflow-cps-plugin/69810b1cb27155de32698c43f9e61ff70a1a15e9
            Log:
            JENKINS-29705 Exposed thread dump over HTTP

            Originally-Committed-As: 5e8fdbdc91f9539324a7a57e1e97ef70f813351f

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: 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 http://jenkins-ci.org/commit/workflow-cps-plugin/69810b1cb27155de32698c43f9e61ff70a1a15e9 Log: JENKINS-29705 Exposed thread dump over HTTP Originally-Committed-As: 5e8fdbdc91f9539324a7a57e1e97ef70f813351f
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            cps/gulpfile.js
            cps/package.json
            cps/src/main/js/samples.js
            cps/src/main/js/workflow-editor.js
            http://jenkins-ci.org/commit/workflow-cps-plugin/ff8f9ca21f2b4deca629a1b1b55ac70a299397b3
            Log:
            Merge branch 'master' into JENKINS-29705

            Originally-Committed-As: b25572639b743005a1b2b18473912286ba1d59e6

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: cps/gulpfile.js cps/package.json cps/src/main/js/samples.js cps/src/main/js/workflow-editor.js http://jenkins-ci.org/commit/workflow-cps-plugin/ff8f9ca21f2b4deca629a1b1b55ac70a299397b3 Log: Merge branch 'master' into JENKINS-29705 Originally-Committed-As: b25572639b743005a1b2b18473912286ba1d59e6
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/IsUnixStepTest.java
            http://jenkins-ci.org/commit/workflow-cps-plugin/f49d0bce318ca2ef662211f1a34b5ef2563c198e
            Log:
            Merge branch 'master' into JENKINS-29705

            Originally-Committed-As: e44b6b1250b21d878736c2c26e44b870c0397469

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/IsUnixStepTest.java http://jenkins-ci.org/commit/workflow-cps-plugin/f49d0bce318ca2ef662211f1a34b5ef2563c198e Log: Merge branch 'master' into JENKINS-29705 Originally-Committed-As: e44b6b1250b21d878736c2c26e44b870c0397469
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
            http://jenkins-ci.org/commit/workflow-job-plugin/36e73dc995a79fb1f910b366f47c1e9205a9ddc5
            Log:
            JENKINS-29705 Exposed thread dump over HTTP

            Originally-Committed-As: 5e8fdbdc91f9539324a7a57e1e97ef70f813351f

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java http://jenkins-ci.org/commit/workflow-job-plugin/36e73dc995a79fb1f910b366f47c1e9205a9ddc5 Log: JENKINS-29705 Exposed thread dump over HTTP Originally-Committed-As: 5e8fdbdc91f9539324a7a57e1e97ef70f813351f
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java
            http://jenkins-ci.org/commit/workflow-job-plugin/4deceea473c6d244e74d14a27de9ba4caed26313
            Log:
            Merge branch 'master' into JENKINS-29705

            Originally-Committed-As: b25572639b743005a1b2b18473912286ba1d59e6

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: job/src/main/java/org/jenkinsci/plugins/workflow/job/WorkflowRun.java http://jenkins-ci.org/commit/workflow-job-plugin/4deceea473c6d244e74d14a27de9ba4caed26313 Log: Merge branch 'master' into JENKINS-29705 Originally-Committed-As: b25572639b743005a1b2b18473912286ba1d59e6

              People

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

                Dates

                Created:
                Updated:
                Resolved: