jenkinsci / jenkinsci/workflow-basic-steps-plugin
[JENKINS-38713] timeout failing to terminate run-away Pipeline executions
- Dominant language
- Java
- Stars
- 73
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
In this Jenkinsfile we're using a timeout block to prevent run-away test executions which would waste our cloud budget.
It appears that this fails to actually stop executions.in some circumstances that I have not yet determined.
I captured the following thread-dump from the Pipeline execution:
Thread #12
at DSL.sh(awaiting process completion in /home/azureuser/workspace/Core_jenkins_upstream-XZUSMW3CKUAM6W5W2KS46X6N7A3DSFZYKUTDXGXOKZVL3XWWFAMA@tmp/durable-56765fdf on Azure1003041313 (pid: 65350))
at WorkflowScript.run(WorkflowScript:39)
at WorkflowScript.withMavenEnv(WorkflowScript:76)
at DSL.withEnv(Native Method)
at WorkflowScript.withMavenEnv(WorkflowScript:75)
at WorkflowScript.run(WorkflowScript:33)
at DSL.timeout(Native Method)
at WorkflowScript.run(WorkflowScript:30)
at DSL.stage(Native Method)
at WorkflowScript.run(WorkflowScript:29)
at DSL.timestamps(Native Method)
at WorkflowScript.run(WorkflowScript:21)
at DSL.node(running on Azure1003041313)
at WorkflowScript.run(WorkflowScript:20)
I don't yet have a reproduction case, as I see this only sporadically, but I see it at least once or twice a week on ci.jenkins.io so if there are additional diagnostics I can perform the next time I see the issue, please let me know!
---
Originally reported by
rtyler, imported from: timeout failing to terminate run-away Pipeline executions
cloudbees
Raw content of original issue
In this Jenkinsfile we're using a timeout block to prevent run-away test executions which would waste our cloud budget.
It appears that this fails to actually stop executions.in some circumstances that I have not yet determined.
I captured the following thread-dump from the Pipeline execution:
Thread #12
at DSL.sh(awaiting process completion in /home/azureuser/workspace/Core_jenkins_upstream-XZUSMW3CKUAM6W5W2KS46X6N7A3DSFZYKUTDXGXOKZVL3XWWFAMA@tmp/durable-56765fdf on Azure1003041313 (pid: 65350))
at WorkflowScript.run(WorkflowScript:39)
at WorkflowScript.withMavenEnv(WorkflowScript:76)
at DSL.withEnv(Native Method)
at WorkflowScript.withMavenEnv(WorkflowScript:75)
at WorkflowScript.run(WorkflowScript:33)
at DSL.timeout(Native Method)
at WorkflowScript.run(WorkflowScript:30)
at DSL.stage(Native Method)
at WorkflowScript.run(WorkflowScript:29)
at DSL.timestamps(Native Method)
at WorkflowScript.run(WorkflowScript:21)
at DSL.node(running on Azure1003041313)
at WorkflowScript.run(WorkflowScript:20)I don't yet have a reproduction case, as I see this only sporadically, but I see it at least once or twice a week on ci.jenkins.io so if there are additional diagnostics I can perform the next time I see the issue, please let me know!
Contributor guide
Assessment
This issue has not been assessed yet.