{"action":"created","issue":{"url":"https://api.github.com/repos/ctdk/goiardi/issues/42","labels_url":"https://api.github.com/repos/ctdk/goiardi/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/ctdk/goiardi/issues/42/comments","events_url":"https://api.github.com/repos/ctdk/goiardi/issues/42/events","html_url":"https://github.com/ctdk/goiardi/issues/42","id":109015205,"number":42,"title":"Intermittent / Strange Test Failures in Indexer Package","user":{"login":"theckman","id":787332,"avatar_url":"https://avatars.githubusercontent.com/u/787332?v=3","gravatar_id":"","url":"https://api.github.com/users/theckman","html_url":"https://github.com/theckman","followers_url":"https://api.github.com/users/theckman/followers","following_url":"https://api.github.com/users/theckman/following{/other_user}","gists_url":"https://api.github.com/users/theckman/gists{/gist_id}","starred_url":"https://api.github.com/users/theckman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theckman/subscriptions","organizations_url":"https://api.github.com/users/theckman/orgs","repos_url":"https://api.github.com/users/theckman/repos","events_url":"https://api.github.com/users/theckman/events{/privacy}","received_events_url":"https://api.github.com/users/theckman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-30T05:14:32Z","updated_at":"2015-09-30T07:23:17Z","closed_at":null,"body":"Today while working a change, I noticed that I couldn't get my tests to pass. That included a fresh checkout from the master branch. I reached out on Twitter, and managed to dig in a little bit. I figured I'd  just open this so you won't need to look on Twitter to find the details.\r\n\r\nI'm running Mac OS X 10.10.5 with the following Go runtime: `go version go1.5.1 darwin/amd64`. My testing of these issues did include recompiling Go 1.5.1, with no change in behavior.\r\n\r\nHere is the Twitter thread for reference:\r\n\r\n* https://twitter.com/theckman/status/648969453762252801\r\n\r\nThe first issue I hit was this test failure here:\r\n\r\n* https://gist.github.com/theckman/3444005b43296394508d\r\n\r\nBased on the stacktrace and the code it points to, it seems like there is a `sync.RWMutex.RLock()` function call that doesn't get the lock within 10 minutes: \r\n\r\n* https://github.com/ctdk/goiardi/blob/0eb7984d8ac1e0e7fd1d6eddf7e8f81731733e8d/indexer/file_index.go#L599\r\n\r\nI believe that code gets transitively called from here:\r\n\r\n* https://github.com/ctdk/goiardi/blob/0eb7984d8ac1e0e7fd1d6eddf7e8f81731733e8d/indexer/file_index.go#L678\r\n\r\nAfter I hit that issue, I then ran `go get -u github.com/ctdk/goiardi` and the next test failed like this:\r\n\r\n* https://gist.github.com/theckman/14a2f90fb7dbe03dac06#file-test1-out-L104-L105\r\n\r\nIt looks like none of the mocked information made it to the search index. I'm only opening one issue because these two things seem like they may be related (to the untrained eye)."},"comment":{"url":"https://api.github.com/repos/ctdk/goiardi/issues/comments/144312353","html_url":"https://github.com/ctdk/goiardi/issues/42#issuecomment-144312353","issue_url":"https://api.github.com/repos/ctdk/goiardi/issues/42","id":144312353,"user":{"login":"ctdk","id":83435,"avatar_url":"https://avatars.githubusercontent.com/u/83435?v=3","gravatar_id":"","url":"https://api.github.com/users/ctdk","html_url":"https://github.com/ctdk","followers_url":"https://api.github.com/users/ctdk/followers","following_url":"https://api.github.com/users/ctdk/following{/other_user}","gists_url":"https://api.github.com/users/ctdk/gists{/gist_id}","starred_url":"https://api.github.com/users/ctdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctdk/subscriptions","organizations_url":"https://api.github.com/users/ctdk/orgs","repos_url":"https://api.github.com/users/ctdk/repos","events_url":"https://api.github.com/users/ctdk/events{/privacy}","received_events_url":"https://api.github.com/users/ctdk/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T07:23:17Z","updated_at":"2015-09-30T07:23:17Z","body":"Well, I feel a little less crazy. I reverted back to go 1.4.2, got goiardi rebuilt, and the tests pass (along with the formerly breaking chef-pedant errors), so I think it's something weird about 1.5 going on.\r\n\r\nUnfortunately now my go install's all messed up and I can't get it to actually get any changes to the goiardi modules to actually be reflected in the binary when rebuilding. I think it's just that my environment's messed up from downgrading or something, but that does mean that I couldn't actually get this PR tested yet. :-/ Still, it's something."}}