Started by an SCM change Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on ha:////4OWSDErsluSoD++fRj0IhlDimKcfGcOBtUCQfVjvWZPIAAAAqh+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PyU1x6OyILUoJzMv2y+/JJUBAhiZGBgqihhk0NSjKDWzXb3RdlLBUSYGJk8GtpzUvPSSDB8G5tKinBIGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAyFEgY5/eT83ILSktQi/ZT85OzUIl0DAzMLY6N0ExOzPEsLAAxYYITTAAAAdocker-006832g446n98 on gcloud66 (bazel-debian bazel-chrome-69 bazel-debian-chrome-69) in workspace /home/jenkins/workspace/plugin-audit-sl4j-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/plugin-audit-sl4j-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/plugins/audit-sl4j # timeout=10 Fetching upstream changes from https://gerrit.googlesource.com/a/plugins/audit-sl4j 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/plugins/audit-sl4j +refs/heads/*:refs/remotes/origin/* # timeout=10 > /usr/bin/git rev-parse origin/stable-2.16^{commit} # timeout=10 > /usr/bin/git rev-parse refs/remotes/gerrit/origin/stable-2.16^{commit} # timeout=10 > /usr/bin/git rev-parse refs/remotes/origin/stable-2.16^{commit} # timeout=10 > /usr/bin/git rev-parse refs/remotes/origin/origin/stable-2.16^{commit} # timeout=10 Checking out Revision c8b35c6de1930f269a9b79a59d68160edf6c1a92 (origin/stable-2.16) > /usr/bin/git config core.sparsecheckout # timeout=10 > /usr/bin/git checkout -f c8b35c6de1930f269a9b79a59d68160edf6c1a92 # timeout=10 Commit message: "Transform http and ssh logs into audit logs" First time build. Skipping changelog. [plugin-audit-sl4j-bazel-stable-2.16] $ /bin/bash -e /tmp/jenkins1227376576535529538.sh [plugin-audit-sl4j-bazel-stable-2.16] $ /bin/bash -e /tmp/jenkins4579843913317389973.sh Java set to: /usr/lib/jvm/java-8-openjdk-amd64/bin/java Previous HEAD position was c8b35c6de1 Transform http and ssh logs into audit logs 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/plugin-audit-sl4j-bazel-stable-2.16/plugins/codemirror-editor'... Cloning into '/home/jenkins/workspace/plugin-audit-sl4j-bazel-stable-2.16/plugins/commit-message-length-validator'... Cloning into '/home/jenkins/workspace/plugin-audit-sl4j-bazel-stable-2.16/plugins/download-commands'... Cloning into '/home/jenkins/workspace/plugin-audit-sl4j-bazel-stable-2.16/plugins/hooks'... Cloning into '/home/jenkins/workspace/plugin-audit-sl4j-bazel-stable-2.16/plugins/replication'... Cloning into '/home/jenkins/workspace/plugin-audit-sl4j-bazel-stable-2.16/plugins/reviewnotes'... Cloning into '/home/jenkins/workspace/plugin-audit-sl4j-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/plugins/audit-sl4j * branch HEAD -> FETCH_HEAD * [new tag] v2.16 -> v2.16 * [new tag] v3.0 -> v3.0 * [new tag] v3.3.0 -> v3.3.0 openjdk full version "1.8.0_292-b10" 2021/12/06 00:42:21 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: c7fe7e63-9a42-46f3-92e0-33cb781c6950 Loading: Loading: 0 packages loaded Loading: 0 packages loaded Loading: 0 packages loaded Analyzing: target //plugins/audit-sl4j:audit-sl4j (1 packages loaded) Analyzing: target //plugins/audit-sl4j:audit-sl4j (1 packages loaded, 0 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (10 packages loaded, 7 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (10 packages loaded, 7 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (10 packages loaded, 7 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (10 packages loaded, 7 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (10 packages loaded, 7 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (11 packages loaded, 7 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (16 packages loaded, 103 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (73 packages loaded, 543 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (115 packages loaded, 2994 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (119 packages loaded, 3002 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (149 packages loaded, 3065 targets configured) Analyzing: target //plugins/audit-sl4j:audit-sl4j (191 packages loaded, 3192 targets configured) INFO: Analyzed target //plugins/audit-sl4j:audit-sl4j (199 packages loaded, 4197 targets configured). INFO: Found 1 target... [0 / 159] [Prepa] Writing file build-info-redacted.properties [23 / 161] Extracting interface @dev//jar:jar; 4s remote-cache, processwrapper-sandbox ... (28 actions, 26 running) [110 / 365] Extracting interface @user//jar:jar; 7s remote-cache, processwrapper-sandbox ... (31 actions, 30 running) [132 / 365] Compiling external/com_google_protobuf/src/google/protobuf/implicit_weak_message.cc [for host]; 2s remote-cache, processwrapper-sandbox ... (31 actions, 30 running) [152 / 365] Compiling external/com_google_protobuf/src/google/protobuf/wire_format.cc [for host]; 10s remote-cache, processwrapper-sandbox ... (32 actions running) [173 / 365] Compiling external/com_google_protobuf/src/google/protobuf/descriptor.pb.cc [for host]; 20s remote-cache, processwrapper-sandbox ... (32 actions running) [194 / 365] Compiling external/com_google_protobuf/src/google/protobuf/descriptor.cc [for host]; 28s remote-cache, processwrapper-sandbox ... (32 actions running) [210 / 365] Compiling external/com_google_protobuf/src/google/protobuf/descriptor.cc [for host]; 44s remote-cache, processwrapper-sandbox ... (32 actions running) [235 / 365] Compiling external/com_google_protobuf/src/google/protobuf/util/internal/protostream_objectsource.cc [for host]; 19s remote-cache, processwrapper-sandbox ... (32 actions running) [265 / 365] Compiling external/com_google_protobuf/src/google/protobuf/compiler/command_line_interface.cc [for host]; 21s remote-cache, processwrapper-sandbox ... (32 actions running) [304 / 365] Compiling external/com_google_protobuf/src/google/protobuf/compiler/js/js_generator.cc [for host]; 24s remote-cache, processwrapper-sandbox ... (31 actions running) [345 / 365] Compiling Java headers external/com_google_protobuf/libprotobuf_java-hjar.jar (123 source files, 1 source jar); 13s remote-cache, processwrapper-sandbox [359 / 365] [Prepa] Compiling Java headers java/com/google/gerrit/sshd/libsshd-hjar.jar (101 source files) Target //plugins/audit-sl4j:audit-sl4j up-to-date: bazel-bin/plugins/audit-sl4j/audit-sl4j.jar INFO: Elapsed time: 271.980s, Critical Path: 115.60s INFO: 348 processes: 342 processwrapper-sandbox, 6 worker. INFO: Build completed successfully, 365 total actions INFO: Build completed successfully, 365 total actions INFO: Invocation ID: 0293e210-f155-455a-aa55-6bbf1b7981c7 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 (3 packages loaded, 236 targets configured) Analyzing: 2 targets (36 packages loaded, 4314 targets configured) Analyzing: 2 targets (52 packages loaded, 4591 targets configured) Analyzing: 2 targets (69 packages loaded, 4678 targets configured) INFO: Analyzed 2 targets (75 packages loaded, 4728 targets configured). INFO: Found 2 test targets... [0 / 1] [Prepa] BazelWorkspaceStatusAction stable-status.txt [320 / 501] 1 / 2 tests; [Prepa] BazelWorkspaceStatusAction stable-status.txt ... (30 actions, 21 running) [366 / 501] 1 / 2 tests; Building java/com/google/gerrit/extensions/libclient-class.jar (24 source files); 1s remote-cache, worker ... (31 actions, 19 running) [377 / 501] 1 / 2 tests; Building java/com/google/gerrit/server/libconstants.jar (1 source file); 3s remote-cache, worker ... (32 actions, 21 running) [380 / 501] 1 / 2 tests; Building java/com/google/gerrit/server/libconstants.jar (1 source file); 5s remote-cache, worker ... (32 actions, 22 running) [386 / 501] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 7s remote-cache, worker ... (31 actions, 23 running) [395 / 501] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 9s remote-cache, worker ... (32 actions, 20 running) [397 / 501] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 12s remote-cache, worker ... (32 actions, 20 running) [400 / 501] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 18s remote-cache, worker ... (31 actions, 18 running) [408 / 501] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 22s remote-cache, worker ... (32 actions, 20 running) [410 / 501] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 27s remote-cache, worker ... (32 actions, 20 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 caching(CacheControl c) { ^ (see https://errorprone.info/bugpattern/TypeParameterUnusedInFormals) [425 / 501] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 32s remote-cache, worker ... (32 actions, 24 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 { ^ (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;'? [441 / 501] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 38s remote-cache, worker ... (32 actions, 23 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());'? [448 / 501] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 45s remote-cache, worker ... (32 actions, 20 running) [453 / 501] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 54s remote-cache, worker ... (32 actions, 20 running) 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")'? 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 { ^ (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)) {'? [459 / 501] 1 / 2 tests; Building external/com_google_protobuf/libprotobuf_java.jar (123 source files, 1 source jar); 63s remote-cache, worker ... (32 actions, 22 running) [470 / 501] 1 / 2 tests; Building java/com/google/gerrit/server/libserver-class.jar (991 source files) and running annotation processors (AutoAnnotationProcessor, AutoValueProcessor); 37s remote-cache, worker ... (32 actions, 22 running) [487 / 501] 1 / 2 tests; Building java/com/google/gerrit/server/libserver-class.jar (991 source files) and running annotation processors (AutoAnnotationProcessor, AutoValueProcessor); 49s remote-cache, worker ... (16 actions, 13 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/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 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) [499 / 501] 1 / 2 tests; Building java/com/google/gerrit/server/libserver-class.jar (991 source files) and running annotation processors (AutoAnnotationProcessor, AutoValueProcessor); 64s remote-cache, worker 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 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))) {'? [501 / 502] 1 / 2 tests; Testing //plugins/audit-sl4j:audit_sl4j_tests; 10s remote-cache, processwrapper-sandbox FAIL: //plugins/audit-sl4j:audit_sl4j_tests (see /home/jenkins/.cache/bazel/_bazel_jenkins/168e7efc9753f073cc5fe0649fb03318/execroot/gerrit/bazel-out/k8-fastbuild/testlogs/plugins/audit-sl4j/audit_sl4j_tests/test.log) INFO: From Testing //plugins/audit-sl4j:audit_sl4j_tests: ==================== Test output for //plugins/audit-sl4j:audit_sl4j_tests: JUnit4 Test Runner .INFO com.google.gerrit.server.git.WorkQueue : Adding metrics for 'WorkQueue' queue INFO com.google.gerrit.server.git.WorkQueue : Adding metrics for 'Index-Interactive' queue INFO com.google.gerrit.server.git.WorkQueue : Adding metrics for 'ReceiveCommits' queue WARN com.google.gerrit.server.documentation.QueryDocumentationExecutor : No index available INFO com.google.gerrit.server.rules.PrologEnvironment : reductionLimit: 100000, compileLimit: 1000000 INFO com.google.gerrit.server.config.ScheduleConfig : No schedule configuration for "gc". INFO com.google.gerrit.server.config.ScheduleConfig : No schedule configuration for "changeCleanup". WARN com.google.gerrit.server.plugins.PluginLoader : Unable to discover stale plugin files: /home/jenkins/.cache/bazel/_bazel_jenkins/168e7efc9753f073cc5fe0649fb03318/sandbox/processwrapper-sandbox/485/execroot/gerrit/_tmp/482ca540946bad1b8b61e0334837e14a/gerrit_test_1595734230970200700/tmp INFO com.google.gerrit.server.plugins.PluginLoader : /home/jenkins/.cache/bazel/_bazel_jenkins/168e7efc9753f073cc5fe0649fb03318/sandbox/processwrapper-sandbox/485/execroot/gerrit/_tmp/482ca540946bad1b8b61e0334837e14a/gerrit_test_1595734230970200700/plugins does not exist; creating INFO com.google.gerrit.server.plugins.PluginLoader : Loading plugins from /home/jenkins/.cache/bazel/_bazel_jenkins/168e7efc9753f073cc5fe0649fb03318/sandbox/processwrapper-sandbox/485/execroot/gerrit/_tmp/482ca540946bad1b8b61e0334837e14a/gerrit_test_1595734230970200700/plugins INFO com.google.gerrit.server.config.ScheduleConfig : No schedule configuration for "accountDeactivation". log4j:WARN No appenders could be found for logger (com.google.gerrit.server.config.ScheduleConfig). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. E.INFO com.google.gerrit.server.git.WorkQueue : Adding metrics for 'WorkQueue' queue INFO com.google.gerrit.server.git.WorkQueue : Adding metrics for 'Index-Interactive' queue INFO com.google.gerrit.server.git.WorkQueue : Adding metrics for 'ReceiveCommits' queue WARN com.google.gerrit.server.documentation.QueryDocumentationExecutor : No index available INFO com.google.gerrit.server.rules.PrologEnvironment : reductionLimit: 100000, compileLimit: 1000000 INFO com.google.gerrit.server.config.ScheduleConfig : No schedule configuration for "gc". INFO com.google.gerrit.server.config.ScheduleConfig : No schedule configuration for "changeCleanup". WARN com.google.gerrit.server.plugins.PluginLoader : Unable to discover stale plugin files: /home/jenkins/.cache/bazel/_bazel_jenkins/168e7efc9753f073cc5fe0649fb03318/sandbox/processwrapper-sandbox/485/execroot/gerrit/_tmp/482ca540946bad1b8b61e0334837e14a/gerrit_test_7209031850170684609/tmp INFO com.google.gerrit.server.plugins.PluginLoader : /home/jenkins/.cache/bazel/_bazel_jenkins/168e7efc9753f073cc5fe0649fb03318/sandbox/processwrapper-sandbox/485/execroot/gerrit/_tmp/482ca540946bad1b8b61e0334837e14a/gerrit_test_7209031850170684609/plugins does not exist; creating INFO com.google.gerrit.server.plugins.PluginLoader : Loading plugins from /home/jenkins/.cache/bazel/_bazel_jenkins/168e7efc9753f073cc5fe0649fb03318/sandbox/processwrapper-sandbox/485/execroot/gerrit/_tmp/482ca540946bad1b8b61e0334837e14a/gerrit_test_7209031850170684609/plugins INFO com.google.gerrit.server.config.ScheduleConfig : No schedule configuration for "accountDeactivation". E.............. Time: 23.452 There were 2 failures: 1) testHttpCsvAudit(com.googlesource.gerrit.plugins.auditsl4j.LoggerAuditToCsvTest) expected to be true at com.googlesource.gerrit.plugins.auditsl4j.LoggerAuditToCsvTest.testHttpCsvAudit(LoggerAuditToCsvTest.java:55) 2) testHttpJsonAudit(com.googlesource.gerrit.plugins.auditsl4j.LoggerAuditToJsonTest) expected to be true at com.googlesource.gerrit.plugins.auditsl4j.LoggerAuditToJsonTest.testHttpJsonAudit(LoggerAuditToJsonTest.java:57) FAILURES!!! Tests run: 16, Failures: 2 BazelTestRunner exiting with a return value of 1 JVM shutdown hooks (if any) will run now. The JVM will exit once they complete. -- JVM shutdown starting at 2021-12-06 00:49:22 -- ================================================================================ INFO: Elapsed time: 141.540s, Critical Path: 105.25s INFO: 137 processes: 71 processwrapper-sandbox, 66 worker. INFO: Build completed, 1 test FAILED, 144 total actions //tools/bzl:always_pass_test PASSED in 0.3s //plugins/audit-sl4j:audit_sl4j_tests FAILED in 25.0s /home/jenkins/.cache/bazel/_bazel_jenkins/168e7efc9753f073cc5fe0649fb03318/execroot/gerrit/bazel-out/k8-fastbuild/testlogs/plugins/audit-sl4j/audit_sl4j_tests/test.log Executed 2 out of 2 tests: 1 test passes and 1 fails locally. 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, 1 test FAILED, 144 total actions Build step 'Execute shell' marked build as failure Archiving artifacts Finished: FAILURE