{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/23545","repository_url":"https://api.github.com/repos/docker/docker","labels_url":"https://api.github.com/repos/docker/docker/issues/23545/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/23545/comments","events_url":"https://api.github.com/repos/docker/docker/issues/23545/events","html_url":"https://github.com/docker/docker/issues/23545","id":160302020,"number":23545,"title":"Can't run swarm tests in Docker for Mac","user":{"login":"aaronlehmann","id":10601430,"avatar_url":"https://avatars.githubusercontent.com/u/10601430?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronlehmann","html_url":"https://github.com/aaronlehmann","followers_url":"https://api.github.com/users/aaronlehmann/followers","following_url":"https://api.github.com/users/aaronlehmann/following{/other_user}","gists_url":"https://api.github.com/users/aaronlehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronlehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronlehmann/subscriptions","organizations_url":"https://api.github.com/users/aaronlehmann/orgs","repos_url":"https://api.github.com/users/aaronlehmann/repos","events_url":"https://api.github.com/users/aaronlehmann/events{/privacy}","received_events_url":"https://api.github.com/users/aaronlehmann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/group/pinata","name":"group/pinata","color":"F6FBFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-14T22:47:17Z","updated_at":"2016-06-15T03:32:03Z","closed_at":null,"body":"I tried to run `DockerSwarmSuite.TestApiSwarmPromoteDemote` using Docker for Mac as the container runtime.\r\n\r\nThe test fails with this output:\r\n\r\n```\r\nFAIL: docker_api_swarm_test.go:161: DockerSwarmSuite.TestApiSwarmPromoteDemote\r\n\r\n[d56553497] waiting for daemon to start\r\ndocker_api_swarm_test.go:162:\r\n[d56553497] exiting daemon\r\n    d1 := s.AddDaemon(c, false, false)\r\ncheck_test.go:212:\r\n    c.Assert(err, check.IsNil)\r\n... value *errors.errorString = &errors.errorString{s:\"[d56553497] Daemon exited during startup\"} (\"[d56553497] Daemon exited during startup\")\r\n\r\nOOPS: 0 passed, 1 FAILED\r\n--- FAIL: Test (0.38s)\r\nFAIL\r\ncoverage: 12.9% of statements\r\n```\r\n\r\nInspecting the test logs, I found an error binding to a unix socket when starting a daemon:\r\n\r\n```\r\ntime=\"2016-06-14T21:00:02.103033648Z\" level=fatal msg=\"can't create unix socket /go/src/github.com/docker/docker/bundles/1.12.0-dev/test-integration-cli/d86922137/docker.sock: listen unix /go/src/github.com/docker/docker/bundles/1.12.0-dev/test-integration-cli/d86922137/docker.sock: bind: file name too long\"\r\n```\r\n\r\nThe filename length limit for a unix socket should be 108 characters, but this path is only 95 characters, so I am puzzled why `bind` is failing.\r\n\r\nI seem to have the same problem with all other tests in `DockerSwarmSuite`."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/226079402","html_url":"https://github.com/docker/docker/issues/23545#issuecomment-226079402","issue_url":"https://api.github.com/repos/docker/docker/issues/23545","id":226079402,"user":{"login":"AkihiroSuda","id":9248427,"avatar_url":"https://avatars.githubusercontent.com/u/9248427?v=3","gravatar_id":"","url":"https://api.github.com/users/AkihiroSuda","html_url":"https://github.com/AkihiroSuda","followers_url":"https://api.github.com/users/AkihiroSuda/followers","following_url":"https://api.github.com/users/AkihiroSuda/following{/other_user}","gists_url":"https://api.github.com/users/AkihiroSuda/gists{/gist_id}","starred_url":"https://api.github.com/users/AkihiroSuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AkihiroSuda/subscriptions","organizations_url":"https://api.github.com/users/AkihiroSuda/orgs","repos_url":"https://api.github.com/users/AkihiroSuda/repos","events_url":"https://api.github.com/users/AkihiroSuda/events{/privacy}","received_events_url":"https://api.github.com/users/AkihiroSuda/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T03:32:03Z","updated_at":"2016-06-15T03:32:03Z","body":"Perhaps the limit is 92 in your system? Although I thought the limit is 104 chars for OSX...\r\n\r\nhttp://pubs.opengroup.org/onlinepubs/009604499/basedefs/sys/un.h.html\r\n> The size of sun_path has intentionally been left undefined. This is because different implementations use different sizes. For example, 4.3 BSD uses a size of 108, and 4.4 BSD uses a size of 104. Since most implementations originate from BSD versions, the size is typically in the range 92 to 108."}}
{"actor":{"display_login":"AkihiroSuda"}}