{"action":"created","comment":{"url":"https://api.github.com/repos/gopherjs/gopherjs/pulls/comments/38845829","id":38845829,"diff_hunk":"@@ -0,0 +1,1209 @@\n+// +build ignore\n+\n+// skip\n+\n+// Copyright 2012 The Go Authors.  All rights reserved.\n+// Use of this source code is governed by a BSD-style\n+// license that can be found in the LICENSE file.\n+\n+// Run runs tests in the test directory.\n+//\n+// To run manually with summary, verbose output, and full stack traces of of known failures:\n+//\n+// \tgo run run.go -summary -v -show_known_fails\n+//\n+// TODO(bradfitz): docs of some sort, once we figure out how we're changing\n+// headers of files\n+package main\n+\n+import (\n+\t\"bytes\"\n+\t\"errors\"\n+\t\"flag\"\n+\t\"fmt\"\n+\t\"hash/fnv\"\n+\t\"io\"\n+\t\"io/ioutil\"\n+\t\"log\"\n+\t\"os\"\n+\t\"os/exec\"\n+\t\"path\"\n+\t\"path/filepath\"\n+\t\"regexp\"\n+\t\"runtime\"\n+\t\"sort\"\n+\t\"strconv\"\n+\t\"strings\"\n+\t\"time\"\n+\t\"unicode\"\n+)\n+\n+// -----------------------------------------------------------------------------\n+// GOPHERJS: Known test fails for GopherJS compiler.\n+//\n+// TODO: Reduce these to zero or as close as possible.\n+//\n+var knownFails = map[string]failReason{\n+\t// GopherJS compiler panics.\n+\t\"fixedbugs/bug180.go\": {category: compilerPanic, desc: `\n+panic: 20\n+\n+goroutine 1 [running]:\n+github.com/gopherjs/gopherjs/compiler.(*funcContext).fixNumber(0xc820164210, 0xc82000f360, 0x9088a0, 0xc820018ea0)\n+\t/Users/Dmitri/Dropbox/Work/2013/GoLand/src/github.com/gopherjs/gopherjs/compiler/expressions.go:1176 +0x235","path":"tests/run.go","position":53,"original_position":53,"commit_id":"bc81548cf228bd9f0b4762bc5f69748aae2b348d","original_commit_id":"bc81548cf228bd9f0b4762bc5f69748aae2b348d","user":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars.githubusercontent.com/u/1924134?v=3","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"body":"Yes, but it's just a description of the error. I copy pasted the first line/few lines of the panic output here.\r\n\r\nIdeally, these descriptions can be replaced with more accurate ones if someone goes through them and triages the issues carefully.","created_at":"2015-09-07T09:15:51Z","updated_at":"2015-09-07T09:15:51Z","html_url":"https://github.com/gopherjs/gopherjs/pull/296#discussion_r38845829","pull_request_url":"https://api.github.com/repos/gopherjs/gopherjs/pulls/296","_links":{"self":{"href":"https://api.github.com/repos/gopherjs/gopherjs/pulls/comments/38845829"},"html":{"href":"https://github.com/gopherjs/gopherjs/pull/296#discussion_r38845829"},"pull_request":{"href":"https://api.github.com/repos/gopherjs/gopherjs/pulls/296"}}},"pull_request":{"url":"https://api.github.com/repos/gopherjs/gopherjs/pulls/296","id":44324154,"html_url":"https://github.com/gopherjs/gopherjs/pull/296","diff_url":"https://github.com/gopherjs/gopherjs/pull/296.diff","patch_url":"https://github.com/gopherjs/gopherjs/pull/296.patch","issue_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/296","number":296,"state":"open","locked":false,"title":"Add Go repository compiler tests, triage known failures.","user":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars.githubusercontent.com/u/1924134?v=3","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"body":"Add a modified version of go/test/run.go for GopherJS. The run.go file should be run via native Go, but it will itself invoke `gopherjs run` for running tests. All modifications are marked with a \"// GOPHERJS\" comment.\r\n\r\nAt this time, only a limited subset of folders and test types is supported. More can be added.\r\n\r\nWithin the tests that are run, there are currently 234 tests passing and 34 failing. The failing test are marked as known failures and do not trigger CI failure.\r\n\r\nAs the bugs are resolved, the knownFails map in run.go should be updated to remove resolved failures. The test will currently fail if any of the tests that were expected to fail unexpectedly pass (if it's not an accident, then knownFails map should be updated accordingly). I hope this will not cause too much noise; it can be changed if so.\r\n\r\n4 of the tests are compiler panics, they should probably be fixed first. The remaining ones are briefly described but not triaged further than that.\r\n\r\nThe run.go test runner can be run manually via:\r\n\r\n\tgo run run.go -v -summary","created_at":"2015-09-07T06:41:41Z","updated_at":"2015-09-07T09:15:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2528ffd907113afa5cc6a00d27e6098304211374","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gopherjs/gopherjs/pulls/296/commits","review_comments_url":"https://api.github.com/repos/gopherjs/gopherjs/pulls/296/comments","review_comment_url":"https://api.github.com/repos/gopherjs/gopherjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/296/comments","statuses_url":"https://api.github.com/repos/gopherjs/gopherjs/statuses/bc81548cf228bd9f0b4762bc5f69748aae2b348d","head":{"label":"gopherjs:go-compiler-tests","ref":"go-compiler-tests","sha":"bc81548cf228bd9f0b4762bc5f69748aae2b348d","user":{"login":"gopherjs","id":6654647,"avatar_url":"https://avatars.githubusercontent.com/u/6654647?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherjs","html_url":"https://github.com/gopherjs","followers_url":"https://api.github.com/users/gopherjs/followers","following_url":"https://api.github.com/users/gopherjs/following{/other_user}","gists_url":"https://api.github.com/users/gopherjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherjs/subscriptions","organizations_url":"https://api.github.com/users/gopherjs/orgs","repos_url":"https://api.github.com/users/gopherjs/repos","events_url":"https://api.github.com/users/gopherjs/events{/privacy}","received_events_url":"https://api.github.com/users/gopherjs/received_events","type":"Organization","site_admin":false},"repo":{"id":12418999,"name":"gopherjs","full_name":"gopherjs/gopherjs","owner":{"login":"gopherjs","id":6654647,"avatar_url":"https://avatars.githubusercontent.com/u/6654647?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherjs","html_url":"https://github.com/gopherjs","followers_url":"https://api.github.com/users/gopherjs/followers","following_url":"https://api.github.com/users/gopherjs/following{/other_user}","gists_url":"https://api.github.com/users/gopherjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherjs/subscriptions","organizations_url":"https://api.github.com/users/gopherjs/orgs","repos_url":"https://api.github.com/users/gopherjs/repos","events_url":"https://api.github.com/users/gopherjs/events{/privacy}","received_events_url":"https://api.github.com/users/gopherjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gopherjs/gopherjs","description":"A compiler from Go to JavaScript for running Go code in a browser","fork":false,"url":"https://api.github.com/repos/gopherjs/gopherjs","forks_url":"https://api.github.com/repos/gopherjs/gopherjs/forks","keys_url":"https://api.github.com/repos/gopherjs/gopherjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gopherjs/gopherjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gopherjs/gopherjs/teams","hooks_url":"https://api.github.com/repos/gopherjs/gopherjs/hooks","issue_events_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/events{/number}","events_url":"https://api.github.com/repos/gopherjs/gopherjs/events","assignees_url":"https://api.github.com/repos/gopherjs/gopherjs/assignees{/user}","branches_url":"https://api.github.com/repos/gopherjs/gopherjs/branches{/branch}","tags_url":"https://api.github.com/repos/gopherjs/gopherjs/tags","blobs_url":"https://api.github.com/repos/gopherjs/gopherjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gopherjs/gopherjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gopherjs/gopherjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gopherjs/gopherjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gopherjs/gopherjs/statuses/{sha}","languages_url":"https://api.github.com/repos/gopherjs/gopherjs/languages","stargazers_url":"https://api.github.com/repos/gopherjs/gopherjs/stargazers","contributors_url":"https://api.github.com/repos/gopherjs/gopherjs/contributors","subscribers_url":"https://api.github.com/repos/gopherjs/gopherjs/subscribers","subscription_url":"https://api.github.com/repos/gopherjs/gopherjs/subscription","commits_url":"https://api.github.com/repos/gopherjs/gopherjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gopherjs/gopherjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gopherjs/gopherjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gopherjs/gopherjs/contents/{+path}","compare_url":"https://api.github.com/repos/gopherjs/gopherjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gopherjs/gopherjs/merges","archive_url":"https://api.github.com/repos/gopherjs/gopherjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gopherjs/gopherjs/downloads","issues_url":"https://api.github.com/repos/gopherjs/gopherjs/issues{/number}","pulls_url":"https://api.github.com/repos/gopherjs/gopherjs/pulls{/number}","milestones_url":"https://api.github.com/repos/gopherjs/gopherjs/milestones{/number}","notifications_url":"https://api.github.com/repos/gopherjs/gopherjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gopherjs/gopherjs/labels{/name}","releases_url":"https://api.github.com/repos/gopherjs/gopherjs/releases{/id}","created_at":"2013-08-27T22:23:58Z","updated_at":"2015-09-06T13:12:04Z","pushed_at":"2015-09-07T09:01:31Z","git_url":"git://github.com/gopherjs/gopherjs.git","ssh_url":"git@github.com:gopherjs/gopherjs.git","clone_url":"https://github.com/gopherjs/gopherjs.git","svn_url":"https://github.com/gopherjs/gopherjs","homepage":"","size":8410,"stargazers_count":3009,"watchers_count":3009,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":134,"mirror_url":null,"open_issues_count":32,"forks":134,"open_issues":32,"watchers":3009,"default_branch":"master"}},"base":{"label":"gopherjs:master","ref":"master","sha":"22fe4b54932c74cf2a4dc3cebeeb9a327a4401a9","user":{"login":"gopherjs","id":6654647,"avatar_url":"https://avatars.githubusercontent.com/u/6654647?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherjs","html_url":"https://github.com/gopherjs","followers_url":"https://api.github.com/users/gopherjs/followers","following_url":"https://api.github.com/users/gopherjs/following{/other_user}","gists_url":"https://api.github.com/users/gopherjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherjs/subscriptions","organizations_url":"https://api.github.com/users/gopherjs/orgs","repos_url":"https://api.github.com/users/gopherjs/repos","events_url":"https://api.github.com/users/gopherjs/events{/privacy}","received_events_url":"https://api.github.com/users/gopherjs/received_events","type":"Organization","site_admin":false},"repo":{"id":12418999,"name":"gopherjs","full_name":"gopherjs/gopherjs","owner":{"login":"gopherjs","id":6654647,"avatar_url":"https://avatars.githubusercontent.com/u/6654647?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherjs","html_url":"https://github.com/gopherjs","followers_url":"https://api.github.com/users/gopherjs/followers","following_url":"https://api.github.com/users/gopherjs/following{/other_user}","gists_url":"https://api.github.com/users/gopherjs/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherjs/subscriptions","organizations_url":"https://api.github.com/users/gopherjs/orgs","repos_url":"https://api.github.com/users/gopherjs/repos","events_url":"https://api.github.com/users/gopherjs/events{/privacy}","received_events_url":"https://api.github.com/users/gopherjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gopherjs/gopherjs","description":"A compiler from Go to JavaScript for running Go code in a browser","fork":false,"url":"https://api.github.com/repos/gopherjs/gopherjs","forks_url":"https://api.github.com/repos/gopherjs/gopherjs/forks","keys_url":"https://api.github.com/repos/gopherjs/gopherjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gopherjs/gopherjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gopherjs/gopherjs/teams","hooks_url":"https://api.github.com/repos/gopherjs/gopherjs/hooks","issue_events_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/events{/number}","events_url":"https://api.github.com/repos/gopherjs/gopherjs/events","assignees_url":"https://api.github.com/repos/gopherjs/gopherjs/assignees{/user}","branches_url":"https://api.github.com/repos/gopherjs/gopherjs/branches{/branch}","tags_url":"https://api.github.com/repos/gopherjs/gopherjs/tags","blobs_url":"https://api.github.com/repos/gopherjs/gopherjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gopherjs/gopherjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gopherjs/gopherjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/gopherjs/gopherjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gopherjs/gopherjs/statuses/{sha}","languages_url":"https://api.github.com/repos/gopherjs/gopherjs/languages","stargazers_url":"https://api.github.com/repos/gopherjs/gopherjs/stargazers","contributors_url":"https://api.github.com/repos/gopherjs/gopherjs/contributors","subscribers_url":"https://api.github.com/repos/gopherjs/gopherjs/subscribers","subscription_url":"https://api.github.com/repos/gopherjs/gopherjs/subscription","commits_url":"https://api.github.com/repos/gopherjs/gopherjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/gopherjs/gopherjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/gopherjs/gopherjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/gopherjs/gopherjs/contents/{+path}","compare_url":"https://api.github.com/repos/gopherjs/gopherjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gopherjs/gopherjs/merges","archive_url":"https://api.github.com/repos/gopherjs/gopherjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gopherjs/gopherjs/downloads","issues_url":"https://api.github.com/repos/gopherjs/gopherjs/issues{/number}","pulls_url":"https://api.github.com/repos/gopherjs/gopherjs/pulls{/number}","milestones_url":"https://api.github.com/repos/gopherjs/gopherjs/milestones{/number}","notifications_url":"https://api.github.com/repos/gopherjs/gopherjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gopherjs/gopherjs/labels{/name}","releases_url":"https://api.github.com/repos/gopherjs/gopherjs/releases{/id}","created_at":"2013-08-27T22:23:58Z","updated_at":"2015-09-06T13:12:04Z","pushed_at":"2015-09-07T09:01:31Z","git_url":"git://github.com/gopherjs/gopherjs.git","ssh_url":"git@github.com:gopherjs/gopherjs.git","clone_url":"https://github.com/gopherjs/gopherjs.git","svn_url":"https://github.com/gopherjs/gopherjs","homepage":"","size":8410,"stargazers_count":3009,"watchers_count":3009,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":134,"mirror_url":null,"open_issues_count":32,"forks":134,"open_issues":32,"watchers":3009,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gopherjs/gopherjs/pulls/296"},"html":{"href":"https://github.com/gopherjs/gopherjs/pull/296"},"issue":{"href":"https://api.github.com/repos/gopherjs/gopherjs/issues/296"},"comments":{"href":"https://api.github.com/repos/gopherjs/gopherjs/issues/296/comments"},"review_comments":{"href":"https://api.github.com/repos/gopherjs/gopherjs/pulls/296/comments"},"review_comment":{"href":"https://api.github.com/repos/gopherjs/gopherjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gopherjs/gopherjs/pulls/296/commits"},"statuses":{"href":"https://api.github.com/repos/gopherjs/gopherjs/statuses/bc81548cf228bd9f0b4762bc5f69748aae2b348d"}}}}