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

timeout step should support breaking on inactivity, not just a fixed duration

      Some of our test-suite items can occasionally deadlock, causing a build to never finish. The Build Timeout Plugin supports failing a job when nothing happens (i.e. no log output) for a sufficient length of time. It would be good to get this behaviour in Workflow.

          [JENKINS-26521] timeout step should support breaking on inactivity, not just a fixed duration

          Jo Shields created issue -

          Jesse Glick added a comment -

          Would be useful in some cases. I am not sure how difficult this would be. BuildTimeoutWrapper uses BuildWrapper.decorateLogger for this purpose, which is too low-level (assumes access to an OutputStream for the whole build) and so is not available in a workflow (cf. JENKINS-24673). There would have to be something like a TaskListenerDecorator which could be passed into BodyInvoker.withContext and interpreted by LogActionImpl, perhaps.

          By the way for the use case originally reported here, it is arguably better to just impose a per-suite timeout in the test framework or test runner, such as in Surefire.

          Jesse Glick added a comment - Would be useful in some cases. I am not sure how difficult this would be. BuildTimeoutWrapper uses BuildWrapper.decorateLogger for this purpose, which is too low-level (assumes access to an OutputStream for the whole build) and so is not available in a workflow (cf. JENKINS-24673 ). There would have to be something like a TaskListenerDecorator which could be passed into BodyInvoker.withContext and interpreted by LogActionImpl , perhaps. By the way for the use case originally reported here, it is arguably better to just impose a per-suite timeout in the test framework or test runner, such as in Surefire .
          Jesse Glick made changes -
          Assignee Original: Jesse Glick [ jglick ] New: Kohsuke Kawaguchi [ kohsuke ]
          Description Original: Some of our test-suite items can occasionally deadlock, causing a build to never finish. The Build Timeout Plugin (http://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin) supports failing a job when nothing happens (i.e. no log output) for a sufficient length of time. It would be good to get this behaviour in Workflow. New: Some of our test-suite items can occasionally deadlock, causing a build to never finish. The [Build Timeout Plugin|http://wiki.jenkins-ci.org/display/JENKINS/Build-timeout+Plugin] supports failing a job when nothing happens (i.e. no log output) for a sufficient length of time. It would be good to get this behaviour in Workflow.
          Issue Type Original: Bug [ 1 ] New: New Feature [ 2 ]
          Labels New: api
          Jesse Glick made changes -
          Link New: This issue is related to JENKINS-27396 [ JENKINS-27396 ]
          Andrew Bayer made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ] New: Andrew Bayer [ abayer ]
          Andrew Bayer made changes -
          Labels Original: api New: api community-bee
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 160591 ] New: JNJira + In-Review [ 180413 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Jesse Glick made changes -
          Component/s New: workflow-basic-steps-plugin [ 21712 ]
          Component/s Original: pipeline [ 21692 ]

            abayer Andrew Bayer
            directhex Jo Shields
            Votes:
            7 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved: