librelist archives

« back to archive

MercurialEclipse snapshot using JavaHg

MercurialEclipse snapshot using JavaHg

From:
John Peberdy
Date:
2012-05-22 @ 01:51
I've pushed a new MercurialEclipse snapshot build. It's the first using JavaHg!

It's much faster with JavaHg and using it this weekend it worked
surprisingly well. I just pushed another build that fixes some issues.

If you're interested this is the update site [1]. It requires hg 2.0+
and probably still has some big bugs.


[1] 
http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/snapshots

Re: MercurialEclipse snapshot using JavaHg

From:
John Peberdy
Date:
2012-05-22 @ 19:51
Hi Jan and Martin,

> The method execute() is undefined for the type StripCommand
> HgStripClient.java
>  /MercurialEclipse/src/com/vectrace/MercurialEclipse/commands/extensions
> line 62 Java Problem

How often do the JavaHg snapshots get built and pushed to the central
maven repository? Is javahg-ext-mq getting built at the moment?

Re: [javahg] Re: MercurialEclipse snapshot using JavaHg

From:
Jan Sorensen
Date:
2012-05-22 @ 20:35
On Tue, May 22, 2012 at 9:51 PM, John Peberdy <johnpeb@gmail.com> wrote:
> Hi Jan and Martin,
>
>> The method execute() is undefined for the type StripCommand
>> HgStripClient.java
>>  /MercurialEclipse/src/com/vectrace/MercurialEclipse/commands/extensions
>> line 62 Java Problem
>
> How often do the JavaHg snapshots get built and pushed to the central
> maven repository? Is javahg-ext-mq getting built at the moment?

Daily if everything compiles and all tests pass. But currently there
is some problems with test on Linux. I think it is related to som of
the things you implemented recently, maybe you could take a look at
it?

Try a 'mvn clean test' (on Linux), I guess it will fail. The output
from the command is attached.

Early in the test it fails to obtain a lock on the server, I believe
that it much later causes the test to fail (search for the line:
"SEVERE: Did not obtain server lock after 120 seconds." (side note:
The line above says '10000 seconds', it should be '10 seconds')).

On the build server it started to fail with the push of:

Changeset 701:5deb010bb1a6 by John Peberdy :
AbstractCommand: support canceling before a command is started
Fixes intermittent testCancel() failure

Cheers,
Jan

PS: We should really get the build server public available so you
would see this when it happens.

Re: [javahg] Re: MercurialEclipse snapshot using JavaHg

From:
John Peberdy
Date:
2012-05-23 @ 00:51
On Tue, May 22, 2012 at 4:35 PM, Jan Sorensen <sorensenjan@gmail.com> wrote:
> On Tue, May 22, 2012 at 9:51 PM, John Peberdy <johnpeb@gmail.com> wrote:
>> Hi Jan and Martin,
>>
>>> The method execute() is undefined for the type StripCommand
>>> HgStripClient.java
>>>  /MercurialEclipse/src/com/vectrace/MercurialEclipse/commands/extensions
>>> line 62 Java Problem
>>
>> How often do the JavaHg snapshots get built and pushed to the central
>> maven repository? Is javahg-ext-mq getting built at the moment?
>
> Daily if everything compiles and all tests pass. But currently there
> is some problems with test on Linux. I think it is related to som of
> the things you implemented recently, maybe you could take a look at
> it?

I haven't been able to reproduce so far. On Linux I tried OpenJDK 1.6
and Oracle JDK 1.7. and on Windows Oracle JDK 1.5 and 1.6 (assuming
maven is using the JDK I think it is).  Which version of Java are you
able to reproduce with? Also can you send me the stack trace? I'm
interested which of the two commands its failing on.

Interestingly on Windows I get these failures (maybe the first is
caused by the firewall, there were some windows firewall prompts.):

Failed tests:   testHTTPPull(com.aragost.javahg.commands.PullCommandTest)
  testCloneRequiringAuth(com.aragost.javahg.internals.ServerTest)

Tests in error:
  testCloneWithLargefileExtension(com.aragost.javahg.RepositoryTest):
Failed to delete:
C:\Users\john.peberdy\AppData\Local\Temp\1337733089915-0

