{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/2044","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2044/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2044/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2044/events","html_url":"https://github.com/bazelbuild/bazel/issues/2044","id":187464031,"number":2044,"title":"java_test: Classpath collision between external dependency on auto-value (1.4-rc1) with internally shipped auto-value (1.2) in TestRunner_deploy.jar","user":{"login":"davido","id":347173,"avatar_url":"https://avatars.githubusercontent.com/u/347173?v=3","gravatar_id":"","url":"https://api.github.com/users/davido","html_url":"https://github.com/davido","followers_url":"https://api.github.com/users/davido/followers","following_url":"https://api.github.com/users/davido/following{/other_user}","gists_url":"https://api.github.com/users/davido/gists{/gist_id}","starred_url":"https://api.github.com/users/davido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davido/subscriptions","organizations_url":"https://api.github.com/users/davido/orgs","repos_url":"https://api.github.com/users/davido/repos","events_url":"https://api.github.com/users/davido/events{/privacy}","received_events_url":"https://api.github.com/users/davido/received_events","type":"User","site_admin":false},"labels":[{"id":288539189,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/category:%20rules%20%3E%20java","name":"category: rules > java","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":{"login":"philwo","id":504652,"avatar_url":"https://avatars.githubusercontent.com/u/504652?v=3","gravatar_id":"","url":"https://api.github.com/users/philwo","html_url":"https://github.com/philwo","followers_url":"https://api.github.com/users/philwo/followers","following_url":"https://api.github.com/users/philwo/following{/other_user}","gists_url":"https://api.github.com/users/philwo/gists{/gist_id}","starred_url":"https://api.github.com/users/philwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwo/subscriptions","organizations_url":"https://api.github.com/users/philwo/orgs","repos_url":"https://api.github.com/users/philwo/repos","events_url":"https://api.github.com/users/philwo/events{/privacy}","received_events_url":"https://api.github.com/users/philwo/received_events","type":"User","site_admin":false},"assignees":[{"login":"philwo","id":504652,"avatar_url":"https://avatars.githubusercontent.com/u/504652?v=3","gravatar_id":"","url":"https://api.github.com/users/philwo","html_url":"https://github.com/philwo","followers_url":"https://api.github.com/users/philwo/followers","following_url":"https://api.github.com/users/philwo/following{/other_user}","gists_url":"https://api.github.com/users/philwo/gists{/gist_id}","starred_url":"https://api.github.com/users/philwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwo/subscriptions","organizations_url":"https://api.github.com/users/philwo/orgs","repos_url":"https://api.github.com/users/philwo/repos","events_url":"https://api.github.com/users/philwo/events{/privacy}","received_events_url":"https://api.github.com/users/philwo/received_events","type":"User","site_admin":false},{"login":"lberki","id":3524818,"avatar_url":"https://avatars.githubusercontent.com/u/3524818?v=3","gravatar_id":"","url":"https://api.github.com/users/lberki","html_url":"https://github.com/lberki","followers_url":"https://api.github.com/users/lberki/followers","following_url":"https://api.github.com/users/lberki/following{/other_user}","gists_url":"https://api.github.com/users/lberki/gists{/gist_id}","starred_url":"https://api.github.com/users/lberki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lberki/subscriptions","organizations_url":"https://api.github.com/users/lberki/orgs","repos_url":"https://api.github.com/users/lberki/repos","events_url":"https://api.github.com/users/lberki/events{/privacy}","received_events_url":"https://api.github.com/users/lberki/received_events","type":"User","site_admin":false},{"login":"kush-c","id":8073076,"avatar_url":"https://avatars.githubusercontent.com/u/8073076?v=3","gravatar_id":"","url":"https://api.github.com/users/kush-c","html_url":"https://github.com/kush-c","followers_url":"https://api.github.com/users/kush-c/followers","following_url":"https://api.github.com/users/kush-c/following{/other_user}","gists_url":"https://api.github.com/users/kush-c/gists{/gist_id}","starred_url":"https://api.github.com/users/kush-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kush-c/subscriptions","organizations_url":"https://api.github.com/users/kush-c/orgs","repos_url":"https://api.github.com/users/kush-c/repos","events_url":"https://api.github.com/users/kush-c/events{/privacy}","received_events_url":"https://api.github.com/users/kush-c/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-11-05T00:17:12Z","updated_at":"2016-11-08T20:36:57Z","closed_at":null,"body":"/CC @dborowitz @hanwen \r\n\r\nNot sure, if it's auto-value or Bazel issue. Reporting it here, because it works as expected with Buck, but failing with Bazel:\r\n\r\nhttps://gerrit-ci.gerritforge.com/view/Gerrit/job/Gerrit-master-bazel/203/console\r\n\r\nAfter upgrading Bazel to 0.4.0 and auto-value to `com.google.auto.value:auto-value:1.4-rc1`, our unit test sarted to fail:\r\n\r\n```\r\n  $ bazel test --test_output errors --test_summary detailed --flaky_test_attempts 3 --test_verbose_timeout_warnings //gerrit-common:auto_value_tests\r\nINFO: Found 1 test target...\r\nERROR: /home/davido/projects/gerrit2/gerrit-common/BUILD:71:1: Java compilation in rule '//gerrit-common:auto_value_tests' failed: Worker process sent response with exit code: 1.\r\ngerrit-common/src/test/java/com/google/gerrit/common/AutoValueTest.java:25: error: @AutoValue processor threw an exception: java.lang.NullPointerException\r\n  abstract static class Auto {\r\n                  ^\r\n  \tat com.google.auto.value.processor.AutoValueProcessor.getFieldOfClasses(AutoValueProcessor.java:566)\r\n  \tat com.google.auto.value.processor.AutoValueProcessor.allMethodExcludedAnnotations(AutoValueProcessor.java:818)\r\n  \tat com.google.auto.value.processor.AutoValueProcessor.defineVarsForType(AutoValueProcessor.java:763)\r\n  \tat com.google.auto.value.processor.AutoValueProcessor.processType(AutoValueProcessor.java:488)\r\n  \tat com.google.auto.value.processor.AutoValueProcessor.process(AutoValueProcessor.java:195)\r\n  \tat com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:803)\r\n  \tat com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:715)\r\n  \tat com.sun.tools.javac.processing.JavacProcessingEnvironment.access$2000(JavacProcessingEnvironment.java:93)\r\n  \tat com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1023)\r\n  \tat com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1130)\r\n  \tat com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1141)\r\n  \tat com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:832)\r\n  \tat com.sun.tools.javac.main.Main.compile(Main.java:253)\r\n  \tat com.google.devtools.build.buildjar.javac.BlazeJavacMain.compile(BlazeJavacMain.java:140)\r\n  \tat com.google.devtools.build.buildjar.javac.BlazeJavacMain.compile(BlazeJavacMain.java:132)\r\n  \tat com.google.devtools.build.buildjar.AbstractJavaBuilder$1.invokeJavac(AbstractJavaBuilder.java:66)\r\n  \tat com.google.devtools.build.buildjar.ReducedClasspathJavaLibraryBuilder.compileSources(ReducedClasspathJavaLibraryBuilder.java:81)\r\n  \tat com.google.devtools.build.buildjar.AbstractJavaBuilder.compileJavaLibrary(AbstractJavaBuilder.java:69)\r\n  \tat com.google.devtools.build.buildjar.AbstractJavaBuilder.run(AbstractJavaBuilder.java:108)\r\n  \tat com.google.devtools.build.buildjar.BazelJavaBuilder.processRequest(BazelJavaBuilder.java:92)\r\n  \tat com.google.devtools.build.buildjar.BazelJavaBuilder.runPersistentWorker(BazelJavaBuilder.java:70)\r\n  \tat com.google.devtools.build.buildjar.BazelJavaBuilder.main(BazelJavaBuilder.java:47)\r\ngerrit-common/src/test/java/com/google/gerrit/common/AutoValueTest.java:27: error: cannot find symbol\r\n      return new AutoValue_AutoValueTest_Auto(val);\r\n                 ^\r\n  symbol:   class AutoValue_AutoValueTest_Auto\r\n  location: class Auto\r\n2 errors\r\nTarget //gerrit-common:auto_value_tests failed to build\r\nUse --verbose_failures to see the command lines of failed build steps.\r\nINFO: Elapsed time: 0.754s, Critical Path: 0.27s\r\n\r\nExecuted 0 out of 1 test: 1 fails to build.\r\n```\r\n\r\nInteresting enough, on the same code base, Buck build just works:\r\n\r\n```\r\n$ buck test //gerrit-common:auto_value_tests\r\nShutting down nailgun server...\r\nUsing watchman.\r\n[-] PROCESSING BUCK FILES...FINISHED 0.1s [100%] 🐳  New buck daemon\r\n[-] DOWNLOADING... (0.00 B/S AVG, TOTAL: 0.00 B, 0 Artifacts)\r\n[-] BUILDING...FINISHED 1.7s [100%] (24/24 JOBS, 24 UPDATED, 2 [8.3%] CACHE MISS)\r\n[-] TESTING...FINISHED 0.4s (1 PASS/0 FAIL)\r\nRESULTS FOR //gerrit-common:auto_value_tests\r\nPASS    <100ms  1 Passed   0 Skipped   0 Failed   com.google.gerrit.common.AutoValueTest\r\nTESTS PASSED\r\n```\r\n\r\nBazel vesion:\r\n\r\n$ bazel version\r\nBuild label: 0.4.0"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/259252156","html_url":"https://github.com/bazelbuild/bazel/issues/2044#issuecomment-259252156","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2044","id":259252156,"user":{"login":"cgrushko","id":1998689,"avatar_url":"https://avatars.githubusercontent.com/u/1998689?v=3","gravatar_id":"","url":"https://api.github.com/users/cgrushko","html_url":"https://github.com/cgrushko","followers_url":"https://api.github.com/users/cgrushko/followers","following_url":"https://api.github.com/users/cgrushko/following{/other_user}","gists_url":"https://api.github.com/users/cgrushko/gists{/gist_id}","starred_url":"https://api.github.com/users/cgrushko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgrushko/subscriptions","organizations_url":"https://api.github.com/users/cgrushko/orgs","repos_url":"https://api.github.com/users/cgrushko/repos","events_url":"https://api.github.com/users/cgrushko/events{/privacy}","received_events_url":"https://api.github.com/users/cgrushko/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T20:36:57Z","updated_at":"2016-11-08T20:36:57Z","body":"Yep, moving the TestRunner to the end might cause the TestRunner to fail. Disregard the idea :)"}}
{"actor":{"display_login":"cgrushko"}}