{"action":"closed","issue":{"url":"https://api.github.com/repos/prometheus/prometheus/issues/1037","labels_url":"https://api.github.com/repos/prometheus/prometheus/issues/1037/labels{/name}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/1037/comments","events_url":"https://api.github.com/repos/prometheus/prometheus/issues/1037/events","html_url":"https://github.com/prometheus/prometheus/issues/1037","id":103635691,"number":1037,"title":"REGRESSION: Test deadlocks","user":{"login":"swsnider","id":1662,"avatar_url":"https://avatars.githubusercontent.com/u/1662?v=3","gravatar_id":"","url":"https://api.github.com/users/swsnider","html_url":"https://github.com/swsnider","followers_url":"https://api.github.com/users/swsnider/followers","following_url":"https://api.github.com/users/swsnider/following{/other_user}","gists_url":"https://api.github.com/users/swsnider/gists{/gist_id}","starred_url":"https://api.github.com/users/swsnider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swsnider/subscriptions","organizations_url":"https://api.github.com/users/swsnider/orgs","repos_url":"https://api.github.com/users/swsnider/repos","events_url":"https://api.github.com/users/swsnider/events{/privacy}","received_events_url":"https://api.github.com/users/swsnider/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-28T02:42:19Z","updated_at":"2015-08-28T13:53:24Z","closed_at":"2015-08-28T13:53:24Z","body":"on a clean checkout of HEAD (facf60e0331977bc9245d54c0c1b6fee6df335b6), running `make`, I get a deadlock repeatably.\r\n\r\n$ make\r\ncurl -o /Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/cache/go1.4.2.darwin-amd64-osx10.8.tar.gz -L https://golang.org/dl/go1.4.2.darwin-amd64-osx10.8.tar.gz\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100    96  100    96    0     0    364      0 --:--:-- --:--:-- --:--:--   365\r\n100 58.7M  100 58.7M    0     0  8137k      0  0:00:07  0:00:07 --:--:-- 9162k\r\ntar -C /Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root -xzf /Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/cache/go1.4.2.darwin-amd64-osx10.8.tar.gz\r\ntouch /Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/go/bin/go\r\ncp -a /Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/Godeps/_workspace \"/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/gopath\"\r\nln -s /Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus /Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/gopath/src/github.com/prometheus/prometheus\r\nTMPDIR=/tmp GOROOT=/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/go GOPATH=/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/gopath /Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/go/bin/go build -o prometheus -ldflags \" -X github.com/prometheus/prometheus/version.Version 0.15.1 -X github.com/prometheus/prometheus/version.Revision facf60e -X github.com/prometheus/prometheus/version.Branch master -X github.com/prometheus/prometheus/version.BuildUser swsnider@ssnider-mini.apple.com -X github.com/prometheus/prometheus/version.BuildDate 20150827-19:38:59 -X github.com/prometheus/prometheus/version.GoVersion 1.4.2\" github.com/prometheus/prometheus/cmd/prometheus\r\nTMPDIR=/tmp GOROOT=/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/go GOPATH=/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/gopath /Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/go/bin/go build -o promtool -ldflags \" -X github.com/prometheus/prometheus/version.Version 0.15.1 -X github.com/prometheus/prometheus/version.Revision facf60e -X github.com/prometheus/prometheus/version.Branch master -X github.com/prometheus/prometheus/version.BuildUser swsnider@ssnider-mini.apple.com -X github.com/prometheus/prometheus/version.BuildDate 20150827-19:38:59 -X github.com/prometheus/prometheus/version.GoVersion 1.4.2\" github.com/prometheus/prometheus/cmd/promtool\r\nTMPDIR=/tmp GOROOT=/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/go GOPATH=/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/gopath /Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/go/bin/go test -short ./...\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/cmd/prometheus\t[no test files]\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/cmd/promtool\t[no test files]\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/config\t0.017s\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/notification\t0.014s\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/promql\t0.278s\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval\t2.599s\r\ntime=\"2015-08-27T19:39:23-07:00\" level=error msg=\"Error reading file \\\"fixtures/_test.yml\\\": yaml: did not find expected node content\" file=file.go line=170\r\nfatal error: all goroutines are asleep - deadlock!\r\n\r\ngoroutine 1 [chan receive]:\r\ntesting.RunTests(0x569bb8, 0x6b8120, 0x7, 0x7, 0xc20803aa01)\r\n\t/usr/local/go/src/testing/testing.go:556 +0xad6\r\ntesting.(*M).Run(0xc2080525f0, 0x6c34e0)\r\n\t/usr/local/go/src/testing/testing.go:485 +0x6c\r\nmain.main()\r\n\t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery/_test/_testmain.go:64 +0x1d5\r\n\r\ngoroutine 9 [chan receive]:\r\n_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery.testFileSD(0xc2080321b0, 0x492000, 0x4)\r\n\t/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery/file_test.go:109 +0xdbd\r\n_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery.TestFileSD(0xc2080321b0)\r\n\t/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery/file_test.go:16 +0x95\r\ntesting.tRunner(0xc2080321b0, 0x6b8120)\r\n\t/usr/local/go/src/testing/testing.go:447 +0xbf\r\ncreated by testing.RunTests\r\n\t/usr/local/go/src/testing/testing.go:555 +0xa8b\r\n\r\ngoroutine 10 [chan send]:\r\ngopkg.in/fsnotify%2ev1.(*Watcher).Close(0xc2080549c0, 0x0, 0x0)\r\n\t/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/gopath/src/gopkg.in/fsnotify.v1/kqueue.go:87 +0x220\r\n_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery.(*FileDiscovery).stop(0xc20803de00)\r\n\t/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery/file.go:215 +0x16f\r\n_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery.(*FileDiscovery).Run(0xc20803de00, 0xc208054780, 0xc2080547e0)\r\n\t/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery/file.go:131 +0x2fe\r\ncreated by _/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery.testFileSD\r\n\t/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery/file_test.go:32 +0x282\r\n\r\ngoroutine 12 [chan send]:\r\ngopkg.in/fsnotify%2ev1.(*Watcher).readEvents(0xc2080549c0)\r\n\t/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/gopath/src/gopkg.in/fsnotify.v1/kqueue.go:301 +0x711\r\ncreated by gopkg.in/fsnotify%2ev1.NewWatcher\r\n\t/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/.build/root/gopath/src/gopkg.in/fsnotify.v1/kqueue.go:61 +0x31f\r\n\r\ngoroutine 13 [chan receive]:\r\n_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery.func·006()\r\n\t/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery/file_test.go:85 +0x6d\r\ncreated by _/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery.testFileSD\r\n\t/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery/file_test.go:93 +0xa47\r\nFAIL\t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery\t15.054s\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery/kubernetes\t[no test files]\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/retrieval/discovery/marathon\t[no test files]\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/rules\t0.059s\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/storage\t[no test files]\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/storage/local\t3.699s\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/storage/local/codable\t0.007s\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/storage/local/index\t[no test files]\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/storage/metric\t0.007s\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/storage/remote\t0.015s\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/storage/remote/influxdb\t0.013s\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/storage/remote/opentsdb\t0.011s\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/template\t0.040s\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/util/cli\t[no test files]\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/util/flock\t0.007s\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/util/httputil\t[no test files]\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/util/route\t[no test files]\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/util/stats\t[no test files]\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/util/strutil\t[no test files]\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/util/testutil\t[no test files]\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/version\t[no test files]\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/web\t0.015s\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/web/api/legacy\t0.037s\r\nok  \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/web/api/v1\t0.023s\r\n?   \t_/Users/swsnider/Documents/Projects/Code/src/github.com/prometheus/prometheus/web/blob\t[no test files]\r\nmake: *** [test] Error 1"}}