{"action":"created","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/1052","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1052/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1052/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1052/events","html_url":"https://github.com/bazelbuild/bazel/issues/1052","id":141353380,"number":1052,"title":"Bazel runs tests in a sandbox even with \"local = 1\"","user":{"login":"philwo","id":504652,"avatar_url":"https://avatars0.githubusercontent.com/u/504652?v=4","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},"labels":[{"id":192364170,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/P2","name":"P2","color":"e99695","default":false},{"id":335713630,"url":"https://api.github.com/repos/bazelbuild/bazel/labels/category:%20misc%20%3E%20testing","name":"category: misc > testing","color":"d4c5f9","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":"hermione521","id":1552651,"avatar_url":"https://avatars0.githubusercontent.com/u/1552651?v=4","gravatar_id":"","url":"https://api.github.com/users/hermione521","html_url":"https://github.com/hermione521","followers_url":"https://api.github.com/users/hermione521/followers","following_url":"https://api.github.com/users/hermione521/following{/other_user}","gists_url":"https://api.github.com/users/hermione521/gists{/gist_id}","starred_url":"https://api.github.com/users/hermione521/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hermione521/subscriptions","organizations_url":"https://api.github.com/users/hermione521/orgs","repos_url":"https://api.github.com/users/hermione521/repos","events_url":"https://api.github.com/users/hermione521/events{/privacy}","received_events_url":"https://api.github.com/users/hermione521/received_events","type":"User","site_admin":false},"assignees":[{"login":"hermione521","id":1552651,"avatar_url":"https://avatars0.githubusercontent.com/u/1552651?v=4","gravatar_id":"","url":"https://api.github.com/users/hermione521","html_url":"https://github.com/hermione521","followers_url":"https://api.github.com/users/hermione521/followers","following_url":"https://api.github.com/users/hermione521/following{/other_user}","gists_url":"https://api.github.com/users/hermione521/gists{/gist_id}","starred_url":"https://api.github.com/users/hermione521/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hermione521/subscriptions","organizations_url":"https://api.github.com/users/hermione521/orgs","repos_url":"https://api.github.com/users/hermione521/repos","events_url":"https://api.github.com/users/hermione521/events{/privacy}","received_events_url":"https://api.github.com/users/hermione521/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-03-16T17:58:24Z","updated_at":"2018-03-20T17:57:23Z","closed_at":"2016-04-08T14:49:48Z","author_association":"OWNER","body":"In our documentation, we say that when you set the \"local = 1\" attribute on a test, the test will run without sandboxing. This is supposed to be equivalent to setting the \"tags = ['local']\" attribute on a test: http://bazel.io/docs/be/common-definitions.html#test.local\n\nHowever, when I run this test, it actually executes in a sandbox, as seen in \"ps axuf\":\n\n```\nsh_test(\n    name = \"example_test\",\n    srcs = [\"example_test.sh\"],\n    local = 1,\n)\n```\n\nThis test however runs without a sandbox:\n\n```\nsh_test(\n    name = \"example_test\",\n    srcs = [\"example_test.sh\"],\n    tags = [\"local\"],\n)\n```\n\nSo, it looks like the \"local = 1\" logic is somehow broken. We should write a test for this behavior and then fix the bug.\n"},"comment":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/comments/374696672","html_url":"https://github.com/bazelbuild/bazel/issues/1052#issuecomment-374696672","issue_url":"https://api.github.com/repos/bazelbuild/bazel/issues/1052","id":374696672,"user":{"login":"edwardmjm","id":3351545,"avatar_url":"https://avatars1.githubusercontent.com/u/3351545?v=4","gravatar_id":"","url":"https://api.github.com/users/edwardmjm","html_url":"https://github.com/edwardmjm","followers_url":"https://api.github.com/users/edwardmjm/followers","following_url":"https://api.github.com/users/edwardmjm/following{/other_user}","gists_url":"https://api.github.com/users/edwardmjm/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardmjm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardmjm/subscriptions","organizations_url":"https://api.github.com/users/edwardmjm/orgs","repos_url":"https://api.github.com/users/edwardmjm/repos","events_url":"https://api.github.com/users/edwardmjm/events{/privacy}","received_events_url":"https://api.github.com/users/edwardmjm/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T17:57:23Z","updated_at":"2018-03-20T17:57:23Z","author_association":"NONE","body":"I hit this issue as well, what's the conclusion?\r\nI'd like to run a test in my source tree, but can't find a way to address it.\r\nBoth `local = 1` and `tags = [\"local\"]` put my tests into a sandbox.\r\nMy bazel version is 0.10.0"}}
{"actor":{"display_login":"edwardmjm"}}