Bug 528950

Summary: Configure Sirius to have a "successful" jenkins Sonar job
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: RelengAssignee: Laurent Redor <laurent.redor>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: maxime.porhel
Version: 5.1.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: All   
See Also: https://git.eclipse.org/r/114376
https://git.eclipse.org/r/114369
https://git.eclipse.org/r/114378
https://git.eclipse.org/r/114377
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=2cdf6eb0cbe2d4c73f9623f9734328d47b9753e0
https://bugs.eclipse.org/bugs/show_bug.cgi?id=528822
https://git.eclipse.org/r/114396
https://git.eclipse.org/r/114395
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=e0c849517db92dc8aa3d5d4a816d636318390dfb
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=5b07811cb3ef49b0b90164423e1ac04e529c8b09
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=6d38f2fbba3a1f31c55a6b68ed22273d55c524d4
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=a49d6e1f507a31e4742a6d7ba51674fb6850ba44
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=0c830e7948a1d9c3fbf26498ab47a9a7255a121e
https://git.eclipse.org/r/114424
https://git.eclipse.org/r/114429
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=42835e64afdc97d67ea9b6b3c227a12f40f795ea
https://git.eclipse.org/r/114445
https://git.eclipse.org/r/114446
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=691e701e1246771eedcce2cb5964f17dba419ec4
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=5af0c6c4b46e41e0d16fd1061a63398b86cd8f94
https://git.eclipse.org/r/114448
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=8967f6dfd76fb3e0957ea6792baf05e16ac83344
https://git.eclipse.org/r/114498
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f5ba3f387571db4a0b17c924517d6c43321235c8
https://git.eclipse.org/r/114738
https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=634f6e0013a6402a8111ac3e5084652e5b2d75e0
https://bugs.eclipse.org/bugs/show_bug.cgi?id=445371
Whiteboard:

Description Laurent Redor CLA 2017-12-19 07:45:12 EST
With bug 464600, the Sonar was enabled on Sirius HIPP. The goal of this issue is to re-enable Sonar job [1] and to have workable results.

A preliminay issue, bug 528822, has been created on Community side.

[1] https://hudson.eclipse.org/sirius/view/All/job/sirius.sonar-master
Comment 2 Eclipse Genie CLA 2017-12-19 09:05:31 EST
New Gerrit change created: https://git.eclipse.org/r/114396
Comment 3 Eclipse Genie CLA 2017-12-19 09:05:33 EST
New Gerrit change created: https://git.eclipse.org/r/114395
Comment 9 Eclipse Genie CLA 2017-12-19 10:20:50 EST
New Gerrit change created: https://git.eclipse.org/r/114424
Comment 10 Eclipse Genie CLA 2017-12-19 11:25:25 EST
New Gerrit change created: https://git.eclipse.org/r/114429
Comment 12 Eclipse Genie CLA 2017-12-19 15:48:29 EST
New Gerrit change created: https://git.eclipse.org/r/114445
Comment 13 Eclipse Genie CLA 2017-12-19 16:03:55 EST
New Gerrit change created: https://git.eclipse.org/r/114446
Comment 16 Eclipse Genie CLA 2017-12-19 16:18:37 EST
New Gerrit change created: https://git.eclipse.org/r/114448
Comment 18 Laurent Redor CLA 2017-12-20 04:36:10 EST
(In reply to Laurent Redor from bug 528822 comment #3)
> 2- JaCoCoSensor: JaCoCo report not found : /home/hudson/genie.sirius/.hudson/jobs/sirius.sonar-master/workspace/plugins/org.eclipse.sirius.tests.rcptt.properties/target/jacoco.exec

The errors of type 2 have been fixed by enabling JaCoCo (commits 2cdf6eb0, 6d38f2fb and 42835e64).
Comment 19 Eclipse Genie CLA 2017-12-20 12:17:40 EST
New Gerrit change created: https://git.eclipse.org/r/114498
Comment 21 Eclipse Genie CLA 2017-12-26 03:37:33 EST
New Gerrit change created: https://git.eclipse.org/r/114738
Comment 23 Laurent Redor CLA 2018-01-08 02:49:36 EST
After several jobs, I observed that it seems that there is a CRON on HIPP at 12:10 that kills Maven process. So currently, job configuration is set to launch job just after.

Observations:

Job #670 started at 20 dec. 2017 10:13:29

12:10:01  [INFO] ------------------------------------------------------------------------
12:10:01  [INFO] BUILD FAILURE
12:10:01  [INFO] ------------------------------------------------------------------------
12:10:01  [INFO] Total time: 01:56 h
12:10:01  [INFO] Finished at: 2017-12-20T12:10:01-05:00
12:10:04  [INFO] Final Memory: 363M/4866M
12:10:04  [INFO] ------------------------------------------------------------------------
12:10:04  [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
12:10:04  [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test (default-test) on project org.eclipse.sirius.tests.swtbot: An unexpected error occured while launching the test runtime (return code 137). See log for details.
12:10:04  [DEBUG] Closing connection to remote
12:10:04  [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test (default-test) on project org.eclipse.sirius.tests.swtbot: An unexpected error occured while launching the test runtime (return code 137). See log for details. -> [Help 1]

Job #672 started at 24 dec. 2017 02:01:03

12:10:01  [INFO] ------------------------------------------------------------------------
12:10:01  [INFO] BUILD FAILURE
12:10:01  [INFO] ------------------------------------------------------------------------
12:10:01  [INFO] Total time: 10:08 h
12:10:01  [INFO] Finished at: 2017-12-24T12:10:01-05:00
12:10:02  [INFO] Final Memory: 333M/4988M
12:10:02  [INFO] ------------------------------------------------------------------------
12:10:02  [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
12:10:02  [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test (default-test) on project org.eclipse.sirius.tests.swtbot: An unexpected error occured while launching the test runtime (return code 137). See log for details.
12:10:02  [DEBUG] Closing connection to remote
12:10:02  [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test (default-test) on project org.eclipse.sirius.tests.swtbot: An unexpected error occured while launching the test runtime (return code 137). See log for details. -> [Help 1]

Job #673 started at 31 dec. 2017 02:01:03

12:10:01  [INFO] ------------------------------------------------------------------------
12:10:01  [INFO] BUILD FAILURE
12:10:01  [INFO] ------------------------------------------------------------------------
12:10:01  [INFO] Total time: 10:08 h
12:10:01  [INFO] Finished at: 2017-12-31T12:10:01-05:00
12:10:02  [INFO] Final Memory: 326M/4940M
12:10:02  [INFO] ------------------------------------------------------------------------
12:10:02  [INFO] o.h.m.e.h.MavenExecutionResultHandler - Build failed with exception(s)
12:10:02  [INFO] o.h.m.e.h.MavenExecutionResultHandler - [1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test (default-test) on project org.eclipse.sirius.tests.swtbot: An unexpected error occured while launching the test runtime (return code 137). See log for details.
12:10:02  [DEBUG] Closing connection to remote
12:10:02  [ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test (default-test) on project org.eclipse.sirius.tests.swtbot: An unexpected error occured while launching the test runtime (return code 137). See log for details. -> [Help 1]

Maybe be something to notice in bug 445371.
Comment 24 Laurent Redor CLA 2018-01-08 08:42:03 EST
The job ends with an OOM if all tests are launched. The analysis of the dump reveals that a large part of the memory is retained by org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart._disableCanonicalEditPolicyList.
Maybe a _disableCanonicalEditPolicyList.clear(); is necessary in the catch RuntimeException of method getCommand(Request).

But it seems strange that this "leak" is not observed locally or on CI server.