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

Bug 447988

Summary: HIPP for Trace Compass
Product: Community Reporter: Alexandre Montplaisir <alexmonthy>
Component: CI-JenkinsAssignee: CI Admin Inbox <ci.admin-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: denis.roy, malaperle, thanh.ha, webmaster
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Alexandre Montplaisir CLA 2014-10-20 15:38:58 EDT
Hi, this is to request a HIPP instance for Trace Compass.

Is it possible to have slaves for Windows, Mac and Linux?

Thanks!
Comment 1 Denis Roy CLA 2014-10-20 16:53:08 EDT
Currently, Windows and Mac job must run on the Shared instance (https://hudson.eclipse.org/hudson).

Do you want us to create jobs for you on the shared instance, instead of having your own HIPP?
Comment 2 Alexandre Montplaisir CLA 2014-10-20 16:58:02 EDT
Oh ok, in this case we'd prefer having only Linux on our own HIPP then.
Comment 3 Denis Roy CLA 2014-10-21 15:35:27 EDT
Both solutions are not mutually exclusive.  We can set up a HIPP for your project for Linux builds/tests, and create a few jobs for your project on the shared instance.  Most projects that need to do UI testing on Windows and Mac do this.  We don't recoommend using the Windows and Mac slaves for general builds since those resources are limited.
Comment 4 Alexandre Montplaisir CLA 2014-10-21 15:52:50 EDT
Ok, that's a good idea then. We'll take a HIPP for Linux builds, and Windows/Mac jobs on the shared instance.
Comment 5 Denis Roy CLA 2014-10-23 13:48:33 EDT
Trace Compass HIPP is now setup at https://hudson.eclipse.org/tracecompass/

Committers should now be able to login and create jobs. Please note that unlike the shared instance you will need to login with your _email_ address as your username.

If you require additional plugins feel free to reopen this bug and list them.

Optionally, we can also add the Trace Compass HIPP user to the project group which would allow the HIPP user to have write access anywhere the project group has access to including downloads area and any git repositories. This could be useful if you'd like to use Hudson for automated build promotion but keep in mind there is some risk in giving Hudson more permissions than it needs. If you'd like to to enable this please reopen and let us know.
Comment 6 Denis Roy CLA 2014-10-23 13:49:35 EDT
> Windows/Mac jobs on the shared instance.

I think all we need is a name for those jobs.  HIPP uses your committer email address for authentication, whereas the shared instance uses your Committer ID.
Comment 7 Alexandre Montplaisir CLA 2014-10-23 13:58:33 EDT
Awesome, thanks!

> Optionally, we can also add the Trace Compass HIPP user to the project group

Yes, can you do this please, we will eventually setup a job to publish a nightly update site.

>> Windows/Mac jobs on the shared instance.
> I think all we need is a name for those jobs.

How about
tracecompass-windows-nightly
tracecompass-mac-nightly
Comment 8 Alexandre Montplaisir CLA 2014-10-23 14:05:27 EDT
Also, can you please install the Gerrit Trigger plugin on the HIPP. I'm not sure what name it is exactly, but Linux Tools must have it, which allowed to set up this job: https://hudson.eclipse.org/linuxtools/job/linuxtools-gerrit/
Comment 9 Denis Roy CLA 2014-10-24 13:59:02 EDT
I've installed the Gerrit Trigger plugin and I've configured it, but for some reason it reports that Gerrit is down/unreachable.  I'm wondering if it's because it doesn't know what to check?
Comment 10 Denis Roy CLA 2014-10-24 14:17:44 EDT
On the shared instance, I've created:

https://hudson.eclipse.org/hudson/job/tracecompass-windows-nightly

https://hudson.eclipse.org/hudson/job/tracecompass-mac-nightly/

Don't forget: on the shared instance, please use your committer ID to log in, not your email address (same password).
Comment 11 Alexandre Montplaisir CLA 2014-10-24 16:56:05 EDT
I have restarted the HIPP instance (in the Committer Tools), now it doesn't seem to display the error anymore. The "Test Connection" button on the plugin's page reports "Success", whatever it checks for.

I have created a new job for Gerrit patches, and the trigger seems to work fine: a build starts whenever a patch is posted on Gerrit! Here's a successful build: https://hudson.eclipse.org/tracecompass/job/tracecompass-gerrit/7/

However it didn't post any comment to Gerrit (like the Build Started, Build Success messages, or the corresponding +/- 1). Is there anything, like special permissions, that need to be set on the Gerrit side?
Comment 12 Thanh Ha CLA 2014-10-25 02:04:24 EDT
(In reply to Alexandre Montplaisir from comment #11)
> I have restarted the HIPP instance (in the Committer Tools), now it doesn't
> seem to display the error anymore. The "Test Connection" button on the
> plugin's page reports "Success", whatever it checks for.
> 
> I have created a new job for Gerrit patches, and the trigger seems to work
> fine: a build starts whenever a patch is posted on Gerrit! Here's a
> successful build:
> https://hudson.eclipse.org/tracecompass/job/tracecompass-gerrit/7/
> 
> However it didn't post any comment to Gerrit (like the Build Started, Build
> Success messages, or the corresponding +/- 1). Is there anything, like
> special permissions, that need to be set on the Gerrit side?

Sounds like a similar issue to bug 446199 comment 8.
Comment 13 Alexandre Montplaisir CLA 2014-10-26 09:25:24 EDT
> change the API from using "approve" to "review".

That worked! Thanks a lot for the tip!
Comment 14 Marc-André Laperle CLA 2014-10-28 16:39:19 EDT
Would it be possible to install the Sonar plugin on the HIPP as well? Thank you!
Comment 15 Marc-André Laperle CLA 2014-11-04 22:38:30 EST
(In reply to Marc-Andre Laperle from comment #14)
> Would it be possible to install the Sonar plugin on the HIPP as well? Thank
> you!

Ping. Denis? ;)
Comment 16 Eclipse Webmaster CLA 2014-11-05 14:47:06 EST
I've added the sonar plugin and it should be all set.

-M.
Comment 17 Marc-André Laperle CLA 2014-11-05 16:17:27 EST
(In reply to Eclipse Webmaster from comment #16)
> I've added the sonar plugin and it should be all set.

Thank you! I tried a build and got this error:
Access denied for user 'sonar_rw'@'172.25.102.105' (using password: YES)

https://hudson.eclipse.org/tracecompass/job/tracecompass-master-sonar/2/consoleFull

Perhaps the password is mistyped?
Comment 18 Eclipse Webmaster CLA 2014-11-06 10:39:39 EST
I thought for sure I'd got the right one, but I've updated it just in case there was a cut and paste error.

-M.
Comment 19 Marc-André Laperle CLA 2014-11-06 14:20:51 EST
(In reply to Eclipse Webmaster from comment #18)
> I thought for sure I'd got the right one, but I've updated it just in case
> there was a cut and paste error.
> 
> -M.

It works now, thanks!
Comment 20 Denis Roy CLA 2014-12-10 16:30:29 EST
Closing.