{"action":"closed","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/1413","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1413/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1413/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1413/events","html_url":"https://github.com/bazelbuild/bazel/issues/1413","id":160569276,"number":1413,"title":"Tests all fail with distributed caching enabled","user":{"login":"dfabulich","id":96150,"avatar_url":"https://avatars2.githubusercontent.com/u/96150?v=3","gravatar_id":"","url":"https://api.github.com/users/dfabulich","html_url":"https://github.com/dfabulich","followers_url":"https://api.github.com/users/dfabulich/followers","following_url":"https://api.github.com/users/dfabulich/following{/other_user}","gists_url":"https://api.github.com/users/dfabulich/gists{/gist_id}","starred_url":"https://api.github.com/users/dfabulich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfabulich/subscriptions","organizations_url":"https://api.github.com/users/dfabulich/orgs","repos_url":"https://api.github.com/users/dfabulich/repos","events_url":"https://api.github.com/users/dfabulich/events{/privacy}","received_events_url":"https://api.github.com/users/dfabulich/received_events","type":"User","site_admin":false},"labels":[{"id":525110468,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/category:%20service%20APIs","name":"category: service APIs","color":"d4c5f9","default":false},{"id":550641152,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/Customer%20impact","name":"Customer impact","color":"f9d0c4","default":false},{"id":192364170,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/P2","name":"P2","color":"e99695","default":false},{"id":106503259,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/type:%20bug","name":"type: bug","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":{"login":"ulfjack","id":7355745,"avatar_url":"https://avatars3.githubusercontent.com/u/7355745?v=3","gravatar_id":"","url":"https://api.github.com/users/ulfjack","html_url":"https://github.com/ulfjack","followers_url":"https://api.github.com/users/ulfjack/followers","following_url":"https://api.github.com/users/ulfjack/following{/other_user}","gists_url":"https://api.github.com/users/ulfjack/gists{/gist_id}","starred_url":"https://api.github.com/users/ulfjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulfjack/subscriptions","organizations_url":"https://api.github.com/users/ulfjack/orgs","repos_url":"https://api.github.com/users/ulfjack/repos","events_url":"https://api.github.com/users/ulfjack/events{/privacy}","received_events_url":"https://api.github.com/users/ulfjack/received_events","type":"User","site_admin":false},"assignees":[{"login":"ulfjack","id":7355745,"avatar_url":"https://avatars3.githubusercontent.com/u/7355745?v=3","gravatar_id":"","url":"https://api.github.com/users/ulfjack","html_url":"https://github.com/ulfjack","followers_url":"https://api.github.com/users/ulfjack/followers","following_url":"https://api.github.com/users/ulfjack/following{/other_user}","gists_url":"https://api.github.com/users/ulfjack/gists{/gist_id}","starred_url":"https://api.github.com/users/ulfjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulfjack/subscriptions","organizations_url":"https://api.github.com/users/ulfjack/orgs","repos_url":"https://api.github.com/users/ulfjack/repos","events_url":"https://api.github.com/users/ulfjack/events{/privacy}","received_events_url":"https://api.github.com/users/ulfjack/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/bazelbuild/bazel/milestones/5","html_url":"https://github.com/bazelbuild/bazel/milestone/5","labels_url":"https://api.github.com/repos/bazelbuild/bazel/milestones/5/labels","id":1717213,"number":5,"title":"0.6","description":"","creator":{"login":"damienmg","id":3721087,"avatar_url":"https://avatars1.githubusercontent.com/u/3721087?v=3","gravatar_id":"","url":"https://api.github.com/users/damienmg","html_url":"https://github.com/damienmg","followers_url":"https://api.github.com/users/damienmg/followers","following_url":"https://api.github.com/users/damienmg/following{/other_user}","gists_url":"https://api.github.com/users/damienmg/gists{/gist_id}","starred_url":"https://api.github.com/users/damienmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damienmg/subscriptions","organizations_url":"https://api.github.com/users/damienmg/orgs","repos_url":"https://api.github.com/users/damienmg/repos","events_url":"https://api.github.com/users/damienmg/events{/privacy}","received_events_url":"https://api.github.com/users/damienmg/received_events","type":"User","site_admin":false},"open_issues":202,"closed_issues":36,"state":"open","created_at":"2016-04-19T15:07:50Z","updated_at":"2017-04-20T09:10:33Z","due_on":"2017-06-30T07:00:00Z","closed_at":null},"comments":26,"created_at":"2016-06-16T03:19:17Z","updated_at":"2017-04-20T09:10:33Z","closed_at":"2017-04-20T09:10:33Z","body":"Consider this repository. https://github.com/dfabulich/hazelcast-junit-test\n\nIt has two targets, `app` and `apptest`.\n\n``` python\njava_library(\n    name='app',\n    srcs=glob(['src/main/java/**']),\n)\n\njava_test(\n    name='apptest',\n    srcs=glob(['src/test/java/**']),\n    test_class='com.redfin.AppTest',\n    size=\"small\",\n    deps=['app', '@junit//jar', '@hamcrest_core//jar'],\n)\n```\n\nThe test is a trivial test that always passes.\n\n``` java\npackage com.redfin;\n\npublic class App {\n    public String go() {\n        return \"hello\";\n    }\n}\n```\n\n``` java\npackage com.redfin;\n\nimport org.junit.Test;\n\npublic class AppTest {\n\n    @Test\n    public void testGo() throws Exception {\n        new App().go();\n    }\n}\n```\n\nIf you run `bazel test :apptest`, the test succeeds.\n\nNow run it with distributed caching enabled, following the instructions here: https://raw.githubusercontent.com/bazelbuild/bazel/79adf59e2973754c8c0415fcab45cd58c7c34697/src/main/java/com/google/devtools/build/lib/remote/README.md\n\n```\njava -jar hazelcast-3.5.4.jar &\n\nbazel clean && bazel test :apptest --hazelcast_node=127.0.0.1:5701 --spawn_strategy=remote\n```\n\nThe test now fails when it should succeed. The test log shows no apparent problem.\n\n```\n$ bazel clean && bazel test :apptest --hazelcast_node=127.0.0.1:5701 --spawn_strategy=remote\nINFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.\nINFO: Found 1 test target...\nFAIL: //:apptest (see /private/var/tmp/_bazel_dfabulich/bc91e687c045d0f8011faa3e2c77b2b4/execroot/hazelcast-junit-test/bazel-out/local-fastbuild/testlogs/apptest/test.log).\nTarget //:apptest up-to-date:\n  bazel-bin/apptest.jar\n  bazel-bin/apptest\nINFO: Elapsed time: 8.864s, Critical Path: 5.65s\n//:apptest                                                               FAILED in 5.3s\n  /private/var/tmp/_bazel_dfabulich/bc91e687c045d0f8011faa3e2c77b2b4/execroot/hazelcast-junit-test/bazel-out/local-fastbuild/testlogs/apptest/test.log\n\nExecuted 1 out of 1 test: 1 fails locally.\n$ more /private/var/tmp/_bazel_dfabulich/bc91e687c045d0f8011faa3e2c77b2b4/execroot/hazelcast-junit-test/bazel-out/local-fastbuild/testlogs/apptest/test.log\nexec ${PAGER:-/usr/bin/less} \"$0\" || exit 1\n-----------------------------------------------------------------------------\nJUnit4 Test Runner\n.\nTime: 5.053\n\nOK (1 test)\n\n\nBazelTestRunner exiting with a return value of 0\nJVM shutdown hooks (if any) will run now.\nThe JVM will exit once they complete.\n\n-- JVM shutdown starting at 2016-06-16 03:17:21 --\n```\n"}}
{"actor":{"display_login":"bazel-io"}}