Tests run: 195, Failures: 2, Errors: 1, Skipped: 6


>
> Try a 'mvn clean test' (on Linux), I guess it will fail. The output
> from the command is attached.
>
> Early in the test it fails to obtain a lock on the server, I believe
> that it much later causes the test to fail (search for the line:
> "SEVERE: Did not obtain server lock after 120 seconds." (side note:
> The line above says '10000 seconds', it should be '10 seconds')).

I pushed a fix for this off by 1000 error

>
> On the build server it started to fail with the push of:
>
> Changeset 701:5deb010bb1a6 by John Peberdy :
> AbstractCommand: support canceling before a command is started
> Fixes intermittent testCancel() failure
>
> Cheers,
> Jan
>
> PS: We should really get the build server public available so you
> would see this when it happens.





>
> [INFO] Scanning for projects...
> [INFO]
> [INFO] ------------------------------------------------------------------------
> [INFO] Building JavaHg Core 0.4-SNAPSHOT
> [INFO] ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ javahg ---
> [INFO] Deleting /home/jan/projects/javahg-integration/javahg/target
> [INFO]
> [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ javahg ---
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ javahg ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ javahg ---
> [INFO] Compiling 129 source files to 
/home/jan/projects/javahg-integration/javahg/target/classes
> [INFO]
> [INFO] --- maven-resources-plugin:2.5:testResources 
(default-testResources) @ javahg ---
> [debug] execute contextualize
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 6 resources
> [INFO]
> [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile)
@ javahg ---
> [INFO] Compiling 53 source files to 
/home/jan/projects/javahg-integration/javahg/target/test-classes
> [INFO]
> [INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ javahg ---
> [INFO] Surefire report directory: 
/home/jan/projects/javahg-integration/javahg/target/surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running com.aragost.javahg.OverlayRepositoryTest
> JavaHg test using Mercurial version: 2.1+20120212, binary: hg
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.606 sec
> Running com.aragost.javahg.internals.HgInputStreamTest
> Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
> Running com.aragost.javahg.internals.JavaHgMercurialExtensionTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.078 sec
> Running com.aragost.javahg.internals.JavaHgTestMercurialExtensionTest
> May 21, 2012 12:22:39 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: foo
>
> May 21, 2012 12:22:39 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:39 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> May 21, 2012 12:22:39 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:40 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:22:40 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:40 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:22:40 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:22:40 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:41 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:22:41 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:22:41 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:43 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:22:43 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:22:43 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:43 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:22:44 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:22:44 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:44 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:22:44 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:22:44 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:45 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:22:45 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:22:45 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:45 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:22:46 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 0
> May 21, 2012 12:22:46 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:22:46 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:22:47 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:22:56 AM com.aragost.javahg.log.Logger warn
> WARNING: Waited 10000 seconds for server lock without obtaining it
> May 21, 2012 12:24:46 AM com.aragost.javahg.log.Logger error
> SEVERE: Did not obtain server lock after 120 seconds.
> May 21, 2012 12:24:47 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:24:47 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:24:47 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: ** unknown exception encountered, please 
report by visiting
> **  http://mercurial.selenic.com/wiki/BugTracker
> ** Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) [GCC 4.4.5]
> ** Mercurial Distributed SCM (version 2.1+20120212)
> ** Extensions loaded: javahg, javahg-test
> Traceback (most recent call last):
>  File "/usr/local/bin/hg", line 38, in <module>
>    mercurial.dispatch.run()
>  File "/opt/hg/mercurial/dispatch.py", line 27, in run
>    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
>  File "/opt/hg/mercurial/dispatch.py", line 64, in dispatch
>    return _runcatch(req)
>  File "/opt/hg/mercurial/dispatch.py", line 87, in _runcatch
>    return _dispatch(req)
>  File "/opt/hg/mercurial/dispatch.py", line 683, in _dispatch
>    cmdpats, cmdoptions)
>  File "/opt/hg/mercurial/dispatch.py", line 465, in runcommand
>    ret = _runcommand(ui, options, cmd, d)
>  File "/opt/hg/mercurial/dispatch.py", line 737, in _runcommand
>    return checkargs()
>  File "/opt/hg/mercurial/dispatch.py", line 691, in checkargs
>    retu
> JavaHg: Server process terminated premature with: 1
> May 21, 2012 12:24:47 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> JavaHg: Server process terminated premature with: 200
> May 21, 2012 12:24:47 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> Tests run: 13, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 128.632
sec <<< FAILURE!
> Running com.aragost.javahg.internals.UtilsTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
> Running com.aragost.javahg.internals.PatternReplacingOutputStreamTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
> Running com.aragost.javahg.internals.ServerTest
> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger warn
> WARNING: Exception trying to read stderr: Stream Closed
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger warn
> WARNING: Trying to stop already stopped server
> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger error
> SEVERE: Stopping cmdserver via finalize. Please explicit stop server.
> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger error
> SEVERE: Stopping cmdserver via finalize. Please explicit stop server.
> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger error
> SEVERE: Stopping cmdserver via finalize. Please explicit stop server.
> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> May 21, 2012 12:24:49 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: *
> May 21, 2012 12:24:49 AM com.aragost.javahg.log.Logger warn
> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
> Tests run: 9, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 1.702 sec
> Running com.aragost.javahg.DateTimeTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running com.aragost.javahg.commands.RollbackCommandTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.118 sec
> Running com.aragost.javahg.commands.MergeCommandTest
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.826 sec
> Running com.aragost.javahg.commands.ParentsCommandTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.166 sec
> Running com.aragost.javahg.commands.PushCommandTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.805 sec
> Running com.aragost.javahg.commands.BookmarksCommandTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.596 sec
> Running com.aragost.javahg.commands.HeadsCommandTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.131 sec
> Running com.aragost.javahg.commands.VersionCommandTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 sec
> Running com.aragost.javahg.commands.RemoveCommandTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.5 sec
> Running com.aragost.javahg.commands.UpdateCommandTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.671 sec
> Running com.aragost.javahg.commands.OutgoingCommandTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.371 sec
> Running com.aragost.javahg.commands.IncomingCommandTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.392 sec
> Running com.aragost.javahg.commands.ResolveCommandTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.158 sec
> Running com.aragost.javahg.commands.DiffCommandTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.31 sec
> Running com.aragost.javahg.commands.BranchesTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.269 sec
> Running com.aragost.javahg.commands.ExportCommandTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.12 sec
> Running com.aragost.javahg.commands.GraftCommandTest
> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.665 sec
> Running com.aragost.javahg.commands.LocateCommandTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.407 sec
> Running com.aragost.javahg.commands.StatusCommandTest
> Tests run: 7, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 0.526 sec
> Running com.aragost.javahg.commands.PullCommandTest
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.221 sec
> Running com.aragost.javahg.commands.BranchCommandTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.348 sec
> Running com.aragost.javahg.commands.ManifestCommandTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.352 sec
> Running com.aragost.javahg.commands.AbstractCommandTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.243 sec
> Running com.aragost.javahg.commands.PhaseCommandTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.353 sec
> Running com.aragost.javahg.commands.TagsCommandTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.277 sec
> Running com.aragost.javahg.commands.CopyCommandTest
> Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.218 sec
> Running com.aragost.javahg.commands.AddCommandTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.272 sec
> Running com.aragost.javahg.commands.LogCommandTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.277 sec
> Running com.aragost.javahg.commands.BackoutCommandTest
> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.94 sec
> Running com.aragost.javahg.commands.BisectCommandTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.179 sec
> Running com.aragost.javahg.commands.AnnotateCommandTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.227 sec
> Running com.aragost.javahg.commands.CatCommandTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.317 sec
> Running com.aragost.javahg.commands.CommitCommandTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.424 sec
> Running com.aragost.javahg.commands.RenameCommandTest
> Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.098 sec
> Running com.aragost.javahg.commands.RevertCommandTest
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 sec
> Running com.aragost.javahg.log.LoggerTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
> Running com.aragost.javahg.RepositoryTest
> May 21, 2012 12:25:05 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:05 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:05 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:05 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:07 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:07 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:07 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:07 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> May 21, 2012 12:25:07 AM com.aragost.javahg.log.Logger error
> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>
> JavaHg: Server process terminated premature with: 255
> Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.465 sec
> Running com.aragost.javahg.ChangesetTest
> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753 sec
> Running com.aragost.javahg.HgVersionTest
> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
> Running com.aragost.javahg.ExtensionTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.152 sec
> Running com.aragost.javahg.WorkingCopyTest
> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.152 sec
> Running com.aragost.javahg.test.StressTest
> May 21, 2012 12:25:09 AM com.aragost.javahg.log.Logger error
> SEVERE: Stopping cmdserver via finalize. Please explicit stop server.
> Cache stats: CacheStats{hitCount=212, missCount=546, 
loadSuccessCount=546, loadExceptionCount=0, totalLoadTime=6289326, 
evictionCount=372}
> Cache stats: CacheStats{hitCount=250, missCount=375, 
loadSuccessCount=375, loadExceptionCount=0, totalLoadTime=3041864, 
evictionCount=0}
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.707 sec
>
> Results :
>
> Tests in error:
> 
 testCancel(com.aragost.javahg.internals.JavaHgTestMercurialExtensionTest):
