Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327875 - Builds fail on slave1 not on slave2
Summary: Builds fail on slave1 not on slave2
Status: CLOSED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: CI-Jenkins (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eclipse Webmaster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-15 06:52 EDT by Steve Powell CLA
Modified: 2010-10-15 12:17 EDT (History)
1 user (show)

See Also:


Attachments
Diff between diagnostics on slave1 and slave2 (11.27 KB, application/octet-stream)
2010-10-15 09:46 EDT, Steve Powell CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Powell CLA 2010-10-15 06:52:48 EDT
E.g. Virgo.test.snapshot runs happily on slave2 but gives this error on slave1:

BUILD FAILED
/opt/users/hudsonbuild/workspace/virgo.test.snapshot/virgo-build/multi-bundle/artifact.xml:57: The following error occurred while executing this line:
/opt/users/hudsonbuild/workspace/virgo.test.snapshot/virgo-build/multi-bundle/common.xml:138: The following error occurred while executing this line:
/opt/users/hudsonbuild/workspace/virgo.test.snapshot/virgo-build/common/common.xml:150: Execute failed: java.io.IOException: Cannot run program "ant" (in directory "/opt/users/hudsonbuild/workspace/virgo.test.snapshot/org.eclipse.virgo.test.framework"): java.io.IOException: error=2, No such file or directory

which implies that the command "ant" fails to run.

This is probably because it is not in the path (normal ant commands are issued by hudson steps using an explicit path to the executable -- this is a command being executed explicitly).

Please check the set-up for slave1 and slave2 -- I expect the paths to be constructed similarly.  I am running ant 1.8.1 explicitly in this job.

Currently, the job disposition is "build2" which means I don't care which of slave1/2 it runs on.
Comment 1 Steve Powell CLA 2010-10-15 09:46:06 EDT
Created attachment 180955 [details]
Diff between diagnostics on slave1 and slave2

The diff file shows, among other things, that the PATH environment variables and the java.library.path properties are different for the two slaves -- whereas the job spec is identical.

The PATH discrepancy accounts for this build problem.
Please can we match the execution environments as much as possible?
Comment 2 Eclipse Webmaster CLA 2010-10-15 10:46:53 EDT
I've tweaked the path and run your test build without issue on slave1.

-M.
Comment 3 Steve Powell CLA 2010-10-15 12:17:18 EDT
Thank you 

You appear to have modified the virgo.test.snapshot build configuration.

I shall be adjusting them all (virgo.*) back to build2.