Started by an SCM change
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on ha:////4OxnufG7/FwqYVsm30EKG1x56Nod0dqX1f3ICVx0cDmtAAAAqh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAyFEgY5/eT83ILSktQi/ZT85OzUIl0DA9PyjLTEgtKMQtM8AB9rx9PTAAAAdocker-005whfapuhq5n on gcloud65 (bazel-debian mvn bazel-chrome-69 bazel-debian-chrome-69 docker) in workspace /home/jenkins/workspace/module-git-refs-filter-bazel-stable-2.16
Selected Git installation does not exist. Using Default
Wiping out workspace first.
Cloning the remote Git repository
Avoid fetching tags
Cloning repository https://gerrit.googlesource.com/a/gerrit
 > /usr/bin/git init /home/jenkins/workspace/module-git-refs-filter-bazel-stable-2.16 # timeout=10
Fetching upstream changes from https://gerrit.googlesource.com/a/gerrit
 > /usr/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials .netrc credentials for gerrit.googlesource.com
 > /usr/bin/git fetch --no-tags --force --progress -- https://gerrit.googlesource.com/a/gerrit +refs/heads/*:refs/remotes/gerrit/* # timeout=10
 > /usr/bin/git config remote.gerrit.url https://gerrit.googlesource.com/a/gerrit # timeout=10
 > /usr/bin/git config --add remote.gerrit.fetch +refs/heads/*:refs/remotes/gerrit/* # timeout=10
 > /usr/bin/git config remote.gerrit.url https://gerrit.googlesource.com/a/gerrit # timeout=10
Fetching upstream changes from https://gerrit.googlesource.com/a/gerrit
using GIT_ASKPASS to set credentials .netrc credentials for gerrit.googlesource.com
 > /usr/bin/git fetch --no-tags --force --progress -- https://gerrit.googlesource.com/a/gerrit +refs/heads/*:refs/remotes/gerrit/* # timeout=10
 > /usr/bin/git config remote.origin.url https://gerrit.googlesource.com/a/modules/git-refs-filter # timeout=10
Fetching upstream changes from https://gerrit.googlesource.com/a/modules/git-refs-filter
using GIT_ASKPASS to set credentials .netrc credentials for gerrit.googlesource.com
 > /usr/bin/git fetch --no-tags --force --progress -- https://gerrit.googlesource.com/a/modules/git-refs-filter +refs/heads/*:refs/remotes/origin/* # timeout=10
Seen branch in repository gerrit/infra/config
Seen branch in repository gerrit/master
Seen branch in repository gerrit/stable-2.10
Seen branch in repository gerrit/stable-2.11
Seen branch in repository gerrit/stable-2.12
Seen branch in repository gerrit/stable-2.13
Seen branch in repository gerrit/stable-2.14
Seen branch in repository gerrit/stable-2.14-2020-11.notedb-refs-tags
Seen branch in repository gerrit/stable-2.15
Seen branch in repository gerrit/stable-2.15-2020-11.notedb-refs-tags
Seen branch in repository gerrit/stable-2.15-issue-13858
Seen branch in repository gerrit/stable-2.16
Seen branch in repository gerrit/stable-2.16-2020-11.notedb-refs-tags
Seen branch in repository gerrit/stable-2.16-issue-13858
Seen branch in repository gerrit/stable-2.4
Seen branch in repository gerrit/stable-2.5
Seen branch in repository gerrit/stable-2.6
Seen branch in repository gerrit/stable-2.7
Seen branch in repository gerrit/stable-2.8
Seen branch in repository gerrit/stable-2.9
Seen branch in repository gerrit/stable-3.0
Seen branch in repository gerrit/stable-3.0-2020-11.notedb-refs-tags
Seen branch in repository gerrit/stable-3.0-issue-13858
Seen branch in repository gerrit/stable-3.1
Seen branch in repository gerrit/stable-3.1-2020-11.notedb-refs-tags
Seen branch in repository gerrit/stable-3.1-2021-07
Seen branch in repository gerrit/stable-3.1-issue-13858
Seen branch in repository gerrit/stable-3.2
Seen branch in repository gerrit/stable-3.2-2020-11.notedb-refs-tags
Seen branch in repository gerrit/stable-3.2-2021-07
Seen branch in repository gerrit/stable-3.2-issue-13858
Seen branch in repository gerrit/stable-3.3
Seen branch in repository gerrit/stable-3.3-2021-07
Seen branch in repository gerrit/stable-3.3-issue-13858
Seen branch in repository gerrit/stable-3.4
Seen branch in repository gerrit/stable-3.4-2021-07
Seen branch in repository gerrit/stable-3.5
Seen branch in repository origin/master
Seen branch in repository origin/stable-2.16
Seen branch in repository origin/stable-3.0
Seen branch in repository origin/stable-3.1
Seen branch in repository origin/stable-3.2
Seen branch in repository origin/stable-3.3
Seen 43 remote branches
 > /usr/bin/git show-ref --tags -d # timeout=10
Checking out Revision caa2c70440249f68473bda1800a0c990778dbb5d (gerrit/stable-2.16)
 > /usr/bin/git config core.sparsecheckout # timeout=10
 > /usr/bin/git checkout -f caa2c70440249f68473bda1800a0c990778dbb5d # timeout=10
Commit message: "Set version to 2.16.29-SNAPSHOT"
 > /usr/bin/git rev-list --no-walk caa2c70440249f68473bda1800a0c990778dbb5d # timeout=10
[module-git-refs-filter-bazel-stable-2.16] $ /bin/bash -e /tmp/jenkins6530655089176712605.sh
[module-git-refs-filter-bazel-stable-2.16] $ /bin/bash -e /tmp/jenkins8704894630687045134.sh
Java set to: /usr/lib/jvm/java-8-openjdk-amd64/bin/java
Switched to a new branch 'stable-2.16'
Branch 'stable-2.16' set up to track remote branch 'stable-2.16' from 'gerrit'.
Submodule 'plugins/codemirror-editor' (https://gerrit.googlesource.com/a/plugins/codemirror-editor) registered for path 'plugins/codemirror-editor'
Submodule 'plugins/commit-message-length-validator' (https://gerrit.googlesource.com/a/plugins/commit-message-length-validator) registered for path 'plugins/commit-message-length-validator'
Submodule 'plugins/download-commands' (https://gerrit.googlesource.com/a/plugins/download-commands) registered for path 'plugins/download-commands'
Submodule 'plugins/hooks' (https://gerrit.googlesource.com/a/plugins/hooks) registered for path 'plugins/hooks'
Submodule 'plugins/replication' (https://gerrit.googlesource.com/a/plugins/replication) registered for path 'plugins/replication'
Submodule 'plugins/reviewnotes' (https://gerrit.googlesource.com/a/plugins/reviewnotes) registered for path 'plugins/reviewnotes'
Submodule 'plugins/singleusergroup' (https://gerrit.googlesource.com/a/plugins/singleusergroup) registered for path 'plugins/singleusergroup'
Cloning into '/home/jenkins/workspace/module-git-refs-filter-bazel-stable-2.16/plugins/codemirror-editor'...
Cloning into '/home/jenkins/workspace/module-git-refs-filter-bazel-stable-2.16/plugins/commit-message-length-validator'...
Cloning into '/home/jenkins/workspace/module-git-refs-filter-bazel-stable-2.16/plugins/download-commands'...
Cloning into '/home/jenkins/workspace/module-git-refs-filter-bazel-stable-2.16/plugins/hooks'...
Cloning into '/home/jenkins/workspace/module-git-refs-filter-bazel-stable-2.16/plugins/replication'...
Cloning into '/home/jenkins/workspace/module-git-refs-filter-bazel-stable-2.16/plugins/reviewnotes'...
Cloning into '/home/jenkins/workspace/module-git-refs-filter-bazel-stable-2.16/plugins/singleusergroup'...
Submodule path 'plugins/codemirror-editor': checked out '59942b1adf1c949f3633f60ac42f67fae03b3255'
Submodule path 'plugins/commit-message-length-validator': checked out '556e427fd737744ce8a6a37b89fd427ae59bc8ea'
Submodule path 'plugins/download-commands': checked out '41c61bf8c1869bff4e0b436f69478c2137d0ca07'
Submodule path 'plugins/hooks': checked out 'e7769bd52c2b709d7712a386aa6cb96aec2c11a9'
Submodule path 'plugins/replication': checked out 'a6c453782de3f684a40a242bad9460faff75ffc3'
Submodule path 'plugins/reviewnotes': checked out 'ba3a422f1909f4970c563212d45cce70d494f60b'
Submodule path 'plugins/singleusergroup': checked out '2a38a8413c25fec910fb843932aa869647bdc1e7'
From https://gerrit.googlesource.com/a/modules/git-refs-filter
 * branch                  HEAD       -> FETCH_HEAD
openjdk full version "1.8.0_292-b10"
2021/11/22 09:26:05 Downloading https://releases.bazel.build/3.1.0/release/bazel-3.1.0-linux-x86_64...
Bazelisk version: v1.7.4
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
Build label: 3.1.0
Build target: bazel-out/k8-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Wed Apr 22 10:32:27 2020 (1587551547)
Build timestamp: 1587551547
Build timestamp as int: 1587551547
INFO: Invocation ID: 4a02eaf3-8efe-4597-8f8b-e0259d488d9d
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 0 packages loaded
Loading: 1 packages loaded
Analyzing: target //plugins/git-refs-filter:git-refs-filter (1 packages loaded, 0 targets configured)
Analyzing: target //plugins/git-refs-filter:git-refs-filter (10 packages loaded, 7 targets configured)
Analyzing: target //plugins/git-refs-filter:git-refs-filter (10 packages loaded, 7 targets configured)
Analyzing: target //plugins/git-refs-filter:git-refs-filter (10 packages loaded, 7 targets configured)
Analyzing: target //plugins/git-refs-filter:git-refs-filter (10 packages loaded, 7 targets configured)
Analyzing: target //plugins/git-refs-filter:git-refs-filter (11 packages loaded, 7 targets configured)
Analyzing: target //plugins/git-refs-filter:git-refs-filter (68 packages loaded, 277 targets configured)
Analyzing: target //plugins/git-refs-filter:git-refs-filter (132 packages loaded, 3019 targets configured)
Analyzing: target //plugins/git-refs-filter:git-refs-filter (195 packages loaded, 3152 targets configured)
INFO: Analyzed target //plugins/git-refs-filter:git-refs-filter (199 packages loaded, 4182 targets configured).
INFO: Found 1 target...
[0 / 16] [Prepa] Writing file build-info-redacted.properties
[41 / 340] Compiling external/com_google_protobuf/src/google/protobuf/parse_context.cc [for host]; 4s remote-cache, processwrapper-sandbox ... (31 actions, 30 running)
[69 / 340] Compiling external/com_google_protobuf/src/google/protobuf/extension_set.cc [for host]; 10s remote-cache, processwrapper-sandbox ... (31 actions, 30 running)
[89 / 340] Compiling external/com_google_protobuf/src/google/protobuf/text_format.cc [for host]; 6s remote-cache, processwrapper-sandbox ... (31 actions, 30 running)
[105 / 340] Compiling external/com_google_protobuf/src/google/protobuf/text_format.cc [for host]; 15s remote-cache, processwrapper-sandbox ... (32 actions running)
[129 / 340] Compiling external/com_google_protobuf/src/google/protobuf/descriptor.cc [for host]; 20s remote-cache, processwrapper-sandbox ... (32 actions running)
[165 / 340] Compiling external/com_google_protobuf/src/google/protobuf/compiler/js/js_generator.cc [for host]; 16s remote-cache, processwrapper-sandbox ... (32 actions running)
[278 / 363] Compiling external/com_google_protobuf/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc [for host]; 8s remote-cache, processwrapper-sandbox ... (32 actions running)
[341 / 364] Compiling Java headers proto/libcache_proto-speed-hjar.jar (1 source jar); 2s remote-cache, processwrapper-sandbox ... (8 actions running)
[363 / 364] Executing genrule //plugins/git-refs-filter:git-refs-filter; 0s remote-cache, processwrapper-sandbox
Target //plugins/git-refs-filter:git-refs-filter up-to-date:
  bazel-bin/plugins/git-refs-filter/git-refs-filter.jar
INFO: Elapsed time: 128.387s, Critical Path: 53.77s
INFO: 347 processes: 341 processwrapper-sandbox, 6 worker.
INFO: Build completed successfully, 364 total actions
INFO: Build completed successfully, 364 total actions
INFO: Invocation ID: 801dabd8-41ff-41d6-936c-924d0002c673
Loading: 
Loading: 0 packages loaded
INFO: Build option --test_env has changed, discarding analysis cache.
Analyzing: 2 targets (1 packages loaded, 0 targets configured)
Analyzing: 2 targets (35 packages loaded, 4318 targets configured)
Analyzing: 2 targets (70 packages loaded, 4671 targets configured)
INFO: Analyzed 2 targets (75 packages loaded, 4710 targets configured).
INFO: Found 2 test targets...
[0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt
[317 / 499] 1 / 2 tests; [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (30 actions, 20 running)
[322 / 499] 1 / 2 tests; Building java/com/google/gerrit/reviewdb/libserver-class.jar (49 source files); 2s remote-cache, worker ... (31 actions, 20 running)
[325 / 499] 1 / 2 tests; Building java/com/google/gerrit/reviewdb/libserver-class.jar (49 source files); 3s remote-cache, worker ... (32 actions, 20 running)
[326 / 499] 1 / 2 tests; Building java/com/google/gerrit/reviewdb/libserver-class.jar (49 source files); 4s remote-cache, worker ... (32 actions, 20 running)
[326 / 499] 1 / 2 tests; Building java/com/google/gerrit/reviewdb/libserver-class.jar (49 source files); 6s remote-cache, worker ... (32 actions, 20 running)
INFO: From Building java/com/google/gerrit/util/cli/libcli.jar (7 source files):
java/com/google/gerrit/util/cli/CmdLineParser.java:333: warning: [BadAnnotationImplementation] Classes that implement Annotation must override equals and hashCode. Consider using AutoAnnotation instead of implementing Annotation by hand.
  private static class PrefixedOption implements Option {
                 ^
    (see https://errorprone.info/bugpattern/BadAnnotationImplementation)
java/com/google/gerrit/util/cli/CmdLineParser.java:511: warning: [BadAnnotationImplementation] Classes that implement Annotation must override equals and hashCode. Consider using AutoAnnotation instead of implementing Annotation by hand.
  private static class HelpOption implements Option, Setter<Boolean> {
                 ^
    (see https://errorprone.info/bugpattern/BadAnnotationImplementation)
java/com/google/gerrit/util/cli/CmdLineParser.java:512: warning: [ImmutableAnnotationChecker] annotations should be immutable: 'HelpOption' has non-final field 'value'
    private boolean value;
                    ^
    (see https://errorprone.info/bugpattern/ImmutableAnnotationChecker)
  Did you mean 'private final boolean value;'?
[328 / 499] 1 / 2 tests; Building java/com/google/gerrit/reviewdb/libserver-class.jar (49 source files); 7s remote-cache, worker ... (32 actions, 21 running)
[329 / 499] 1 / 2 tests; Building java/com/google/gerrit/reviewdb/libserver-class.jar (49 source files); 9s remote-cache, worker ... (32 actions, 22 running)
[349 / 499] 1 / 2 tests; Building java/com/google/gerrit/index/libquery_exception.jar (2 source files); 10s remote-cache ... (32 actions, 21 running)
[401 / 500] 1 / 2 tests; Building java/com/google/gerrit/index/libquery_exception.jar (2 source files); 12s remote-cache ... (32 actions, 20 running)
[426 / 500] 1 / 2 tests; Building java/com/google/gerrit/extensions/libapi.jar (329 source files); 9s remote-cache, worker ... (32 actions, 21 running)
[429 / 500] 1 / 2 tests; Building java/com/google/gerrit/extensions/libapi.jar (329 source files); 13s remote-cache, worker ... (32 actions, 22 running)
INFO: From Building java/com/google/gerrit/extensions/libapi.jar (329 source files):
java/com/google/gerrit/extensions/restapi/RestApiException.java:37: warning: [TypeParameterUnusedInFormals] Declaring a type parameter that is only used in the return type is a misuse of generics: operations on the type parameter are unchecked, it hides unsafe casts at invocations of the method, and it interacts badly with method overload resolution.
  public <T extends RestApiException> T caching(CacheControl c) {
                                        ^
    (see https://errorprone.info/bugpattern/TypeParameterUnusedInFormals)
[432 / 500] 1 / 2 tests; Building java/com/google/gerrit/index/project/libproject.jar (9 source files); 10s remote-cache ... (32 actions, 22 running)
[439 / 500] 1 / 2 tests; Building java/com/google/gerrit/index/project/libproject.jar (9 source files); 14s remote-cache ... (32 actions, 21 running)
INFO: From Building java/com/google/gerrit/pgm/init/api/libapi.jar (14 source files):
java/com/google/gerrit/pgm/init/api/Section.java:131: warning: [GetClassOnEnum] Calling getClass() on an enum may return a subclass of the enum type
    E allowedValues = (E) EnumSet.allOf(defValue.getClass());
                                                         ^
    (see https://errorprone.info/bugpattern/GetClassOnEnum)
  Did you mean 'E allowedValues = (E) EnumSet.allOf(defValue.getDeclaringClass());'?
[444 / 500] 1 / 2 tests; Building java/com/google/gerrit/index/project/libproject.jar (9 source files); 18s remote-cache ... (32 actions, 22 running)
[452 / 500] 1 / 2 tests; Building java/com/google/gerrit/index/project/libproject.jar (9 source files); 24s remote-cache ... (32 actions, 21 running)
[458 / 500] 1 / 2 tests; Building java/com/google/gerrit/index/project/libproject.jar (9 source files); 30s remote-cache ... (32 actions, 22 running)
[464 / 500] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 35s remote-cache, worker ... (32 actions, 21 running)
[470 / 500] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 44s remote-cache, worker ... (30 actions, 20 running)
INFO: From Building java/com/google/gerrit/lucene/liblucene.jar (12 source files):
java/com/google/gerrit/lucene/WrappableSearcherManager.java:191: warning: [ReferenceEquality] Comparison using reference equality instead of value equality
        if (unwrapped == reader) {
                      ^
    (see https://errorprone.info/bugpattern/ReferenceEquality)
  Did you mean 'if (Objects.equals(unwrapped, reader)) {' or 'if (unwrapped.equals(reader)) {'?
java/com/google/gerrit/lucene/WrappableSearcherManager.java:202: warning: [ReferenceEquality] Comparison using reference equality instead of value equality
      if (unwrapped != reader) {
                    ^
    (see https://errorprone.info/bugpattern/ReferenceEquality)
  Did you mean 'if (!Objects.equals(unwrapped, reader)) {' or 'if (!unwrapped.equals(reader)) {'?
INFO: From Building java/com/google/gerrit/httpd/libhttpd-class.jar (115 source files) and running annotation processors (AutoAnnotationProcessor, AutoValueProcessor):
java/com/google/gerrit/httpd/HttpServletResponseRecorder.java:74: warning: [MissingOverride] getStatus overrides method in HttpServletResponseWrapper; expected @Override
  public int getStatus() {
             ^
    (see https://errorprone.info/bugpattern/MissingOverride)
  Did you mean '@Override @SuppressWarnings("all")'?
java/com/google/gerrit/httpd/rpc/AuditedHttpServletResponse.java:29: warning: [MissingOverride] getStatus overrides method in HttpServletResponseWrapper; expected @Override
  public int getStatus() {
             ^
    (see https://errorprone.info/bugpattern/MissingOverride)
  Did you mean '@Override @SuppressWarnings("all")'?
[492 / 500] 1 / 2 tests; Building java/com/google/gerrit/server/libserver-class.jar (991 source files) and running annotation processors (AutoAnnotationProcessor, AutoValueProcessor); 41s remote-cache, worker ... (8 actions running)
INFO: From Building java/com/google/gerrit/sshd/libsshd.jar (101 source files) and running annotation processors (AutoAnnotationProcessor, AutoValueProcessor):
java/com/google/gerrit/sshd/commands/ApproveOption.java:32: warning: [BadAnnotationImplementation] Classes that implement Annotation must override equals and hashCode. Consider using AutoAnnotation instead of implementing Annotation by hand.
final class ApproveOption implements Option, Setter<Short> {
      ^
    (see https://errorprone.info/bugpattern/BadAnnotationImplementation)
java/com/google/gerrit/sshd/commands/ApproveOption.java:35: warning: [ImmutableAnnotationChecker] annotations should be immutable: 'ApproveOption' has field 'type' of type 'com.google.gerrit.common.data.LabelType', the declaration of type 'com.google.gerrit.common.data.LabelType' is not annotated with @com.google.errorprone.annotations.Immutable
  private final LabelType type;
                          ^
    (see https://errorprone.info/bugpattern/ImmutableAnnotationChecker)
java/com/google/gerrit/sshd/commands/ApproveOption.java:37: warning: [ImmutableAnnotationChecker] annotations should be immutable: 'ApproveOption' has non-final field 'value'
  private Short value;
                ^
    (see https://errorprone.info/bugpattern/ImmutableAnnotationChecker)
  Did you mean 'private final Short value;'?
java/com/google/gerrit/sshd/commands/StreamEvents.java:284: warning: [SynchronizeOnNonFinalField] Synchronizing on non-final fields is not safe: if the field is ever updated, different threads may end up locking on different objects.
      synchronized (stdout) {
                   ^
    (see https://errorprone.info/bugpattern/SynchronizeOnNonFinalField)
java/com/google/gerrit/sshd/commands/StreamEvents.java:291: warning: [SynchronizeOnNonFinalField] Synchronizing on non-final fields is not safe: if the field is ever updated, different threads may end up locking on different objects.
    synchronized (stdout) {
                 ^
    (see https://errorprone.info/bugpattern/SynchronizeOnNonFinalField)
java/com/google/gerrit/sshd/commands/UploadArchive.java:142: warning: [ReferenceEquality] Comparison using reference equality instead of value equality
      if (s == PacketLineIn.END) {
            ^
    (see https://errorprone.info/bugpattern/ReferenceEquality)
  Did you mean 'if (Objects.equals(s, PacketLineIn.END)) {' or 'if (s.equals(PacketLineIn.END)) {'?
java/com/google/gerrit/sshd/commands/UploadArchive.java:142: warning: [StringEquality] String comparison using reference equality instead of value equality
      if (s == PacketLineIn.END) {
            ^
    (see https://errorprone.info/bugpattern/StringEquality)
  Did you mean 'if (Objects.equals(s, PacketLineIn.END)) {' or 'if (s.equals(PacketLineIn.END)) {'?
INFO: From Building java/com/google/gerrit/acceptance/libframework-lib.jar (61 source files) and running annotation processors (AutoAnnotationProcessor, AutoValueProcessor):
java/com/google/gerrit/acceptance/GerritServer.java:463: warning: [TypeParameterUnusedInFormals] Declaring a type parameter that is only used in the return type is a misuse of generics: operations on the type parameter are unchecked, it hides unsafe casts at invocations of the method, and it interacts badly with method overload resolution.
  private static <T> T get(Object obj, String field)
                       ^
    (see https://errorprone.info/bugpattern/TypeParameterUnusedInFormals)
java/com/google/gerrit/acceptance/ConfigAnnotationParser.java:48: warning: [BadAnnotationImplementation] Classes that implement Annotation must override equals and hashCode. Consider using AutoAnnotation instead of implementing Annotation by hand.
  static class GlobalPluginConfigToGerritConfig implements GerritConfig {
         ^
    (see https://errorprone.info/bugpattern/BadAnnotationImplementation)
INFO: From Building java/com/google/gerrit/server/libserver-class.jar (991 source files) and running annotation processors (AutoAnnotationProcessor, AutoValueProcessor):
java/com/google/gerrit/server/notedb/ReviewerStateInternal.java:53: warning: [ImmutableEnumChecker] enums should be immutable: 'ReviewerStateInternal' has field 'footerKey' of type 'org.eclipse.jgit.revwalk.FooterKey', the declaration of type 'org.eclipse.jgit.revwalk.FooterKey' is not annotated with @com.google.errorprone.annotations.Immutable
  private final FooterKey footerKey;
                          ^
    (see https://errorprone.info/bugpattern/ImmutableEnumChecker)
java/com/google/gerrit/server/index/change/ChangeIndexRewriter.java:158: warning: [ReferenceEquality] Comparison using reference equality instead of value equality
    if (in == out || out instanceof IndexPredicate) {
           ^
    (see https://errorprone.info/bugpattern/ReferenceEquality)
  Did you mean 'if (Objects.equals(in, out) || out instanceof IndexPredicate) {' or 'if (in.equals(out) || out instanceof IndexPredicate) {'?
java/com/google/gerrit/server/index/change/ChangeIndexRewriter.java:210: warning: [ReferenceEquality] Comparison using reference equality instead of value equality
      if (nc == c) {
             ^
    (see https://errorprone.info/bugpattern/ReferenceEquality)
  Did you mean 'if (Objects.equals(nc, c)) {' or 'if (nc.equals(c)) {'?
java/com/google/gerrit/server/util/IdGenerator.java:48: warning: [NarrowingCompoundAssignment] Compound assignments from int to short hide lossy casts
    v0 += ((v1 << 2) + 0 ^ v1) + (salt ^ (v1 >>> 3)) + 1;
       ^
    (see https://errorprone.info/bugpattern/NarrowingCompoundAssignment)
  Did you mean 'v0 = (short) (v0 + (((v1 << 2) + 0 ^ v1) + (salt ^ (v1 >>> 3)) + 1));'?
java/com/google/gerrit/server/util/IdGenerator.java:49: warning: [NarrowingCompoundAssignment] Compound assignments from int to short hide lossy casts
    v1 += ((v0 << 2) + 2 ^ v0) + (salt ^ (v0 >>> 3)) + 3;
       ^
    (see https://errorprone.info/bugpattern/NarrowingCompoundAssignment)
  Did you mean 'v1 = (short) (v1 + (((v0 << 2) + 2 ^ v0) + (salt ^ (v0 >>> 3)) + 3));'?
java/com/google/gerrit/server/util/IdGenerator.java:57: warning: [NarrowingCompoundAssignment] Compound assignments from int to short hide lossy casts
    v1 -= ((v0 << 2) + 2 ^ v0) + (salt ^ (v0 >>> 3)) + 3;
       ^
    (see https://errorprone.info/bugpattern/NarrowingCompoundAssignment)
  Did you mean 'v1 = (short) (v1 - (((v0 << 2) + 2 ^ v0) + (salt ^ (v0 >>> 3)) + 3));'?
java/com/google/gerrit/server/util/IdGenerator.java:58: warning: [NarrowingCompoundAssignment] Compound assignments from int to short hide lossy casts
    v0 -= ((v1 << 2) + 0 ^ v1) + (salt ^ (v1 >>> 3)) + 1;
       ^
    (see https://errorprone.info/bugpattern/NarrowingCompoundAssignment)
  Did you mean 'v0 = (short) (v0 - (((v1 << 2) + 0 ^ v1) + (salt ^ (v1 >>> 3)) + 1));'?
java/com/google/gerrit/server/change/ArchiveFormat.java:38: warning: [ImmutableEnumChecker] enums should be immutable: 'ArchiveFormat' has field 'format' of type 'org.eclipse.jgit.api.ArchiveCommand.Format<?>', the declaration of type 'org.eclipse.jgit.api.ArchiveCommand.Format<?>' is not annotated with @com.google.errorprone.annotations.Immutable
  private final ArchiveCommand.Format<?> format;
                                         ^
    (see https://errorprone.info/bugpattern/ImmutableEnumChecker)
java/com/google/gerrit/server/change/ChangeKindCacheImpl.java:386: warning: [ReferenceEquality] Comparison using reference equality instead of value equality
              && (ps.getId().get() > priorPs.getId().get() || priorPs == patch)) {
                                                                      ^
    (see https://errorprone.info/bugpattern/ReferenceEquality)
  Did you mean '&& (ps.getId().get() > priorPs.getId().get() || priorPs.equals(patch))) {'?
java/com/google/gerrit/server/change/ChangeKindCacheImpl.java:396: warning: [ReferenceEquality] Comparison using reference equality instead of value equality
        if (priorPs != patch) {
                    ^
    (see https://errorprone.info/bugpattern/ReferenceEquality)
  Did you mean 'if (!priorPs.equals(patch)) {'?
java/com/google/gerrit/server/index/AbstractIndexModule.java:78: warning: [TypeParameterUnusedInFormals] Declaring a type parameter that is only used in the return type is a misuse of generics: operations on the type parameter are unchecked, it hides unsafe casts at invocations of the method, and it interacts badly with method overload resolution.
  private static <T> T createDummyIndexFactory(Schema<?> schema) {
                       ^
    (see https://errorprone.info/bugpattern/TypeParameterUnusedInFormals)
java/com/google/gerrit/server/notedb/NotesMigrationState.java:60: warning: [ImmutableEnumChecker] enums should be immutable: 'NotesMigrationState' has field 'snapshot' of type 'com.google.gerrit.server.notedb.NotesMigration.Snapshot', the declaration of type 'com.google.gerrit.server.notedb.NotesMigration.Snapshot' is not annotated with @com.google.errorprone.annotations.Immutable
  private final Snapshot snapshot;
                         ^
    (see https://errorprone.info/bugpattern/ImmutableEnumChecker)
java/com/google/gerrit/server/patch/PatchScriptBuilder.java:504: warning: [ReferenceEquality] Comparison using reference equality instead of value equality
              && (aId == within || within.equals(aId))) {
                      ^
    (see https://errorprone.info/bugpattern/ReferenceEquality)
  Did you mean '&& (Objects.equals(aId, within) || within.equals(aId))) {' or '&& (aId.equals(within) || within.equals(aId))) {'?
java/com/google/gerrit/server/patch/PatchScriptBuilder.java:524: warning: [ReferenceEquality] Comparison using reference equality instead of value equality
              && (aId == within || within.equals(aId))) {
                      ^
    (see https://errorprone.info/bugpattern/ReferenceEquality)
  Did you mean '&& (Objects.equals(aId, within) || within.equals(aId))) {' or '&& (aId.equals(within) || within.equals(aId))) {'?
[500 / 501] 2 / 2 tests; Testing //plugins/git-refs-filter:git_refs_filter_tests; 9s remote-cache, processwrapper-sandbox
INFO: Elapsed time: 90.699s, Critical Path: 71.76s
INFO: 137 processes: 71 processwrapper-sandbox, 66 worker.
INFO: Build completed successfully, 144 total actions
//plugins/git-refs-filter:git_refs_filter_tests                          PASSED in 9.4s
//tools/bzl:always_pass_test                                             PASSED in 0.1s

Executed 2 out of 2 tests: 2 tests pass.
There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.
INFO: Build completed successfully, 144 total actions
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
Nov 22, 2021 9:29:55 AM java.util.jar.Attributes read
WARNING: Duplicate name in Manifest: Implementation-Version.
Ensure that the manifest does not have duplicate entries, and
that blank lines separate individual sections in both your
manifest and in the META-INF/MANIFEST.MF entry in the jar file.
[module-git-refs-filter-bazel-stable-2.16] $ /bin/bash -e /tmp/jenkins7120092032210717548.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  1947    0  1947    0     0  45279      0 --:--:-- --:--:-- --:--:-- 45279
Archiving artifacts
Finished: SUCCESS