| Summary: | Build failures on Eclipse Hudson with delete files from /tmp | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ralf Sternberg <rsternberg> |
| Component: | Releng | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | Flags: | ivan:
review+
|
| Version: | 1.5 | ||
| Target Milestone: | 1.5 RC2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Ralf Sternberg
I guess I know what's going on: now that we have two runtime builds (1.5 and 2.0) started at the same time and thus running in parallel, they accessing the same temp directory. One build is deleting the other build's resources! As a workaround, I've scheduled the 1.5 builds to run one hour later than the 2.0 builds. We should, however, make the test fixture more stable. /tmp/testapp doesn't seem to be specific enough for a build server where all Eclipse projects are built. Fixed with commit bbb9c01db2a57940aeab89e84a1a763e67c4400e. The solution is to create a separate unique temp directory for every run of the test suite. The directly is created on class loading time of the Fixture. This may not be ideal, but was the simplest possible change. We may consider to replace the TEMP_DIR constant with a getTempDir() method in order to delay the creation of the temp dir until it is actually needed. I'd suggest to pickup the change in the 1.5 stream to avoid those test failures in the future. (In reply to comment #2) > I'd suggest to pickup the change in the 1.5 stream to avoid those test failures > in the future. +1 Looks good for me. Fixed in 1.5 by commit f01c29145c2bbd0ba324deec102e814f9f56758b |