Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335196

Summary: please rename eclipse-JUnit-windows job to JUnit-win, please rename hudson workspace
Product: Community Reporter: Kim Moir <kim.moir>
Component: CI-JenkinsAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 295393, 334904    

Description Kim Moir CLA 2011-01-24 10:09:58 EST
There is a 260 character file limitation on creating files on Windows.  Currently, on our windows test machine in IBM, the tests are created in c:\buildtest\N20110124-0800 and they work fine. But on Hudson, the workspace name is longer which means we can't create some of the files we need for the test.

     [exec] checkdir error:  cannot create c:/Users/HUDSONBUILD/hudson/workspace/eclipse-JUnit-windows/ws/2011-01-23_21-18-53/eclipse-testing/test-eclipse/eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/SDKProfile.profile/.data/org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions
     [exec]                  No such file or directory
     [exec]                  unable to process eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/SDKProfile.profile/.data/org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions/jvmargs.

To avoid this problem, I'd like to rename the eclipse-JUnit-windows job to JUnit-win.  I can run a test build after you rename the job to see if this fixes the problem.  

If it doesn't, we may need to change the directory that Hudson is installed in on the win7 machine from c:/Users/HUDSONBUILD/hudson/ to something more concise.
Comment 1 Denis Roy CLA 2011-01-24 10:13:53 EST
> There is a 260 character file limitation on creating files on Windows.

1988 called, and it wants its lame 8-bit limitations back.
Comment 2 Kim Moir CLA 2011-01-24 10:23:55 EST
Denis: I know. I can't believe this is still on issue, even on Windows 7.  But we need to run tests on that platform so what can we do?
Comment 3 Denis Roy CLA 2011-01-24 10:44:35 EST
C:\HUDSON~1\HUDSON\WORKSP~1\ECLIPS~1\2011-0~1\ORG.EC~1\ORG.EC~1\ORG.EC~1\...

Hey, it worked for Windows 95  ;)
Comment 4 Eclipse Webmaster CLA 2011-01-24 10:48:51 EST
Ok, I've renamed the job.  Let me know if it needs to be re-located.

-M.
Comment 5 Kim Moir CLA 2011-01-26 10:05:27 EST
So, renaming the job fixed the p2 tests, but there are even larger filenames being created in other test suites. Could you please rename the directory where hudson is installed to a short path, for instance "c:/h" or similar instead of c:/Users/HUDSONBUILD/workspace and restart hudson on this machine. Yes, I realize Windows is very very lame :-(
Comment 6 Kim Moir CLA 2011-02-01 11:49:08 EST
Could you please relocate the job to something like "c:/h"?
Comment 7 Eclipse Webmaster CLA 2011-02-01 16:35:55 EST
Ok, I moved it to c:\hb .

-M.
Comment 8 Kim Moir CLA 2011-02-01 16:39:26 EST
thanks :-)
Comment 9 Kim Moir CLA 2011-02-07 11:58:46 EST
I wasn't able to run a build to test this until the weekend due to the disk space issues last week.  It seems like the workspace is still defined as c:\Users\HUDSONBUILD\hudson\workspace\JUnit-win - any idea why?

c:\Users\HUDSONBUILD\hudson\workspace\JUnit-win>echo WORKSPACE c:\Users\HUDSONBUILD\hudson\workspace\JUnit-win 
WORKSPACE c:\Users\HUDSONBUILD\hudson\workspace\JUnit-win


https://hudson.eclipse.org/hudson/view/Eclipse%20and%20Equinox/job/JUnit-win/165/console
Comment 10 Denis Roy CLA 2011-02-07 15:14:51 EST
I'll have to see if it updated in AUTOEXEC.BAT or something  =)
Comment 11 Denis Roy CLA 2011-02-07 15:28:51 EST
Hudson was still configured to use the old path.  I've changed it to c:\hb -- let me know how that works out.
Comment 12 Kim Moir CLA 2011-02-07 15:39:56 EST
Thanks, I'm running a test build now.
Comment 13 Kim Moir CLA 2011-02-23 21:32:42 EST
Thanks this is working fine.