Did not obtain server lock after 120 seconds.
>
> Tests run: 194, Failures: 0, Errors: 1, Skipped: 6
>
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2:52.553s
> [INFO] Finished at: Mon May 21 00:25:24 CEST 2012
> [INFO] Final Memory: 24M/217M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) 
on project javahg: There are test failures.
> [ERROR]
> [ERROR] Please refer to 
/home/jan/projects/javahg-integration/javahg/target/surefire-reports for 
the individual test results.
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, 
please read the following articles:
> [ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException



-- 
John Peberdy

Re: [javahg] Re: MercurialEclipse snapshot using JavaHg

From:
Jan Sorensen
Date:
2012-05-23 @ 03:39
On Wed, May 23, 2012 at 2:51 AM, John Peberdy <johnpeb@gmail.com> wrote:
[...]
>> Daily if everything compiles and all tests pass. But currently there
>> is some problems with test on Linux. I think it is related to som of
>> the things you implemented recently, maybe you could take a look at
>> it?
>
> I haven't been able to reproduce so far. On Linux I tried OpenJDK 1.6
> and Oracle JDK 1.7. and on Windows Oracle JDK 1.5 and 1.6 (assuming
> maven is using the JDK I think it is).  Which version of Java are you
> able to reproduce with? Also can you send me the stack trace? I'm
> interested which of the two commands its failing on.

It is OpenJDK 1.6 and Maven 3.0.3. I must admit I have only tried it
on the build server, I don't have a setup on any other linux box.

Stacktrace:
Tests run: 13, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
128.781 sec <<< FAILURE!
testCancel(com.aragost.javahg.internals.JavaHgTestMercurialExtensionTest)
 Time elapsed: 120.086 sec  <<< ERROR!
java.lang.RuntimeException: Did not obtain server lock after 120 seconds.
        at 
com.aragost.javahg.internals.ServerPool.waitForServer(ServerPool.java:218)
        at com.aragost.javahg.internals.ServerPool.take(ServerPool.java:167)
        at 
com.aragost.javahg.internals.AbstractCommand.launchStream(AbstractCommand.java:162)
        at 
com.aragost.javahg.internals.AbstractCommand.launchString(AbstractCommand.java:142)
        at 
com.aragost.javahg.commands.VersionCommand.execute(VersionCommand.java:57)
        at 
com.aragost.javahg.internals.JavaHgTestMercurialExtensionTest.testCancel(JavaHgTestMercurialExtensionTest.java:224)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
        at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
        at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
        at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
        at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
        at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
        at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)
        at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at 
