Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 426289 - Migrate vjet-juno-sonar job to HIPP
Summary: Migrate vjet-juno-sonar job to HIPP
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VJET (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Justin Early CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 426859
Blocks: 414773
  Show dependency tree
 
Reported: 2014-01-21 13:32 EST by Thanh Ha CLA
Modified: 2017-04-11 15:12 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thanh Ha CLA 2014-01-21 13:32:01 EST
Per bug 414773 we are shutting down the Hudson Sandbox around the end of March this year. There is currently a vjet job [1] still active on the Hudson sandbox however considering it's been failing for almost 8 months now. Is this job still necessary?

If so please consider migrating this job to HIPP, the webtools project already has a HIPP instance at [2], would this be a good spot for it?

If it is not longer necessary, please let us know and we can disable the job.

[1] https://hudson.eclipse.org/sandbox/job/vjet-juno-sonar
[2] https://hudson.eclipse.org/webtools/
Comment 1 Thanh Ha CLA 2014-01-29 14:13:18 EST
The sonar job has been migrated to the new vjet HIPP.

https://hudson.eclipse.org/vjet/job/vjet-juno-sonar/
Comment 2 Justin Early CLA 2014-02-03 15:52:30 EST
Hi Thanh,

I am having problems with the signing step after the migration.

[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.cbi.maven.plugins:eclipse-jarsigner-plugin:1.0.4:sign (sign) on project org.eclipse.vjet.test.rt.vjoruntime: Could not sign artifact org.eclipse.vjet.test:org.eclipse.vjet.test.rt.vjoruntime:eclipse-test-plugin:0.10.0-SNAPSHOT
[DEBUG] Closing connection to remote

https://hudson.eclipse.org/vjet/job/webtools-vjet-kepler/43
Comment 3 Thanh Ha CLA 2014-02-03 16:01:35 EST
(In reply to Justin Early from comment #2)
> I am having problems with the signing step after the migration.

Hi Justin,

I looks like the signing server likely was too busy at this instance and probably did not respond in time thus causing the signing failure. I tested and the signing service is working at the moment so I think it's ok now if you retry your build.

We've seen this happen once before in the past year and I believe it's actually a rare occurrence considering this is the 2nd time we've seen this. In the next version of the jarsigner plugin [1] (not yet released) we added a retry mechanism which will cause the plugin to try signing a few times before giving up. This should help with this type of issue in the future.


[1] http://git.eclipse.org/c/cbi/org.eclipse.cbi.maven.plugins.git/commit/?id=620a6307b41e4f21ec12c5a84c8535460e8befba
Comment 4 Justin Early CLA 2014-02-03 16:42:52 EST
Thanks Thanh for the info about the new plugin. I look forward to getting those fixes. Now I am on to another issue. The build is attempting to copy files to 


http://download.eclipse.org/vjet/updates-nightly

And my previous p2 repos appear to not be accessible

http://download.eclipse.org/vjet/updates-nightly/content.jar

I am getting this message in the build:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 15:41.760s
[INFO] Finished at: Mon Feb 03 16:35:34 EST 2014
[INFO] Final Memory: 277M/950M
[INFO] ------------------------------------------------------------------------
[INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
[INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (deploy) on project org.eclipse.vjet.all.repo: An Ant BuildException has occured: Unable to delete file /home/data/httpd/download.eclipse.org/vjet/updates-nightly/features/org.eclipse.equinox.server.jetty_1.1.0.v20130429-1600.jar
[DEBUG] Closing connection to remote
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (deploy) on project org.eclipse.vjet.all.repo: An Ant BuildException has occured: Unable to delete file /home/data/httpd/download.eclipse.org/vjet/updates-nightly/features/org.eclipse.equinox.server.jetty_1.1.0.v20130429-1600.jar -> [Help 1]
[ERROR] 

I tried to manually ftp and I can not delete these files I am trying to access these directories but can not get any directory content to list.
Comment 5 Justin Early CLA 2014-02-03 16:45:34 EST
I am also noticing issues with sonar build not having permissions to run mvn

Terminating xvnc.
[workspace] $ mvn -f /home/hudson/genie.webtools.vjet/.hudson/jobs/vjet-juno-sonar/workspace/pom.xml -e -B sonar:sonar -Dmaven.repo.local=/home/hudson/genie.webtools.vjet/.hudson/jobs/vjet-juno-sonar/workspace/.maven/repo -Dsonar.skipDesign=true -Dsonar.jdbc.driver=org.postgresql.Driver -Dsonar.jdbc.url=jdbc:postgresql://sonar/sonar ******** ******** -Dsonar.host.url=https://dev.eclipse.org/sonar
FATAL: command execution failed
java.io.IOException: Cannot run program "mvn" (in directory "/home/hudson/genie.webtools.vjet/.hudson/jobs/vjet-juno-sonar/workspace"): error=13, Permission denied
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
	at hudson.Proc$LocalProc.<init>(Proc.java:187)
	at hudson.Proc$LocalProc.<init>(Proc.java:157)
	at hudson.Launcher$LocalLauncher.launch(Launcher.java:649)
	at hudson.Launcher$ProcStarter.start(Launcher.java:266)
	at hudson.Launcher$ProcStarter.join(Launcher.java:273)
	at hudson.tasks.Maven.perform(Maven.java:255)
	at hudson.plugins.sonar.utils.SonarMaven.executeMaven(SonarMaven.java:149)
	at hudson.plugins.sonar.SonarPublisher.executeSonar(SonarPublisher.java:331)
	at hudson.plugins.sonar.SonarPublisher.perform(SonarPublisher.java:292)
	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:51)
	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:646)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:624)
	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:600)
	at hudson.model.Build$RunnerImpl.post2(Build.java:163)
	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:566)
	at hudson.model.Run.run(Run.java:1414)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:40)
	at hudson.model.ResourceController.execute(ResourceController.java:82)
	at hudson.model.Executor.run(Executor.java:137)
