Community
Participate
Working Groups
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/
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.
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.
Mikael, any ideas? -M.
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?
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
Btw, tests run fine in local Eclipse. The dependency issue is between SWT and SWT.Test.
Leo, from you last comment I am closing this one as invalid. Please reopen if needed.
*** This bug has been marked as a duplicate of bug 507602 ***