-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jenkinsfile: disable javadoc, maven issues #1557
Conversation
- publishAllIssues: false - to disable unrelated warnings in PRs - maven: wrongly collects "API WARNING"s without resolving filename - javadoc: it is currently not used * eclipse: ecj info markers work fine with parsing xml files
@laeubi @akurtakov @HannesWell @iloveeclipse |
I can see that Maven one is generating too much noise and is not actionable quite often . But why disable the javadoc one? IMHO it catches cases hat would otherwise fail the I-build and has no false positives, I know it's not catching all issues but it prevents a good chunk of them. The javadoc is used and all issues it catches are fixed - please try submitting a PR with javadoc issue to see. |
Test Results 929 files - 1 929 suites - 1 42m 20s ⏱️ - 6m 28s For more details on these failures, see this check. Results for commit b945c88. ± Comparison against base commit e340eca. |
i have not seen it catching any javadoc issue even though there are javadoc issues. until now i have only seen javadoc issues reported by ecj - handled by eclipse() plugin |
Why is this "wrong", it does not can show the warnings on the file but still it is to be fixed (I'm currently working on generating a ecj like xml file from API warnings here).
PDE is down to one maven warning that I currently can't understand (it reports a difference in classfile that I can't reproduce locally) but beside that they are actionable....
ECJ does not handle javadoc quite well: |
They are not unrelated they show where we have warnings that might be fixed as part of a PR. |
It gathers locations in the "console Output" instead of pointing to the offending .java file. As a result it randomly interprets those errors as "new" or "old" dependinig on the line number in the console output - which is almost random, since each commit can modify output lenght. |
As soon as they fixed by the PR, then they are not shown. if you are interested in Warnings that could be fixed you can simply go to jenkins or problems view to see all existing ones. But there is no need to pollute every PR with that information.m Nobody reads that and even less people actually fix them. |
That's wrong, these warnings are always there, they are just not visible most of the time as the API tools are skipped when the baseline replace kicks in (for performance reasons).
It is the best we can offer with a home brew API tools solution that no one else in the industry seem to use...
If nobody is reading them there can't be an issue in showing them... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disabling warnings just because they annoy people is a no-go for me. Without showing problems they won't get fixed.
Test javadoc jenkins reporter for eclipse-platform#1557
they are not disabled, they still visible in the console log. Only that PRs are not polluted with unrelated or false positives.
They are visible and distract from real related issues. They are annoying even if you don't read them. like popups/disclaimer you never read but accept blindly. |
I've expressed many times my opinion on this, and I agree that one should not enable additional checks on PR's as long as the checked issues are not fixed and so all PR's marked as "failed" because of the (unrelated) checks. I appreciate work on fixing warnings, but this work should not interfere with regular work and should not confuse contributors. A PR that makes a change that builds & run tests without introducing new warnings or errors should be always green. If it is not, and additionally because of unrelated code, it only confuses everyone. Also people learn to ignore all kind of PR validation errors because "they are always there".
Could you please link some examples of recent PR's with false positives? |
Currently all PRs are affected to show the issues stated in #1557 (comment). That does not mean they are "red", but the details shown in the jenkins/ github PR are disturbing - or even wrong. |
Test javadoc jenkins reporter for eclipse-platform#1557
@jukzi |
it finds a warning and can not relate it to any file in the repository .. i hope that is proof enough that it is not helpfull
|
the numbers are correct, but the warning it is supposed to be shown in the review tab like every ecj marker. somehow it is not configured right. i suggest you get it fully working before enabling it |
@jukzi So showing a warning (no false positives found so far) with a direct link to the code line is considered not helpful because not rendered in Github UI . |
Sorry to say but that's nonsense, code annotations are a completely different topic, so your claim it does not find issues is simply proven wrong so please stop to invent new argument of "not working". |
And that's the problem with this tools: only half configured it would stay that way until the end. Instead you could try to fix that error. May be it would be enough to convert absolute path to a relative one. |
I already told you several times, if you suspect a bug or improvement the please report it here: https://github.com/jenkinsci/warnings-ng-plugin "we" can't do anything here (only if the bug is fixed to ask infrateam to update Jenkins). |
Thats exactly the mood i don't like: installing something broken and leave the cleanup for others. |
The difference is just the interpretation of "broken" ... for me it is nothing broken and I can perfectly work with it (and it seems you even used that in the past PRs) now it is suddenly "broken" for you ... So for me the problem is more searching "fly in the ointment" than actually aiming for something to improve. |
I have not used that tools. in opposite: i am steady confused by them - for example javadoc telling me there are no issues while there are. For javadoc the one and only way is to grep the console log manually. |
This is not leading anywhere.
|
I actually took the liberty to experiment with GH polls #1567 . Everyone, please feel free to fix the wording on the poll, I tried to be as objective as I could in the options. |
Please share an example, on the other hand why are you not "steady confused" and we should not disable ECJ warnings then as it tells there are not javadoc issues while there are some?
...
I have opened |
@vogella just as we have talked about here (but I don't want to spam the thread more so I think its fine to continue here!) I mentioned here a problem with the display of the status: The user gracefully opened a PR here: Really amazing! |
By the way API issues will soon no longer be reported as Maven warnings / errors but listed in the ECJ issues: Also shown as code annotations here: And as I assume it is "super confusing" I'll propose to rename the check from "Eclipse Compiler" to "Eclipse Compiler and API problem" soon, please let me know if you prefer a different naming... |
- publishAllIssues: false - to disable unrelated warnings in PRs
- maven: wrongly collects "API WARNING"s without resolving filename
- javadoc: it is currently not used
* eclipse: ecj info markers work fine with parsing xml files