{"action":"opened","issue":{"url":"https://api.github.com/repos/golang/go/issues/17944","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/17944/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/17944/comments","events_url":"https://api.github.com/repos/golang/go/issues/17944/events","html_url":"https://github.com/golang/go/issues/17944","id":189753016,"number":17944,"title":"math/rand: spinning tests on mips64?","user":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"cherrymui","id":14119929,"avatar_url":"https://avatars.githubusercontent.com/u/14119929?v=3","gravatar_id":"","url":"https://api.github.com/users/cherrymui","html_url":"https://github.com/cherrymui","followers_url":"https://api.github.com/users/cherrymui/followers","following_url":"https://api.github.com/users/cherrymui/following{/other_user}","gists_url":"https://api.github.com/users/cherrymui/gists{/gist_id}","starred_url":"https://api.github.com/users/cherrymui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherrymui/subscriptions","organizations_url":"https://api.github.com/users/cherrymui/orgs","repos_url":"https://api.github.com/users/cherrymui/repos","events_url":"https://api.github.com/users/cherrymui/events{/privacy}","received_events_url":"https://api.github.com/users/cherrymui/received_events","type":"User","site_admin":false},"assignees":[{"login":"cherrymui","id":14119929,"avatar_url":"https://avatars.githubusercontent.com/u/14119929?v=3","gravatar_id":"","url":"https://api.github.com/users/cherrymui","html_url":"https://github.com/cherrymui","followers_url":"https://api.github.com/users/cherrymui/followers","following_url":"https://api.github.com/users/cherrymui/following{/other_user}","gists_url":"https://api.github.com/users/cherrymui/gists{/gist_id}","starred_url":"https://api.github.com/users/cherrymui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherrymui/subscriptions","organizations_url":"https://api.github.com/users/cherrymui/orgs","repos_url":"https://api.github.com/users/cherrymui/repos","events_url":"https://api.github.com/users/cherrymui/events{/privacy}","received_events_url":"https://api.github.com/users/cherrymui/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/38","html_url":"https://github.com/golang/go/milestones/Go1.8","labels_url":"https://api.github.com/repos/golang/go/milestones/38/labels","id":1709363,"number":38,"title":"Go1.8","description":"","creator":{"login":"griesemer","id":8528975,"avatar_url":"https://avatars.githubusercontent.com/u/8528975?v=3","gravatar_id":"","url":"https://api.github.com/users/griesemer","html_url":"https://github.com/griesemer","followers_url":"https://api.github.com/users/griesemer/followers","following_url":"https://api.github.com/users/griesemer/following{/other_user}","gists_url":"https://api.github.com/users/griesemer/gists{/gist_id}","starred_url":"https://api.github.com/users/griesemer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griesemer/subscriptions","organizations_url":"https://api.github.com/users/griesemer/orgs","repos_url":"https://api.github.com/users/griesemer/repos","events_url":"https://api.github.com/users/griesemer/events{/privacy}","received_events_url":"https://api.github.com/users/griesemer/received_events","type":"User","site_admin":false},"open_issues":48,"closed_issues":613,"state":"open","created_at":"2016-04-15T16:30:23Z","updated_at":"2016-11-16T16:11:19Z","due_on":"2017-01-31T00:00:00Z","closed_at":null},"comments":0,"created_at":"2016-11-16T16:11:18Z","updated_at":"2016-11-16T16:11:18Z","closed_at":null,"body":"The math/rand tests are failing on mips64:\r\n\r\n```go\r\n// Float32 returns, as a float32, a pseudo-random number in [0.0,1.0).                                                                   \r\nfunc (r *Rand) Float32() float32 {\r\n        // Same rationale as in Float64: we want to preserve the Go 1 value                                                              \r\n        // stream except we want to fix it not to return 1.0                                                                             \r\n        // This only happens 1/2²⁴ of the time (plus the 1/2⁵³ of the time in Float64).                                                  \r\nagain:  \r\n        f := float32(r.Float64())\r\n        if f == 1 {\r\n                goto again // resample; this branch is taken O(very rarely)                                                              \r\n        }\r\n        return f\r\n}\r\n```\r\n\r\n```\r\ngoroutine 35 [runnable]:\r\nmath/rand.(*Rand).Float32(0x1051d78c, 0x3f0ddf90)\r\n\t/data/mips/go/src/math/rand/rand.go:173 +0x1c\r\nmath/rand.TestFloat32(0x10572360)\r\n\t/data/mips/go/src/math/rand/rand_test.go:343 +0xf8\r\ntesting.tRunner(0x10572360, 0x192d24)\r\n\t/data/mips/go/src/testing/testing.go:679 +0x150\r\ncreated by testing.(*T).Run\r\n\t/data/mips/go/src/testing/testing.go:716 +0x284\r\nFAIL\tmath/rand\t180.061s\r\n```\r\n\r\nIs the float64 to float32 conversion broken?\r\n\r\n/cc @cherrymui @crawshaw "}}
{"actor":{"display_login":"bradfitz"}}