{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/3523","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/3523/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/3523/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/3523/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/3523","id":54482048,"number":3523,"title":"End to end tests incorrectly establish Kubernetes root","user":{"login":"satnam6502","id":6164339,"avatar_url":"https://avatars.githubusercontent.com/u/6164339?v=3","gravatar_id":"","url":"https://api.github.com/users/satnam6502","html_url":"https://github.com/satnam6502","followers_url":"https://api.github.com/users/satnam6502/followers","following_url":"https://api.github.com/users/satnam6502/following{/other_user}","gists_url":"https://api.github.com/users/satnam6502/gists{/gist_id}","starred_url":"https://api.github.com/users/satnam6502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satnam6502/subscriptions","organizations_url":"https://api.github.com/users/satnam6502/orgs","repos_url":"https://api.github.com/users/satnam6502/repos","events_url":"https://api.github.com/users/satnam6502/events{/privacy}","received_events_url":"https://api.github.com/users/satnam6502/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/kind/bug","name":"kind/bug","color":"ff0000"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/priority/P2","name":"priority/P2","color":"fbca04"},{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/labels/team/testing","name":"team/testing","color":"d2b48c"}],"state":"open","locked":false,"assignee":{"login":"satnam6502","id":6164339,"avatar_url":"https://avatars.githubusercontent.com/u/6164339?v=3","gravatar_id":"","url":"https://api.github.com/users/satnam6502","html_url":"https://github.com/satnam6502","followers_url":"https://api.github.com/users/satnam6502/followers","following_url":"https://api.github.com/users/satnam6502/following{/other_user}","gists_url":"https://api.github.com/users/satnam6502/gists{/gist_id}","starred_url":"https://api.github.com/users/satnam6502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satnam6502/subscriptions","organizations_url":"https://api.github.com/users/satnam6502/orgs","repos_url":"https://api.github.com/users/satnam6502/repos","events_url":"https://api.github.com/users/satnam6502/events{/privacy}","received_events_url":"https://api.github.com/users/satnam6502/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-01-15T17:57:26Z","updated_at":"2015-02-23T12:40:20Z","closed_at":null,"body":"Our end to end tests do not properly detect the root of the Kubernetes install to use because they try to get the name of the binary and this is going to be a problem when the tests are run with `go run e2e.go` as we describe in our [documentation](https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/devel/development.md) which issues commands from the `hack` directory -- but the binary will be somewhere in `/tmp/...`\r\n\r\n```\r\n$ cd hack/\r\n$ go run e2e.go --build\r\n2015/01/15 09:51:58 Running: build-release\r\n2015/01/15 09:51:58 Error running build-release: exit status 1\r\n2015/01/15 09:51:58 Error building. Aborting.\r\nexit status 1\r\n```\r\n\r\nBy a happy coincidence of errors that cancel each other out running `go run hack/e2e.go` does work.\r\n\r\nThis should get fixed as part of the overhaul of the end to end tests e.g. PR #3447.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/75534513","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/3523#issuecomment-75534513","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/3523","id":75534513,"user":{"login":"gmarek","id":1703842,"avatar_url":"https://avatars.githubusercontent.com/u/1703842?v=3","gravatar_id":"","url":"https://api.github.com/users/gmarek","html_url":"https://github.com/gmarek","followers_url":"https://api.github.com/users/gmarek/followers","following_url":"https://api.github.com/users/gmarek/following{/other_user}","gists_url":"https://api.github.com/users/gmarek/gists{/gist_id}","starred_url":"https://api.github.com/users/gmarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmarek/subscriptions","organizations_url":"https://api.github.com/users/gmarek/orgs","repos_url":"https://api.github.com/users/gmarek/repos","events_url":"https://api.github.com/users/gmarek/events{/privacy}","received_events_url":"https://api.github.com/users/gmarek/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T12:40:20Z","updated_at":"2015-02-23T12:40:20Z","body":"The problem here is that filepath.Clean(filepath.Join(path.Base(os.Args[0]), \"..\")) is not a thing we need. It returns more or less current directory, not the thing we need which is an analogue of ${BASH_SOURCE}. AFAICT current implementation is equivalent of getting current work directory. I don't know how this code behaves on Windows though."}}