[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [tycho-dev] surefire plug-in "chmod" issue on Solaris 10
|
we would need the full stacktrace (using -X)
and better yet a small standalone example to demonstrate the issue and steps to reproduce.
from the log snippet looks to me that this is happening in [1]
We are using the plexus unarchiver component to unpack bundle jars with BundleShape: dir.
AFAIK the plexus unarchiver tries to preserve/restore unix file permissions.
So this may be a plexus unarchiver issue.
I'm just guessing but if it does this by forking a shell process with chmod, it may be that the arguments of this forked process got mangled by the special characters.
file name "versiontest-1@2^3_1.noarch.rpm"
and error
"/bin/sh: 3_1.noarch.rpm: not found"
seem to indicate the arguments are split at "^".
Regards,
Jan
[1] http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/sisu-equinox/sisu-equinox-launching/src/main/java/org/eclipse/sisu/equinox/launching/internal/DefaultEquinoxInstallationFactory.java#n173
From: tycho-dev-bounces@xxxxxxxxxxx [mailto:tycho-dev-bounces@xxxxxxxxxxx] On Behalf Of Haigermoser, Helmut
Sent: Dienstag, 19. November 2013 16:05
To: tycho-dev@xxxxxxxxxxx
Subject: [tycho-dev] surefire plug-in "chmod" issue on Solaris 10
Hi All ☺
I’m using tycho for some time as our plug-in build and release mechanism, let me start by thinking you guys for a great release tool! ☺
Recently though I’m running into issues on Solaris. Looks like the surefire plug-in is running into “chmod” issues while trying to extract a plug-in,
the exact same build works fine on windows and Solaris, which makes me classify this as an OS issue.
One of my tests had me swich from 0.17 to 0.19, but that did not change the result.
The file causing trouble contains special characters, “versiontest-1@2^3_1.noarch.rpm”, the “^” character seems to cause the ruckus.
A simple “chmod” using the Solaris version works fine, so I assume tycho uses some java reimplementation?
Here is the details:
[INFO] --- tycho-surefire-plugin:0.17.0:test (default-test) @ tests.update ---
[WARNING] -------------------------------
[WARNING] Standard error:
[WARNING] -------------------------------
[WARNING]
[WARNING] -------------------------------
[WARNING] Standard output:
[WARNING] -------------------------------
[WARNING] /bin/sh: 3_1.noarch.rpm: not found
chmod: WARNING: can't access /path/versiontest-1@2
[WARNING] -------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] testserver ............. SUCCESS [14.412s]
[INFO] tests .................. SUCCESS [1:21:04.527s]
[INFO] tests.update ........... FAILURE [11:58.042s]
[INFO] tests.regression ....... SKIPPED
[INFO] ui.tests ............... SKIPPED
[INFO] target ................. SKIPPED
[INFO] aggregator.tests ....... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:33:55.620s
[INFO] Finished at: Tue Nov 12 01:53:57 CET 2013
[INFO] Final Memory: 21M/82M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.17.0:test (default-test) on project tests.update: Execution default-test of goal org.eclipse.tycho:tycho-surefire-plugin:0.17.0:test failed: Unable to unpack jar /path/ tests-1.0.0-SNAPSHOT.jar: chmod exit code was: 1 -> [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/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf : tests.update
Build step 'Invoke top-level Maven targets' marked build as failure
TIA,
Ciao, hh