{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/21628","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/21628/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/21628/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/21628/events","html_url":"https://github.com/dart-lang/sdk/issues/21628","id":84593708,"number":21628,"title":"Many pkg/analyzer and pkg/analysis_server tests are timing out on dart2js","user":{"login":"peter-ahe-google","id":5689005,"avatar_url":"https://avatars.githubusercontent.com/u/5689005?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-ahe-google","html_url":"https://github.com/peter-ahe-google","followers_url":"https://api.github.com/users/peter-ahe-google/followers","following_url":"https://api.github.com/users/peter-ahe-google/following{/other_user}","gists_url":"https://api.github.com/users/peter-ahe-google/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-ahe-google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-ahe-google/subscriptions","organizations_url":"https://api.github.com/users/peter-ahe-google/orgs","repos_url":"https://api.github.com/users/peter-ahe-google/repos","events_url":"https://api.github.com/users/peter-ahe-google/events{/privacy}","received_events_url":"https://api.github.com/users/peter-ahe-google/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Area-Analyzer","name":"Area-Analyzer","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Triaged","name":"Triaged","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-11-17T09:20:30Z","updated_at":"2015-08-18T15:19:41Z","closed_at":null,"body":"When you examine the dart2js logs, you'll find things like this at the end:\n\n0:00:45.909000 - dart2js - dart2js-d8 release_ia32/pkg/analysis_server/test/edit/sort_members_test\n0:00:42.850000 - dart2js - dart2js-d8 release_ia32/pkg/analysis_server/test/edit/fixes_test\n0:00:42.618000 - dart2js - dart2js-d8 release_ia32/pkg/analyzer/test/enum_test\n0:00:38.021000 - dart2js - dart2js-d8 release_ia32/pkg/analysis_server/test/search/type_hierarchy_test\n0:00:36.872000 - dart2js - dart2js-d8 release_ia32/pkg/analysis_server/test/search/member_declarations_test\n\nThis means that dart2js takes rather long to compile the listed tests. Since the timeout is 60 seconds, 45 seconds doesn't leave much room if a machine is configured differently. On my machine, these tests time out.\n\nAssuming that there's nothing else to do to make the tests themselves smaller, I think two things are needed:\n\n1) increase the time out (use &quot;Slow, Pass&quot; as test status).\n\n2) report a bug with the dart2js team pointing out that the compiler is too slow, or that the default timeout is too low.\n"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/132247567","html_url":"https://github.com/dart-lang/sdk/issues/21628#issuecomment-132247567","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/21628","id":132247567,"user":{"login":"whesse","id":4905639,"avatar_url":"https://avatars.githubusercontent.com/u/4905639?v=3","gravatar_id":"","url":"https://api.github.com/users/whesse","html_url":"https://github.com/whesse","followers_url":"https://api.github.com/users/whesse/followers","following_url":"https://api.github.com/users/whesse/following{/other_user}","gists_url":"https://api.github.com/users/whesse/gists{/gist_id}","starred_url":"https://api.github.com/users/whesse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whesse/subscriptions","organizations_url":"https://api.github.com/users/whesse/orgs","repos_url":"https://api.github.com/users/whesse/repos","events_url":"https://api.github.com/users/whesse/events{/privacy}","received_events_url":"https://api.github.com/users/whesse/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T15:19:41Z","updated_at":"2015-08-18T15:19:41Z","body":"OK, I thought that the test functions would just be in the same file as the class with the static methods, so  that the class and all of its tests would be in the same file, and it would be run by pub run test automatically, since it ends in _test.dart.  Can classes not be put in the individual test files?"}}