ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 53041] New: <sshexec> does not preserve task name label under <parallel>
Date Thu, 05 Apr 2012 17:30:45 GMT

             Bug #: 53041
           Summary: <sshexec> does not preserve task name label under
           Product: Ant
           Version: 1.8.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks
    Classification: Unclassified

Created attachment 28548
Output of "ant -version", "java -version", "ant -diagnostics"

Environment specs attached as one file, test code in another.

With 2 <sshexec> under <parallel> I was able to get one of them to produce an
incorrect task label in the logs -- it looks like one of the <sshexec> is
impersonating another.

With a minimum of 3 I was able to get one of them to abandon the impersonation
ruse entirely and simply claim it was "[parallel]".  The test script includes
up to 10 in parallel.  For extra comedy (tragedy?), turn the test script up to
10 and: 

$ ant -f sshexec-parallel-taskname.xml | sort

In the automation that we use, of which the test code is a microcosm, we rely
upon correct task labels to be able to distinguish output from multiple
sources.  If one is correct, the second looks like the first, and the third and
successive all look like "[parallel]" then our logs are significantly less

In our current version of the automation we use <exec> which calls a Perl
program to set up environment variables and run ssh.  <exec> under <parallel>
seems to behave properly in this respect.

I have theories but as I don't know the code I can't really prove them.  I'll
include them as food for thought:

* <sshexec> isn't thread-safe with regards to the task label
* JSch version 0.1.46 has thread safety problems

About the attached file containing environment specs: Ant 1.8.3 from the
canonical binary distribution, unpacked into /usr/local/apache-ant-1.8.3.  JSch
version 0.1.46 in ${user.home}/.ant/lib.

I don't know if this is a duplicate of #51845 but I will let those who know
better make that determination.  I also don't know if it is a bug in Ant, the
optional tasks, or JSch.  I do know that the behavior

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message