Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 378784 - can wget and unzip be installed on the windows test machine and the mac test machine?
Summary: can wget and unzip be installed on the windows test machine and the mac test ...
Status: VERIFIED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Servers (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Eclipse Webmaster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 377365
  Show dependency tree
 
Reported: 2012-05-08 03:03 EDT by David Williams CLA
Modified: 2012-05-10 16:52 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2012-05-08 03:03:37 EDT
This request is related to the issues in bug 377670. 

I know there are plenty of choices for "wget" and "unzip" for windows (I use cygwin) but do not know about the mac. If you know of alternatives, or built in methods, that would be fine. (but, would be kind of nice to do it exactly same way on all machines). 

What'd I'd like to do, to "bootstrap" a testing run, is issue the command: 


wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip  && unzip master.zip -d org.eclipse.releng.eclipsebuilder 

And then things would be "just like before", but no git repository created. 

I guess if nothing is handy for the mac, I could continue to do it and linux as I have been (removing whole repo, and re-cloning) 

This is the response I get fro windows machine: 

c:\hb\workspace\JUnit-win>wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip   && unzip master.zip -d org.eclipse.releng.eclipsebuilder 
'wget' is not recognized as an internal or external command,
operable program or batch file.

mac was similar: 

Building remotely on mac-tests
[eclipse-JUnit-mac] $ /bin/sh -xe /var/folders/ae/ae-8Kon+EhOvil7-mjEmok++piA/-Tmp-/hudson7780816596583274315.sh
+ wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip
/var/folders/ae/ae-8Kon+EhOvil7-mjEmok++piA/-Tmp-/hudson7780816596583274315.sh: line 2: wget: command not found
Recording test results

But, again, windows is the important one.
Comment 1 Eclipse Webmaster CLA 2012-05-09 13:26:36 EDT
I've installed wget on the Windows slave(Zip was already installed).  I also build it for the Mac slave, so you should be all set.

-M.
Comment 2 Denis Roy CLA 2012-05-09 13:35:51 EDT
If we keep installing all these OSS tools on the Windows slave, maybe, just maybe, will it feel like a Linux slave?
Comment 3 David Williams CLA 2012-05-09 14:49:46 EDT
Looks like it didn't "take" ... was it added to the path?
Comment 4 David Williams CLA 2012-05-09 14:50:18 EDT
Meant to give error. 

c:\hb\workspace\JUnit-win2>wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip   && unzip master.zip -d org.eclipse.releng.eclipsebuilder 
'wget' is not recognized as an internal or external command,
operable program or batch file.
Comment 5 Eclipse Webmaster CLA 2012-05-09 15:12:12 EDT
As the hudson user in a command window:

C:\Users\HUDSONBUILD>wget
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files\GnuWin32/etc/wgetrc
wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

C:\Users\HUDSONBUILD>


-M.
Comment 6 Denis Roy CLA 2012-05-09 15:13:01 EDT
Probably need to restart the Hudson slave for the new environment to take effect.
Comment 7 Eclipse Webmaster CLA 2012-05-09 15:13:40 EDT
I just did that.

-M.
Comment 8 David Williams CLA 2012-05-09 15:15:12 EDT
You may be right, about the restart. Just so Hudson "knows" about its environmnet. 

I got similar error on the Mac: 

[eclipse-JUnit-mac2] $ /bin/sh -xe /var/folders/ae/ae-8Kon+EhOvil7-mjEmok++piA/-Tmp-/hudson2427708226802150861.sh
+ wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip
/var/folders/ae/ae-8Kon+EhOvil7-mjEmok++piA/-Tmp-/hudson2427708226802150861.sh: line 2: wget: command not found
Comment 9 David Williams CLA 2012-05-09 15:17:16 EDT
Yep, working on windows now .. I'm so excited ... using git without using git :) 

c:\hb\workspace\JUnit-win2>wget http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip   && unzip master.zip -d org.eclipse.releng.eclipsebuilder 
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files\GnuWin32/etc/wgetrc
--2012-05-09 15:15:49--  http://git.eclipse.org/c/platform/eclipse.platform.releng.eclipsebuilder.git/snapshot/master.zip
Resolving proxy.eclipse.org... 206.191.52.57
Connecting to proxy.eclipse.org|206.191.52.57|:9898... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [application/x-zip]
Saving to: `master.zip'

     0K .......... .......... .......... .......... .......... 4.09M
    50K .......... .......... .......... .......... ..........  236M
   100K .......... .......... .......... .......... .......... 29.0M
   150K .......... .......... .......... .......... .......... 6.81M
   200K .......... .......... .......... .......... .......... 7.48M
   250K .......... .......... .......... .......... .......... 7.13M
   300K .......... .......... .......... .......... .......... 6.99M
   350K .......... .......... .......... .......... .......... 7.09M
   400K .......... .......... .......... .......... .......... 7.57M
   450K .......... .......... ..........                       7.48M=0.06s

2012-05-09 15:15:49 (8.00 MB/s) - `master.zip' saved [491704]
Comment 10 David Williams CLA 2012-05-09 19:15:29 EDT
I still get "command not found" on the mac, so suspect Hudson needs to be restarted there, as well.
Comment 11 Eclipse Webmaster CLA 2012-05-10 14:28:11 EDT
Odd, I restarted the slave just before the windows slave restart.  But it looks like it wasn't correctly updating it's path info.  

-M.
Comment 12 David Williams CLA 2012-05-10 16:52:02 EDT
(In reply to comment #11)
> Odd, I restarted the slave just before the windows slave restart.  But it looks
> like it wasn't correctly updating it's path info.  
> 
> -M.

Confirmed it works now. Much thanks. I like this solution a lot. 


(In reply to comment #2)
> If we keep installing all these OSS tools on the Windows slave, maybe, just
> maybe, will it feel like a Linux slave?

Well ... rsync comes to mind ... but can't say I really need it right now ... just had to refresh my memory with "xcopy" which will work for now.