• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • durable-task-plugin
    • Jenkins ver. 1.652 (war)
      durable-taks 1.8
      windows 7 64 bit
      python 3.5 64 bit
      Oracle JRE v8 update 73

      After updating durable-task from 1.7 to 1.8 workflow builds execute bat steps and hang.
      Example of workflow script:
      node {
      bat 'python TaskFor1C.py'
      echo 'end'
      }
      In TaskFor1C.py start program (1cv8.exe) with parametr using metod subprocess.call(). Program start and working as expected but after close workflow hang and in log little spinning icon, but need 'end'.
      After switching back to durable-task version 1.7 everything is working again as expected.

          [JENKINS-33456] durable-task 1.8 breaks workflow bat steps

          Daniel Weber added a comment -

          We also encountered problems where bat steps dis not finish. It looked like the result.txt file that Jenkins is waiting for was never created although the batch scripts were done. The 2 .bat files and log file existed in the "...@tmp" folder.

          Downgrading durable-tasks to 1.7 helped.

          Running Jenkins 1.625.3 under Windows Server 2008 R2, pipeline plugins versions 1.14.

          Daniel Weber added a comment - We also encountered problems where bat steps dis not finish. It looked like the result.txt file that Jenkins is waiting for was never created although the batch scripts were done. The 2 .bat files and log file existed in the "...@tmp" folder. Downgrading durable-tasks to 1.7 helped. Running Jenkins 1.625.3 under Windows Server 2008 R2, pipeline plugins versions 1.14.

          I've read this issue history, and man, this doesn't look easy.
          Might I suggest using START /wait as an alternative to CALL, and use %ERRORLEVEL% to retrieve the result?
          Source: http://stackoverflow.com/questions/13257571/call-command-vs-start-with-wait-option

          I'd also suggest a kind of unit-test-job that does all kind of calls, start, cmds... and check in which case you manage to get the result; in any case it should not hang.

          Christophe Carpentier added a comment - I've read this issue history, and man, this doesn't look easy. Might I suggest using START /wait as an alternative to CALL, and use %ERRORLEVEL% to retrieve the result? Source: http://stackoverflow.com/questions/13257571/call-command-vs-start-with-wait-option I'd also suggest a kind of unit-test-job that does all kind of calls, start, cmds... and check in which case you manage to get the result; in any case it should not hang.

          Still present in 2.0-rc.
          jglick and vakulenko_alex, I don't understand why this issue is a blocker, and yet it doesn't seem to hinder the promotion of the version from beta to RC.
          And please don't tell us we can work around it by changing the way our bats are called: I'm not going to change all my Ant scripts, then change again the next time you revert to the other way!

          Plus, you never know how third party tools may call other exes. One day or another it'll blow.

          Anyway, as far as I'm concerned: I'm really eager to test J2.0, but this is a no-go...

          Christophe Carpentier added a comment - Still present in 2.0-rc. jglick and vakulenko_alex , I don't understand why this issue is a blocker, and yet it doesn't seem to hinder the promotion of the version from beta to RC. And please don't tell us we can work around it by changing the way our bats are called: I'm not going to change all my Ant scripts, then change again the next time you revert to the other way! Plus, you never know how third party tools may call other exes. One day or another it'll blow. Anyway, as far as I'm concerned: I'm really eager to test J2.0, but this is a no-go...

          I've run some additionnal tests, the AnsiColorBuildWrapper may be at fault.
          Thus, this simple ant file sufices:

          <?xml version="1.0"?>
          <project name="Minimal JENKINS-33456" basedir="." default="build">
          	<target name="build">
          		<fail/>
          	</target>
          </project>
          

          I'll disable the color ansi codes for now, but hey.

          Christophe Carpentier added a comment - I've run some additionnal tests, the AnsiColorBuildWrapper may be at fault. Thus, this simple ant file sufices: <?xml version= "1.0" ?> <project name= "Minimal JENKINS-33456" basedir= "." default= "build" > <target name= "build" > <fail/> </target> </project> I'll disable the color ansi codes for now, but hey.

          Disabling the wrapper did no good. I've put all our current ant tasks in a script and tried it, it freeze on success too.
          I think my particular issue might be closer to JENKINS-33164.

          Christophe Carpentier added a comment - Disabling the wrapper did no good. I've put all our current ant tasks in a script and tried it, it freeze on success too. I think my particular issue might be closer to JENKINS-33164 .

          Patrick Wolf added a comment -

          Can you upgrade to the latest version of this plugin and reproduce?

          Patrick Wolf added a comment - Can you upgrade to the latest version of this plugin and reproduce?

          hrmpw In case you're asking me, my particular issue was fixed by JENKINS-34150.

          Christophe Carpentier added a comment - hrmpw In case you're asking me, my particular issue was fixed by JENKINS-34150 .

          Patrick Wolf added a comment -

          Thanks for the update saucistophe.

          I should have been more specific. I was asking vakulenko_alex who opened the ticket. There are 7 or so tickets open against Durable Task hanging on bat steps. I want to confirm that they are all fixed by JENKINS-34150 so we can start closing some of them out.

          Patrick Wolf added a comment - Thanks for the update saucistophe . I should have been more specific. I was asking vakulenko_alex who opened the ticket. There are 7 or so tickets open against Durable Task hanging on bat steps. I want to confirm that they are all fixed by JENKINS-34150 so we can start closing some of them out.

          Now I use Durable Task Plugin v 1.12.
          All fixed.
          Thank you.

          Aleksei Vakulenko added a comment - Now I use Durable Task Plugin v 1.12. All fixed. Thank you.

          Jesse Glick added a comment -

          Then it is probably a duplicate. Thanks for confirming.

          Jesse Glick added a comment - Then it is probably a duplicate. Thanks for confirming.

            jglick Jesse Glick
            vakulenko_alex Aleksei Vakulenko
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: