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

Bug 506778

Summary: Enable project specific error checks for eclipse.platform.ui and eclipse.platform.runtime project for the Gerrit validation build
Product: [Eclipse Project] Platform Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: Lars Vogel <Lars.Vogel>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, Lars.Vogel, mistria
Version: 4.5   
Target Milestone: 4.7 M4   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/84242
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=299ef8cd7945109266f1a0fe16c388608f850e89
https://git.eclipse.org/r/84282
https://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=85dfb875d274e4cbcb44d29756e803a8daf0c6b6
https://git.eclipse.org/r/141964
https://git.eclipse.org/r/141965
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d9e190109343449edc2ffdc6e0d9fc46e0192ece
https://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=b45ea1b32dab553333618b11c1f0e51610791e77
Whiteboard:
Bug Depends on:    
Bug Blocks: 540419, 546976    

Description Lars Vogel CLA 2016-10-31 05:34:27 EDT
Bug 506435 plans to introduce the project check for the whole Eclipse SDK. This is IMHO a great and important step to ensure high quality contributions via Gerrit. 

Unfortunately it looks like Bug 506770 hide certain errors in the IDE, which will most like delay the general adaption.

I suggest to enable it already for our projects until the SDK issues are resolved.
Comment 1 Lars Vogel CLA 2016-11-02 08:07:04 EDT
As discussed in the PMC we should not enable this by default for the aggregator build but use it for the Gerrit validation. This should catch unintentional introduced compile errors and allow people to use other tools, like IntelliJ ;-) to contribute to the Eclipse project and still get the same validation as we get in Eclipse.
Comment 3 Dani Megert CLA 2016-11-02 08:43:05 EDT
(In reply to Lars Vogel from comment #1)
> As discussed in the PMC we should not enable this by default for the
> aggregator build but use it for the Gerrit validation.

I suspect that this will be picked up by our build as well. The change looks very similar to what the aggregator uses.

It is very misleading to say we now use project settings but at the same time disable all warnings.
Comment 4 Mickael Istria CLA 2016-11-02 08:56:04 EDT
(In reply to Dani Megert from comment #3)
> I suspect that this will be picked up by our build as well. The change looks
> very similar to what the aggregator uses.

The settings is in the "build-individual-bundles" profile, so it's not supposed to affect the aggregator build.

> It is very misleading to say we now use project settings but at the same
> time disable all warnings.

At least, this catches some defects that project has marked as errors. USually, when doing a local build, it's very tricky to review warnings, so just highlighting unacceptable ones (marked as errors) is probably enough and not too much to be actually used.
Comment 5 Lars Vogel CLA 2016-11-02 09:04:45 EDT
(In reply to Dani Megert from comment #3)
> It is very misleading to say we now use project settings but at the same
> time disable all warnings.

If I do not disable warnings, we end up with 15K warnings.
Comment 6 Dani Megert CLA 2016-11-02 12:57:16 EDT
(In reply to Mickael Istria from comment #4)
> (In reply to Dani Megert from comment #3)
> > I suspect that this will be picked up by our build as well. The change looks
> > very similar to what the aggregator uses.
> 
> The settings is in the "build-individual-bundles" profile, so it's not
> supposed to affect the aggregator build.

Indeed. I didn't look at the full file.

 
> > It is very misleading to say we now use project settings but at the same
> > time disable all warnings.
> 
> At least, this catches some defects that project has marked as errors.
> USually, when doing a local build, it's very tricky to review warnings, so
> just highlighting unacceptable ones (marked as errors) is probably enough
> and not too much to be actually used.

That's true for projects that have tons of warnings in the IDE, i.e. it's not a pattern that should blindly be applied to all repos.
Comment 8 Eclipse Genie CLA 2019-05-10 08:40:44 EDT
New Gerrit change created: https://git.eclipse.org/r/141964
Comment 9 Eclipse Genie CLA 2019-05-10 08:42:57 EDT
New Gerrit change created: https://git.eclipse.org/r/141965
Comment 12 Dani Megert CLA 2019-05-10 09:17:37 EDT
The changes go reverted including approval from Lars. For details see bug 540419 comment 9.