Bug 458228 - Gerrit validation build failing with compilation errors.
Summary: Gerrit validation build failing with compilation errors.
Status: CLOSED DUPLICATE of bug 507602
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: Gerrit (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mikaël Barbero CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-23 04:52 EST by Niraj Modi CLA
Modified: 2017-12-19 01:55 EST (History)
7 users (show)

See Also:


Attachments
Gerrit Console log (103.43 KB, text/html)
2015-01-23 04:52 EST, Niraj Modi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niraj Modi CLA 2015-01-23 04:52:56 EST
Created attachment 250170 [details]
Gerrit Console log

Gerrit validation build fails:
1. I have a patch in which I have added new Class/API[constructor/methods]
2. Have added new JUnits to test these new Class/API as part of the same patch
3. After pushing my changes to Gerrit, validation build fails with compilation errors like below:
- The import org.eclipse.swt.graphics.RGBA cannot be resolved
- The constructor Color(Display, int, int, int, int) is undefined

[More details can be found on Gerrit build console below:
GerritBuild: https://hudson.eclipse.org/platform/job/eclipse.platform.swt-Gerrit/813/console ]

Note:- Very same changes code compiles and JUnits run fine from the Workspace.

Reference:
GerritPatch: https://git.eclipse.org/r/#/c/40195/
Comment 1 Niraj Modi CLA 2015-03-13 08:37:17 EDT
One more Gerrit Build failure for us:
https://hudson.eclipse.org/platform/job/eclipse.platform.swt-Gerrit/970/console

Again the same scenario, New APIs(Classes and Methods) and corresponding JUnits cannot be run successfully via Gerrit Build.
Comment 2 Niraj Modi CLA 2015-03-13 09:00:11 EDT
Is this a known limitation with Gerrit ?
or some invalid/missing configuration in our Project ?

Finally we had to remove the JUnits from the Gerrit patch and then we had to merge the change to Master.
Comment 3 Eclipse Webmaster CLA 2015-03-16 16:35:46 EDT
Mikael, any ideas?

-M.
Comment 4 Mikaël Barbero CLA 2015-03-17 10:40:06 EDT
I really don't know what could have happen. I tend to think that it must be something in the job config or the maven config. 

Did you try to run the build with maven locally?
Comment 5 Leo Ufimtsev CLA 2015-03-24 10:01:31 EDT
May be related to this:
https://git.eclipse.org/r/#/c/44212/

Addition of api (isDisplayThread) + test cases causes gerrit to fail. The test cases are not finding the new api:
[ERROR] The method isDisplayThread() is undefined for the type Display

Full console log:
https://hudson.eclipse.org/platform/job/eclipse.platform.swt-Gerrit/1057/console
Comment 6 Leo Ufimtsev CLA 2015-03-24 10:02:30 EDT
Btw, tests run fine in local Eclipse. 
The dependency issue is between SWT and SWT.Test.
Comment 7 Mikaël Barbero CLA 2015-04-20 03:58:37 EDT
Leo, from you last comment I am closing this one as invalid. Please reopen if needed.
Comment 8 Andrey Loskutov CLA 2017-12-19 01:55:37 EST

*** This bug has been marked as a duplicate of bug 507602 ***