Caused by: java.io.IOException: error=13, Permission denied
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
	at java.lang.ProcessImpl.start(ProcessImpl.java:130)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
	... 19 more
Sonar analysis completed: FAILURE
Finished: FAILURE
Comment 6 Thanh Ha CLA 2014-02-03 16:49:01 EST
(In reply to Justin Early from comment #4)
> Thanks Thanh for the info about the new plugin. I look forward to getting
> those fixes. Now I am on to another issue. The build is attempting to copy
> files to 
> 
> 
> http://download.eclipse.org/vjet/updates-nightly
> 

This is because the contents in this directory were owned by hudsonBuild:users. I changed the group ownership to webtools.vjet so you should be able to delete stuff in here now.


> And my previous p2 repos appear to not be accessible
> 
> http://download.eclipse.org/vjet/updates-nightly/content.jar


This file is missing from what I can see.
Comment 7 Thanh Ha CLA 2014-02-03 16:51:30 EST
(In reply to Justin Early from comment #5)
> I am also noticing issues with sonar build not having permissions to run mvn
> 

I configured your sonar job to use an explicit Maven version rather than letting it inherit from job. For build reproducibility you want to explicitly set a specific version anyway.

I restarted your sonar job so lets see if it still runs into this problem after this build runs.
Comment 8 Thanh Ha CLA 2014-02-04 10:13:55 EST
(In reply to Thanh Ha from comment #7)
> (In reply to Justin Early from comment #5)
> > I am also noticing issues with sonar build not having permissions to run mvn
> > 
> 
> I configured your sonar job to use an explicit Maven version rather than
> letting it inherit from job. For build reproducibility you want to
> explicitly set a specific version anyway.
> 
> I restarted your sonar job so lets see if it still runs into this problem
> after this build runs.

Looks like the job ran with a new failure [1]. It's able to find and execute Maven now but it's it's failing to run. I'm not sure if it's related to configuration or not. Let me know if this is something I can help with.


[1] https://hudson.eclipse.org/vjet/job/vjet-juno-sonar/50/console
Comment 9 Thanh Ha CLA 2014-02-25 13:40:44 EST
I think we're done here.

Justin, let me know if there's anything I can help with regarding the current build failures.