Hi,Currently when building Gerrit you get a stream of Errorprone warnings (see attachement for stable-3.7 build) that is ~95% of the output and makes it difficult to interpret errors etc.Furthermore it is basically impossible to determine whether your patch introduces more Errorprone errors.What is the purpose of running Errorprone if we don't fix the errors?Can we lower the "log-level" so that these warning doesn't show by default?A large portion (140 / 176 of current stable-3.7 warnings) seems to be warnings about PreferredInterfaceType which seems to be a prevalent "error" in Gerrit source-code (mainly using $COLLECTION instead of Immutable$COLLECTION) can we ignore this error?
If we don't want to ignore errors and we don't want to disable Errorprone partially or all together we should consider making no-Errorrone warnings a requirement for submit./Sven
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/739a9bf3-7688-4bd8-884d-e3620044bee3n%40googlegroups.com.
On Tue, Feb 27, 2024 at 2:17 PM Sven Selberg <sven.s...@axis.com> wrote:Hi,Currently when building Gerrit you get a stream of Errorprone warnings (see attachement for stable-3.7 build) that is ~95% of the output and makes it difficult to interpret errors etc.Furthermore it is basically impossible to determine whether your patch introduces more Errorprone errors.What is the purpose of running Errorprone if we don't fix the errors?Can we lower the "log-level" so that these warning doesn't show by default?A large portion (140 / 176 of current stable-3.7 warnings) seems to be warnings about PreferredInterfaceType which seems to be a prevalent "error" in Gerrit source-code (mainly using $COLLECTION instead of Immutable$COLLECTION) can we ignore this error?AFAICS Edwin was recently working on fixing these warnings: https://gerrit-review.googlesource.com/q/message:PreferredInterfaceType
--If we don't want to ignore errors and we don't want to disable Errorprone partially or all together we should consider making no-Errorrone warnings a requirement for submit./Sven--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/739a9bf3-7688-4bd8-884d-e3620044bee3n%40googlegroups.com.
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAKSZd3SPTzp9uhzFwyWRgd9rvDR41HEj_uysa9G9LKnWNj9WWg%40mail.gmail.com.
On Tue, Feb 27, 2024 at 6:24 AM Matthias Sohn <matthi...@gmail.com> wrote:On Tue, Feb 27, 2024 at 2:17 PM Sven Selberg <sven.s...@axis.com> wrote:Hi,Currently when building Gerrit you get a stream of Errorprone warnings (see attachement for stable-3.7 build) that is ~95% of the output and makes it difficult to interpret errors etc.Furthermore it is basically impossible to determine whether your patch introduces more Errorprone errors.What is the purpose of running Errorprone if we don't fix the errors?Can we lower the "log-level" so that these warning doesn't show by default?A large portion (140 / 176 of current stable-3.7 warnings) seems to be warnings about PreferredInterfaceType which seems to be a prevalent "error" in Gerrit source-code (mainly using $COLLECTION instead of Immutable$COLLECTION) can we ignore this error?AFAICS Edwin was recently working on fixing these warnings: https://gerrit-review.googlesource.com/q/message:PreferredInterfaceType
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CAF6pJ8KjC-12DNBae9KE5Kjmc1bXZMQ9-iRNWRob9wfzP-C4pg%40mail.gmail.com.
On Tue, Feb 27, 2024 at 9:52 PM Nasser Grainawi <nasser....@linaro.org> wrote:On Tue, Feb 27, 2024 at 6:24 AM Matthias Sohn <matthi...@gmail.com> wrote:On Tue, Feb 27, 2024 at 2:17 PM Sven Selberg <sven.s...@axis.com> wrote:Hi,Currently when building Gerrit you get a stream of Errorprone warnings (see attachement for stable-3.7 build) that is ~95% of the output and makes it difficult to interpret errors etc.Furthermore it is basically impossible to determine whether your patch introduces more Errorprone errors.What is the purpose of running Errorprone if we don't fix the errors?Can we lower the "log-level" so that these warning doesn't show by default?A large portion (140 / 176 of current stable-3.7 warnings) seems to be warnings about PreferredInterfaceType which seems to be a prevalent "error" in Gerrit source-code (mainly using $COLLECTION instead of Immutable$COLLECTION) can we ignore this error?AFAICS Edwin was recently working on fixing these warnings: https://gerrit-review.googlesource.com/q/message:PreferredInterfaceType
Weird, PreferredInterfaceType hasn't been set to WARNING, but I set it directly to ERROR, after fixing all the issues:
On Wednesday, February 28, 2024 at 9:28:41 AM UTC+1 Edwin Kempin wrote:On Tue, Feb 27, 2024 at 9:52 PM Nasser Grainawi <nasser....@linaro.org> wrote:On Tue, Feb 27, 2024 at 6:24 AM Matthias Sohn <matthi...@gmail.com> wrote:On Tue, Feb 27, 2024 at 2:17 PM Sven Selberg <sven.s...@axis.com> wrote:Hi,Currently when building Gerrit you get a stream of Errorprone warnings (see attachement for stable-3.7 build) that is ~95% of the output and makes it difficult to interpret errors etc.Furthermore it is basically impossible to determine whether your patch introduces more Errorprone errors.What is the purpose of running Errorprone if we don't fix the errors?Can we lower the "log-level" so that these warning doesn't show by default?A large portion (140 / 176 of current stable-3.7 warnings) seems to be warnings about PreferredInterfaceType which seems to be a prevalent "error" in Gerrit source-code (mainly using $COLLECTION instead of Immutable$COLLECTION) can we ignore this error?AFAICS Edwin was recently working on fixing these warnings: https://gerrit-review.googlesource.com/q/message:PreferredInterfaceTypeSo these are PreferredInterfaceType warnings are meant to be fixed?
I was starting to fix them on the active stable-branches but I just wanted to be sure that this would be accepted first.Weird, PreferredInterfaceType hasn't been set to WARNING, but I set it directly to ERROR, after fixing all the issues:All I know is that I get the output as attached to this post.
It seems to me like they are "warnings" that are logged as INFO but they are very verbose nonetheless.
Perhaps this can be ignored with some local Bazel configuration.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/f079c4db-f898-45a4-b373-b3a2d5c3c203n%40googlegroups.com.
On Wednesday, February 28, 2024 at 9:28:41 AM UTC+1 Edwin Kempin wrote:On Tue, Feb 27, 2024 at 9:52 PM Nasser Grainawi <nasser....@linaro.org> wrote:On Tue, Feb 27, 2024 at 6:24 AM Matthias Sohn <matthi...@gmail.com> wrote:On Tue, Feb 27, 2024 at 2:17 PM Sven Selberg <sven.s...@axis.com> wrote:Hi,Currently when building Gerrit you get a stream of Errorprone warnings (see attachement for stable-3.7 build) that is ~95% of the output and makes it difficult to interpret errors etc.Furthermore it is basically impossible to determine whether your patch introduces more Errorprone errors.What is the purpose of running Errorprone if we don't fix the errors?Can we lower the "log-level" so that these warning doesn't show by default?A large portion (140 / 176 of current stable-3.7 warnings) seems to be warnings about PreferredInterfaceType which seems to be a prevalent "error" in Gerrit source-code (mainly using $COLLECTION instead of Immutable$COLLECTION) can we ignore this error?AFAICS Edwin was recently working on fixing these warnings: https://gerrit-review.googlesource.com/q/message:PreferredInterfaceTypeSo these are PreferredInterfaceType warnings are meant to be fixed?
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/f079c4db-f898-45a4-b373-b3a2d5c3c203n%40googlegroups.com.
On Wed, Feb 28, 2024 at 3:28 PM Sven Selberg <sven.s...@axis.com> wrote:On Wednesday, February 28, 2024 at 9:28:41 AM UTC+1 Edwin Kempin wrote:On Tue, Feb 27, 2024 at 9:52 PM Nasser Grainawi <nasser....@linaro.org> wrote:On Tue, Feb 27, 2024 at 6:24 AM Matthias Sohn <matthi...@gmail.com> wrote:On Tue, Feb 27, 2024 at 2:17 PM Sven Selberg <sven.s...@axis.com> wrote:Hi,Currently when building Gerrit you get a stream of Errorprone warnings (see attachement for stable-3.7 build) that is ~95% of the output and makes it difficult to interpret errors etc.Furthermore it is basically impossible to determine whether your patch introduces more Errorprone errors.What is the purpose of running Errorprone if we don't fix the errors?Can we lower the "log-level" so that these warning doesn't show by default?A large portion (140 / 176 of current stable-3.7 warnings) seems to be warnings about PreferredInterfaceType which seems to be a prevalent "error" in Gerrit source-code (mainly using $COLLECTION instead of Immutable$COLLECTION) can we ignore this error?AFAICS Edwin was recently working on fixing these warnings: https://gerrit-review.googlesource.com/q/message:PreferredInterfaceTypeSo these are PreferredInterfaceType warnings are meant to be fixed?Yes, all PreferredInterfaceType have been fixed in master.I was starting to fix them on the active stable-branches but I just wanted to be sure that this would be accepted first.Weird, PreferredInterfaceType hasn't been set to WARNING, but I set it directly to ERROR, after fixing all the issues:All I know is that I get the output as attached to this post.
It seems to me like they are "warnings" that are logged as INFO but they are very verbose nonetheless.
Perhaps this can be ignored with some local Bazel configuration.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/CACA_R4Kx4fu9ni4%2Bkk8fHxhyNWV_SKghovSLZB5R9AcsDp11DA%40mail.gmail.com.
Since I don't think we want to be making changes to stable branches just to fix warnings, I'll push some changes to turn off any WARN rules on stable branches.The changes are up for review now: https://gerrit-review.googlesource.com/q/hashtag:disable-errorprone-warnings-on-stable-branches