00:04:52.766 ____Loading package: @bazel_tools//tools/test 00:04:53.843 ERROR: /home/jenkins/workspace/Gerrit-master-bazel/polygerrit-ui/app/BUILD:32:1: every rule of type _vulcanize_rule implicitly depends upon the target '@crisper//:cri...@2.0.2.npm_binary.tgz', but this target could not be found because of: no such package '@crisper//': failed [/usr/bin/python, /home/jenkins/workspace/Gerrit-master-bazel/tools/download_file.py, "-o", /home/jenkins/.cache/bazel/_bazel_jenkins/d6587ecb0efd8ed00f5e4c3a1f8fde87/external/crisper/cri...@2.0.2.npm_binary.tgz, "-u", "http://registry.npmjs.org/crisper/-/crisper-2.0.2.tgz", "-v", "7183c58cea33632fb036c91cefd1b43e390d22a2"]: Download http://registry.npmjs.org/crisper/-/crisper-2.0.2.tgz 00:04:53.850 http://registry.npmjs.org/crisper/-/crisper-2.0.2.tgz: 00:04:53.870 expected 7183c58cea33632fb036c91cefd1b43e390d22a2 00:04:53.906 received 188a7da3d00dcf0c64eff7f253d23dacffba7197
00:05:04.097 gerrit-reviewdb/src/test/java/com/google/gerrit/reviewdb/client/PatchSetTest.java:68: error: An unhandled exception was thrown by the Error Prone static analysis plugin. 00:05:04.103 assertThat(splitGroups("")).containsExactly(""); 00:05:04.109 ^ 00:05:04.113 Please report this at https://github.com/google/error-prone/issues/new and include the following: 00:05:04.117 00:05:04.117 error-prone version: 2.0.9-SNAPSHOT 00:05:04.121 Stack Trace: 00:05:04.128 com.sun.tools.javac.code.Symbol$CompletionFailure: class file for com.google.errorprone.annotations.CanIgnoreReturnValue not found
Have you forgotten to include any dependency anywhere?
Is there any Bazel build expert around? :-)
Luca.
Hi Gerrit Contributors,we do have now the Bazel build for Gerrit master on our CI ... but unfortunately fails, see last failover on [1].
It seems that it fails to verify the SHA1 of crisper-2.0.2 whilst downloading from Internet:
00:04:52.766 ____Loading package: @bazel_tools//tools/test
00:04:53.843 ERROR: /home/jenkins/workspace/Gerrit-master-bazel/polygerrit-ui/app/BUILD:32:1: every rule of type _vulcanize_rule implicitly depends upon the target '@crisper//:cri...@2.0.2.npm_binary.tgz', but this target could not be found because of: no such package '@crisper//': failed [/usr/bin/python, /home/jenkins/workspace/Gerrit-master-bazel/tools/download_file.py, "-o", /home/jenkins/.cache/bazel/_bazel_jenkins/d6587ecb0efd8ed00f5e4c3a1f8fde87/external/crisper/crisper@2.0.2.npm_binary.tgz, "-u", "http://registry.npmjs.org/crisper/-/crisper-2.0.2.tgz", "-v", "7183c58cea33632fb036c91cefd1b43e390d22a2"]: Download http://registry.npmjs.org/crisper/-/crisper-2.0.2.tgz
00:04:53.850 http://registry.npmjs.org/crisper/-/crisper-2.0.2.tgz: 00:04:53.870 expected 7183c58cea33632fb036c91cefd1b43e390d22a2 00:04:53.906 received 188a7da3d00dcf0c64eff7f253d23dacffba7197
I fixed this morning the crisper + vulcanizer parts of the Bazel build and we made a small step forward :-)Now the build fails for a completely different reason:00:05:04.097 gerrit-reviewdb/src/test/java/com/google/gerrit/reviewdb/client/PatchSetTest.java:68: error: An unhandled exception was thrown by the Error Prone static analysis plugin. 00:05:04.103 assertThat(splitGroups("")).containsExactly(""); 00:05:04.109 ^ 00:05:04.113 Please report this at https://github.com/google/error-prone/issues/new and include the following: 00:05:04.117 00:05:04.117 error-prone version: 2.0.9-SNAPSHOT 00:05:04.121 Stack Trace: 00:05:04.128 com.sun.tools.javac.code.Symbol$CompletionFailure: class file for com.google.errorprone.annotations.CanIgnoreReturnValue not found
On Thursday, October 20, 2016 at 12:53:01 AM UTC+2, lucamilanesio wrote:I fixed this morning the crisper + vulcanizer parts of the Bazel build and we made a small step forward :-)Now the build fails for a completely different reason:00:05:04.097 gerrit-reviewdb/src/test/java/com/google/gerrit/reviewdb/client/PatchSetTest.java:68: error: An unhandled exception was thrown by the Error Prone static analysis plugin. 00:05:04.103 assertThat(splitGroups("")).containsExactly(""); 00:05:04.109 ^ 00:05:04.113 Please report this at https://github.com/google/error-prone/issues/new and include the following: 00:05:04.117 00:05:04.117 error-prone version: 2.0.9-SNAPSHOT 00:05:04.121 Stack Trace: 00:05:04.128 com.sun.tools.javac.code.Symbol$CompletionFailure: class file for com.google.errorprone.annotations.CanIgnoreReturnValue not foundI also see this porblem on Bazel 0.3.1. This is a known issue in errorprone library that was fixed upstream: [1]. Updating bazel version to0.3.2 fixed that: [2].$ bazel versionBuild label: 0.3.2$ bazel build //gerrit-reviewdb:client_tests --verbose_failuresINFO: Found 1 target...Target //gerrit-reviewdb:client_tests up-to-date:bazel-bin/gerrit-reviewdb/client_tests.jarbazel-bin/gerrit-reviewdb/client_testsINFO: Elapsed time: 5.052s, Critical Path: 1.83s
--
--
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.
For more options, visit https://groups.google.com/d/optout.
Oh Yes, I saw that yesterday as I was trying to use the "latest and greatest" Bazel master :-(Btw: does it work for you locally?
On 20 Oct 2016, at 08:29, Damien Martin-guillerez <dmar...@google.com> wrote:What error did you saw? I actually had difficulty trying to build gerrit yesterday too. David, what was the version of bazel used for the development of gerrit?We test various project against bazel HEAD too on ci.bazel.io, maybe we should add gerrit to that list (in which case a list of target to build/test would be needed)
-repo that I cannot reachThanks, testing now, I forgot to checkout submodules last time.
+Repo and Gerrit Discussion back now I joined :)On Thu, Oct 20, 2016 at 9:48 AM Damien Martin-guillerez <dmar...@google.com> wrote:-repo that I cannot reachThanks, testing now, I forgot to checkout submodules last time.
On 20 Oct 2016, at 12:41, Damien Martin-guillerez <dmar...@google.com> wrote:So the problem with 0.3.1 comes from error when calling javadoc, are you sure you have all the correct dependencies shiped to the javadoc target?for 0.3.2, I get a problem because the workspace status info ends up in the stable status because of a2897bf. Fixing it (using the stable, the good fix might just be to use a glob to work for both 0.3.1 and 0.3.2) led me to the same javadoc errors.
^
bazel-out/local-fastbuild/bin/gerrit-extension-api/extension-api-javadoc.zip.source/com/google/gerrit/extensions/common/MergeInput.java:28: error: reference not found
* @see org.eclipse.jgit.merge.MergeStrategy
^
bazel-out/local-fastbuild/bin/gerrit-extension-api/extension-api-javadoc.zip.source/com/google/gerrit/extensions/events/GarbageCollectorListener.java:30: error: reference not found
* @see org.eclipse.jgit.api.GarbageCollectCommand#call()
^
So the problem with 0.3.1 comes from error when calling javadoc, are you sure you have all the correct dependencies shiped to the javadoc target?
$ bazel build //gerrit-reviewdb:client_tests
Can you see previous messages in this thread?
00:05:04.097 gerrit-reviewdb/src/test/java/com/google/gerrit/reviewdb/client/PatchSetTest.java:68: error: An unhandled exception was thrown by the Error Prone static analysis plugin. 00:05:04.103 assertThat(splitGroups("")).containsExactly(""); 00:05:04.109 ^ 00:05:04.113 Please report this at https://github.com/google/error-prone/issues/new and include the following: 00:05:04.117 00:05:04.117 error-prone version: 2.0.9-SNAPSHOT 00:05:04.121 Stack Trace: 00:05:04.128 com.sun.tools.javac.code.Symbol$CompletionFailure: class file for com.google.errorprone.annotations.CanIgnoreReturnValue not found
The build fails because the javadoc command returns an error code so bazel assume that the command failed.I would say to update the bzl extension for javadoc the same way the buck one were modified should fix the problem.
Hi Gerrit Contributors,we do have now the Bazel build for Gerrit master on our CI ... but unfortunately fails, see last failover on [1].
--
14:18:18 Time: 66.649 14:18:18 There was 1 failure: 14:18:18 1) testUpdate(com.google.gerrit.server.schema.SchemaUpdaterTest) 14:18:18 com.google.gwtorm.server.OrmException: update failure on system_config 14:18:18 at com.google.gwtorm.schema.sql.SqlDialect.convertError(SqlDialect.java:161) 14:18:18 at com.google.gwtorm.schema.sql.DialectH2.convertError(DialectH2.java:45) 14:18:19 at com.google.gwtorm.jdbc.JdbcAccess.convertError(JdbcAccess.java:466) 14:18:19 at com.google.gwtorm.jdbc.JdbcAccess.update(JdbcAccess.java:230) 14:18:19 at com.google.gerrit.server.schema.SchemaUpdater.updateSystemConfig(SchemaUpdater.java:143) 14:18:19 at com.google.gerrit.server.schema.SchemaUpdater.update(SchemaUpdater.java:115) 14:18:19 at com.google.gerrit.server.schema.SchemaUpdaterTest.testUpdate(SchemaUpdaterTest.java:130) 14:18:19 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 14:18:19 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 14:18:19 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 14:18:19 at java.lang.reflect.Method.invoke(Method.java:497) 14:18:19 at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) 14:18:19 at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) 14:18:19 at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) 14:18:19 at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) 14:18:19 at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) 14:18:19 at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) 14:18:19 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) 14:18:19 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) 14:18:19 at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) 14:18:19 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) 14:18:19 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) 14:18:19 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) 14:18:19 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) 14:18:19 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) 14:18:19 at org.junit.runners.ParentRunner.run(ParentRunner.java:309) 14:18:19 at org.junit.runners.Suite.runChild(Suite.java:127) 14:18:19 at org.junit.runners.Suite.runChild(Suite.java:26) 14:18:19 at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) 14:18:19 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) 14:18:19 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) 14:18:19 at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) 14:18:19 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) 14:18:19 at org.junit.runners.ParentRunner.run(ParentRunner.java:309) 14:18:19 at com.google.testing.junit.runner.junit4.CancellableRequestFactory$CancellableRunner.run(CancellableRequestFactory.java:90) 14:18:19 at org.junit.runner.JUnitCore.run(JUnitCore.java:160) 14:18:19 at org.junit.runner.JUnitCore.run(JUnitCore.java:138) 14:18:19 at com.google.testing.junit.runner.junit4.JUnit4Runner.run(JUnit4Runner.java:112) 14:18:19 at com.google.testing.junit.runner.BazelTestRunner.runTestsInSuite(BazelTestRunner.java:140) 14:18:19 at com.google.testing.junit.runner.BazelTestRunner.main(BazelTestRunner.java:79) 14:18:19 Caused by: org.h2.jdbc.JdbcBatchUpdateException: Value too long for column "SITE_PATH VARCHAR(255)": "'/home/jenkins/.cache/bazel/_bazel_jenkins/d6587ecb0efd8ed00f5e4c3a1f8fde87/bazel-sandbox/18d3166a-a3f4-4d1f-a91b-3ddab1ad0c62-1... (269)"; SQL statement: 14:18:19 UPDATE system_config SET register_email_private_key=?,site_path=?,admin_group_id=?,anonymous_group_id=?,registered_group_id=?,wild_project_name=?,batch_users_group_id=?,owner_group_id=?,admin_group_uuid=?,batch_users_group_uuid=? WHERE singleton=? [22001-176]