org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
        at $Proxy0.invoke(Unknown Source)
        at 
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
        at 
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)


> Interestingly on Windows I get these failures (maybe the first is
> caused by the firewall, there were some windows firewall prompts.):
>
> Failed tests:   testHTTPPull(com.aragost.javahg.commands.PullCommandTest)
>  testCloneRequiringAuth(com.aragost.javahg.internals.ServerTest)
>
> Tests in error:
>  testCloneWithLargefileExtension(com.aragost.javahg.RepositoryTest):
> Failed to delete:
> C:\Users\john.peberdy\AppData\Local\Temp\1337733089915-0
>
> Tests run: 195, Failures: 2, Errors: 1, Skipped: 6

The latter one I think is because Windows is stricter by not letting
you delete files that you have open. I guess it is because a
repository hasn't been closed or something like that.


/Jan


>
>
>>
>> Try a 'mvn clean test' (on Linux), I guess it will fail. The output
>> from the command is attached.
>>
>> Early in the test it fails to obtain a lock on the server, I believe
>> that it much later causes the test to fail (search for the line:
>> "SEVERE: Did not obtain server lock after 120 seconds." (side note:
>> The line above says '10000 seconds', it should be '10 seconds')).
>
> I pushed a fix for this off by 1000 error
>
>>
>> On the build server it started to fail with the push of:
>>
>> Changeset 701:5deb010bb1a6 by John Peberdy :
>> AbstractCommand: support canceling before a command is started
>> Fixes intermittent testCancel() failure
>>
>> Cheers,
>> Jan
>>
>> PS: We should really get the build server public available so you
>> would see this when it happens.
>
>
>
>
>
>>
>> [INFO] Scanning for projects...
>> [INFO]
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Building JavaHg Core 0.4-SNAPSHOT
>> [INFO] ------------------------------------------------------------------------
>> [INFO]
>> [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ javahg ---
>> [INFO] Deleting /home/jan/projects/javahg-integration/javahg/target
>> [INFO]
>> [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ javahg ---
>> [INFO]
>> [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ 
javahg ---
>> [debug] execute contextualize
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 4 resources
>> [INFO]
>> [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ javahg ---
>> [INFO] Compiling 129 source files to 
/home/jan/projects/javahg-integration/javahg/target/classes
>> [INFO]
>> [INFO] --- maven-resources-plugin:2.5:testResources 
(default-testResources) @ javahg ---
>> [debug] execute contextualize
>> [INFO] Using 'UTF-8' encoding to copy filtered resources.
>> [INFO] Copying 6 resources
>> [INFO]
>> [INFO] --- maven-compiler-plugin:2.3.2:testCompile 
(default-testCompile) @ javahg ---
>> [INFO] Compiling 53 source files to 
/home/jan/projects/javahg-integration/javahg/target/test-classes
>> [INFO]
>> [INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ javahg ---
>> [INFO] Surefire report directory: 
/home/jan/projects/javahg-integration/javahg/target/surefire-reports
>>
>> -------------------------------------------------------
>>  T E S T S
>> -------------------------------------------------------
>> Running com.aragost.javahg.OverlayRepositoryTest
>> JavaHg test using Mercurial version: 2.1+20120212, binary: hg
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.606 sec
>> Running com.aragost.javahg.internals.HgInputStreamTest
>> Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
>> Running com.aragost.javahg.internals.JavaHgMercurialExtensionTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.078 sec
>> Running com.aragost.javahg.internals.JavaHgTestMercurialExtensionTest
>> May 21, 2012 12:22:39 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: foo
>>
>> May 21, 2012 12:22:39 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:39 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: 
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> May 21, 2012 12:22:39 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:40 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:22:40 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:40 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:22:40 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:22:40 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:41 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:22:41 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:22:41 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:22:42 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:43 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:22:43 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:22:43 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:43 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:22:44 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:22:44 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:44 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:22:44 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:22:44 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:45 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:22:45 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:22:45 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:45 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:22:46 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 0
>> May 21, 2012 12:22:46 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:22:46 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:22:47 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:22:56 AM com.aragost.javahg.log.Logger warn
>> WARNING: Waited 10000 seconds for server lock without obtaining it
>> May 21, 2012 12:24:46 AM com.aragost.javahg.log.Logger error
>> SEVERE: Did not obtain server lock after 120 seconds.
>> May 21, 2012 12:24:47 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:24:47 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:24:47 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: ** unknown exception encountered, please
report by visiting
>> **  http://mercurial.selenic.com/wiki/BugTracker
>> ** Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48) [GCC 4.4.5]
>> ** Mercurial Distributed SCM (version 2.1+20120212)
>> ** Extensions loaded: javahg, javahg-test
>> Traceback (most recent call last):
>>  File "/usr/local/bin/hg", line 38, in <module>
>>    mercurial.dispatch.run()
>>  File "/opt/hg/mercurial/dispatch.py", line 27, in run
>>    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
>>  File "/opt/hg/mercurial/dispatch.py", line 64, in dispatch
>>    return _runcatch(req)
>>  File "/opt/hg/mercurial/dispatch.py", line 87, in _runcatch
>>    return _dispatch(req)
>>  File "/opt/hg/mercurial/dispatch.py", line 683, in _dispatch
>>    cmdpats, cmdoptions)
>>  File "/opt/hg/mercurial/dispatch.py", line 465, in runcommand
>>    ret = _runcommand(ui, options, cmd, d)
>>  File "/opt/hg/mercurial/dispatch.py", line 737, in _runcommand
>>    return checkargs()
>>  File "/opt/hg/mercurial/dispatch.py", line 691, in checkargs
>>    retu
>> JavaHg: Server process terminated premature with: 1
>> May 21, 2012 12:24:47 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> JavaHg: Server process terminated premature with: 200
>> May 21, 2012 12:24:47 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> Tests run: 13, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
128.632 sec <<< FAILURE!
>> Running com.aragost.javahg.internals.UtilsTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
>> Running com.aragost.javahg.internals.PatternReplacingOutputStreamTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec
>> Running com.aragost.javahg.internals.ServerTest
>> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger warn
>> WARNING: Exception trying to read stderr: Stream Closed
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger warn
>> WARNING: Trying to stop already stopped server
>> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger error
>> SEVERE: Stopping cmdserver via finalize. Please explicit stop server.
>> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger error
>> SEVERE: Stopping cmdserver via finalize. Please explicit stop server.
>> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger error
>> SEVERE: Stopping cmdserver via finalize. Please explicit stop server.
>> May 21, 2012 12:24:48 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> May 21, 2012 12:24:49 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: *
>> May 21, 2012 12:24:49 AM com.aragost.javahg.log.Logger warn
>> WARNING: errorReaderThread could not read stderr. Most likely the 
Mercurial server process is dead.
>> Tests run: 9, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 1.702 sec
>> Running com.aragost.javahg.DateTimeTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
>> Running com.aragost.javahg.commands.RollbackCommandTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.118 sec
>> Running com.aragost.javahg.commands.MergeCommandTest
>> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.826 sec
>> Running com.aragost.javahg.commands.ParentsCommandTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.166 sec
>> Running com.aragost.javahg.commands.PushCommandTest
>> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.805 sec
>> Running com.aragost.javahg.commands.BookmarksCommandTest
>> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.596 sec
>> Running com.aragost.javahg.commands.HeadsCommandTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.131 sec
>> Running com.aragost.javahg.commands.VersionCommandTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 sec
>> Running com.aragost.javahg.commands.RemoveCommandTest
>> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.5 sec
>> Running com.aragost.javahg.commands.UpdateCommandTest
>> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.671 sec
>> Running com.aragost.javahg.commands.OutgoingCommandTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.371 sec
>> Running com.aragost.javahg.commands.IncomingCommandTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.392 sec
>> Running com.aragost.javahg.commands.ResolveCommandTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.158 sec
>> Running com.aragost.javahg.commands.DiffCommandTest
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.31 sec
>> Running com.aragost.javahg.commands.BranchesTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.269 sec
>> Running com.aragost.javahg.commands.ExportCommandTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.12 sec
>> Running com.aragost.javahg.commands.GraftCommandTest
>> Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.665 sec
>> Running com.aragost.javahg.commands.LocateCommandTest
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.407 sec
>> Running com.aragost.javahg.commands.StatusCommandTest
>> Tests run: 7, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 0.526 sec
>> Running com.aragost.javahg.commands.PullCommandTest
>> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.221 sec
>> Running com.aragost.javahg.commands.BranchCommandTest
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.348 sec
>> Running com.aragost.javahg.commands.ManifestCommandTest
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.352 sec
>> Running com.aragost.javahg.commands.AbstractCommandTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.243 sec
>> Running com.aragost.javahg.commands.PhaseCommandTest
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.353 sec
>> Running com.aragost.javahg.commands.TagsCommandTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.277 sec
>> Running com.aragost.javahg.commands.CopyCommandTest
>> Tests run: 17, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.218 sec
>> Running com.aragost.javahg.commands.AddCommandTest
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.272 sec
>> Running com.aragost.javahg.commands.LogCommandTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.277 sec
>> Running com.aragost.javahg.commands.BackoutCommandTest
>> Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.94 sec
>> Running com.aragost.javahg.commands.BisectCommandTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.179 sec
>> Running com.aragost.javahg.commands.AnnotateCommandTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.227 sec
>> Running com.aragost.javahg.commands.CatCommandTest
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.317 sec
>> Running com.aragost.javahg.commands.CommitCommandTest
>> Tests run: 5, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.424 sec
>> Running com.aragost.javahg.commands.RenameCommandTest
>> Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.098 sec
>> Running com.aragost.javahg.commands.RevertCommandTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.174 sec
>> Running com.aragost.javahg.log.LoggerTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
>> Running com.aragost.javahg.RepositoryTest
>> May 21, 2012 12:25:05 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:05 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:05 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:05 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:06 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:07 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:07 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:07 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:07 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> May 21, 2012 12:25:07 AM com.aragost.javahg.log.Logger error
>> SEVERE: stderr from Mercurial: hg: parse error at 
/tmp/1337552555614-0/test-hgrc-invalid:1: syntax error
>>
>> JavaHg: Server process terminated premature with: 255
>> Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.465 sec
>> Running com.aragost.javahg.ChangesetTest
>> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753 sec
>> Running com.aragost.javahg.HgVersionTest
>> Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
>> Running com.aragost.javahg.ExtensionTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.152 sec
>> Running com.aragost.javahg.WorkingCopyTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.152 sec
>> Running com.aragost.javahg.test.StressTest
>> May 21, 2012 12:25:09 AM com.aragost.javahg.log.Logger error
>> SEVERE: Stopping cmdserver via finalize. Please explicit stop server.
>> Cache stats: CacheStats{hitCount=212, missCount=546, 
loadSuccessCount=546, loadExceptionCount=0, totalLoadTime=6289326, 
evictionCount=372}
>> Cache stats: CacheStats{hitCount=250, missCount=375, 
loadSuccessCount=375, loadExceptionCount=0, totalLoadTime=3041864, 
evictionCount=0}
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.707 sec
>>
>> Results :
>>
>> Tests in error:
>> 
 testCancel(com.aragost.javahg.internals.JavaHgTestMercurialExtensionTest):
Did not obtain server lock after 120 seconds.
>>
>> Tests run: 194, Failures: 0, Errors: 1, Skipped: 6
>>
>> [INFO] ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 2:52.553s
>> [INFO] Finished at: Mon May 21 00:25:24 CEST 2012
>> [INFO] Final Memory: 24M/217M
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) 
on project javahg: There are test failures.
>> [ERROR]
>> [ERROR] Please refer to 
/home/jan/projects/javahg-integration/javahg/target/surefire-reports for 
the individual test results.
>> [ERROR] -> [Help 1]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with 
the -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions, 
please read the following articles:
>> [ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>
>
>
> --
> John Peberdy

Re: [javahg] Re: MercurialEclipse snapshot using JavaHg

From:
John Peberdy
Date:
2012-05-23 @ 15:13
On Tue, May 22, 2012 at 11:39 PM, Jan Sorensen <sorensenjan@gmail.com> wrote:
> On Wed, May 23, 2012 at 2:51 AM, John Peberdy <johnpeb@gmail.com> wrote:
> [...]
>
> It is OpenJDK 1.6 and Maven 3.0.3. I must admit I have only tried it
> on the build server, I don't have a setup on any other linux box.
>
> Stacktrace:
> Tests run: 13, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 128.781 sec <<< FAILURE!
> testCancel(com.aragost.javahg.internals.JavaHgTestMercurialExtensionTest)

I was able to reproduce it 1/3 of the time if i reduced the 100ms
timeout to 1ms. I pushed a fix but I'm still not 100% happy with it.
Probably need to synchronize access to the command's server and state
fields together. Let me know if it's still failing.