You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2012/04/05 19:30:45 UTC
DO NOT REPLY [Bug 53041] New: does not preserve task name
label under
https://issues.apache.org/bugzilla/show_bug.cgi?id=53041
Bug #: 53041
Summary: <sshexec> does not preserve task name label under
<parallel>
Product: Ant
Version: 1.8.3
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Optional Tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: tmonroe@openlane.com
Classification: Unclassified
Created attachment 28548
--> https://issues.apache.org/bugzilla/attachment.cgi?id=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
useful.
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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53041] does not preserve task name label
under
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53041
T Monroe <tm...@openlane.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #28550|application/octet-stream |text/plain
mime type| |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 53041] does not preserve task name label under
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53041
--- Comment #5 from T Monroe <tm...@openlane.com> ---
I tried a similar script with Parallel Ant
(http://blog.codeaholics.org/parallel-ant/), letting ant execute targets based
on the dependency graph, and the task name clobbering still occurs. So
<parallel> is no longer a suspect.
--
You are receiving this mail because:
You are the assignee for the bug.
DO NOT REPLY [Bug 53041] does not preserve task name label
under
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53041
--- Comment #2 from T Monroe <tm...@openlane.com> 2012-04-05 17:32:11 UTC ---
Created attachment 28550
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28550
Log file with 3 <sshexec> under <parallel>
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53041] does not preserve task name label
under
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53041
--- Comment #3 from T Monroe <tm...@openlane.com> 2012-04-05 17:32:44 UTC ---
Created attachment 28551
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28551
Test script which generated log files and demonstrates bug
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53041] does not preserve task name label
under
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53041
--- Comment #4 from T Monroe <tm...@openlane.com> 2012-04-05 17:38:44 UTC ---
Finishing an unfinished thought...
(In reply to comment #0)
> I do know that the behavior
...is correct with regards to getting useful work done, but very undesirable in
terms of figuring out what may have gone wrong from the log files.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53041] does not preserve task name label
under
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53041
T Monroe <tm...@openlane.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #28549|application/octet-stream |text/plain
mime type| |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53041] does not preserve task name label
under
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53041
--- Comment #1 from T Monroe <tm...@openlane.com> 2012-04-05 17:31:40 UTC ---
Created attachment 28549
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28549
Log file with 2 <sshexec> under <parallel>
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.