[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-dev] intermittent -Pparallel test failures
|
haven't seen this one yet...
Looking at the code [1] it looks to me like this is yet another place where we need to lock before accessing the feature jar in the local repo.
(Accessing a zip file even if just reading it requires locking to be multi-process safe IIRC)
I will fix it. Same problem also in ProductExportMojo#unzipDirectory().
I assume that we may see other multi-process problems from time to time when concurrency happens to dig up the problem and we will have to fix them one by one.
Regards,
Jan
[1] http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-p2/tycho-p2-publisher-plugin/src/main/java/org/eclipse/tycho/plugins/p2/publisher/PublishProductMojo.java#n233
-----Original Message-----
From: tycho-dev-bounces@xxxxxxxxxxx [mailto:tycho-dev-bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
Sent: Donnerstag, 15. Dezember 2011 02:41
To: Tycho developers list
Subject: [tycho-dev] intermittent -Pparallel test failures
Does anyone else see exceptions like below when running Tycho ITs with
-Pparallel?
[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-p2-publisher-plugin:0.14.0-SNAPSHOT:publish-products
(default-publish-products) on project product.crosstalk: Unable to unzip
the eqiuinox executable feature: Error while expanding
/private/tmp/tycho-bootstrap.localrepo/p2/org/eclipse/update/feature/org.eclipse.equinox.executable/3.3.101.R34x_v20081125-7H-ELfE8hXnkE15Wh9Tnyu/org.eclipse.equinox.executable-3.3.101.R34x_v20081125-7H-ELfE8hXnkE15Wh9Tnyu.jar:
Negative seek offset -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal
org.eclipse.tycho:tycho-p2-publisher-plugin:0.14.0-SNAPSHOT:publish-products
(default-publish-products) on project product.crosstalk: Unable to unzip
the eqiuinox executable feature
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:140)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to unzip
the eqiuinox executable feature
at
org.eclipse.tycho.plugins.p2.publisher.PublishProductMojo.getEquinoxExecutableFeature(PublishProductMojo.java:253)
at
org.eclipse.tycho.plugins.p2.publisher.PublishProductMojo.publishContent(PublishProductMojo.java:67)
at
org.eclipse.tycho.plugins.p2.publisher.AbstractPublishMojo.execute(AbstractPublishMojo.java:40)
at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:195)
... 19 more
Caused by: org.codehaus.plexus.archiver.ArchiverException: Error while
expanding
/private/tmp/tycho-bootstrap.localrepo/p2/org/eclipse/update/feature/org.eclipse.equinox.executable/3.3.101.R34x_v20081125-7H-ELfE8hXnkE15Wh9Tnyu/org.eclipse.equinox.executable-3.3.101.R34x_v20081125-7H-ELfE8hXnkE15Wh9Tnyu.jar
at
org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:155)
at
org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:119)
at
org.eclipse.tycho.plugins.p2.publisher.PublishProductMojo.getEquinoxExecutableFeature(PublishProductMojo.java:250)
... 23 more
Caused by: java.io.IOException: Negative seek offset
at java.io.RandomAccessFile.seek(Native Method)
at
org.codehaus.plexus.archiver.zip.ZipFile.positionAtCentralDirectory(ZipFile.java:368)
at
org.codehaus.plexus.archiver.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:262)
at org.codehaus.plexus.archiver.zip.ZipFile.<init>(ZipFile.java:150)
at
org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.execute(AbstractZipUnArchiver.java:137)
... 25 more
--
Regards,
Igor
_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev