{"action":"created","issue":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/6274","repository_url":"https://api.github.com/repos/fastlane/fastlane","labels_url":"https://api.github.com/repos/fastlane/fastlane/issues/6274/labels{/name}","comments_url":"https://api.github.com/repos/fastlane/fastlane/issues/6274/comments","events_url":"https://api.github.com/repos/fastlane/fastlane/issues/6274/events","html_url":"https://github.com/fastlane/fastlane/issues/6274","id":178942006,"number":6274,"title":"scan running tests multiple times","user":{"login":"reidmain","id":535202,"avatar_url":"https://avatars.githubusercontent.com/u/535202?v=3","gravatar_id":"","url":"https://api.github.com/users/reidmain","html_url":"https://github.com/reidmain","followers_url":"https://api.github.com/users/reidmain/followers","following_url":"https://api.github.com/users/reidmain/following{/other_user}","gists_url":"https://api.github.com/users/reidmain/gists{/gist_id}","starred_url":"https://api.github.com/users/reidmain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reidmain/subscriptions","organizations_url":"https://api.github.com/users/reidmain/orgs","repos_url":"https://api.github.com/users/reidmain/repos","events_url":"https://api.github.com/users/reidmain/events{/privacy}","received_events_url":"https://api.github.com/users/reidmain/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fastlane/fastlane/labels/feature","name":"feature","color":"009800"},{"url":"https://api.github.com/repos/fastlane/fastlane/labels/scan","name":"scan","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-23T18:22:22Z","updated_at":"2016-09-26T20:09:06Z","closed_at":"2016-09-26T19:57:46Z","body":"### New Issue Checklist\r\n\r\n- [*] Updated fastlane to the latest version\r\n- [*] I have read the [Contribution Guidelines](https://github.com/fastlane/fastlane/blob/master/CONTRIBUTING.md)\r\n\r\n### Issue Description\r\n\r\nOn my CI boxes scan appears to be running the tests multiple times.\r\n\r\nI have a setup script that ensures the build environment is in the correct state for the tests to pass so when they are again they will undoubtably fail.\r\n\r\n##### Complete output when running fastlane, including the stack trace and command used\r\n\r\nThe output is quite verbose but the key part is the following:\r\n```\r\n18:08:06 ▸ Test Succeeded\r\n18:08:06 2016-09-23 11:02:58.571 xcodebuild[4894:738062] [MT] IDETestOperationsObserverDebug: (D15BB9C8-F85B-45D2-8C55-EC6589E66648) Beginning test session D15BB9C8-F85B-45D2-8C55-EC6589E66648 with Xcode 7D175 on target <DVTiPhoneSimulator: 0x7fb21c2c0020> {\r\n18:08:06 SimDevice: SimDevice : iPhone 6s (14DA8B6F-6AB6-455E-ADEC-9D671BF496AF) : state={ Shutdown } deviceType={ SimDeviceType : com.apple.CoreSimulator.SimDeviceType.iPhone-6s } runtime={ SimRuntime : 9.3 (13E230) - com.apple.CoreSimulator.SimRuntime.iOS-9-3 }\r\n18:08:06 } (9.3 (13E230))\r\n18:08:06 2016-09-23 11:02:58.572 xcodebuild[4894:740035]  IDETestOperationsObserverDebug: Writing diagnostic log for test session to:\r\n18:08:06 /usr/local/var/jenkins/Library/Developer/Xcode/DerivedData/Reid-fiwowsroopmhmiexhhfwiqpktfjj/Logs/Test/92FCFE09-8BFC-426F-870B-94C407FAE544/Session-2016-09-23_11:02:58-RJstOb.log\r\n```\r\n\r\nWhen I run it locally the output is:\r\n```\r\n17:47:48 [10:47:48]: ▸ Test Succeeded\r\n17:47:49 +--------------------+-------+\r\n17:47:49 |        Test Results        |\r\n17:47:49 +--------------------+-------+\r\n17:47:49 | Number of tests    | 11    |\r\n17:47:49 | Number of failures | 0     |\r\n17:47:49 +--------------------+-------+\r\n```\r\n\r\nFor some reason the second the tests fail the Simulator goes into some sort of shutdown state and immediately restarts and causes all the tests to run a second time.\r\n\r\n### Configuration Files\r\n\r\nPlease copy the complete content of your `Fastfile` and any other configuration files you use below:\r\n\r\nFastfile:\r\n```ruby\r\nlane :test do\r\n      clear_derived_data\r\n      sh \"./resetSimulators.sh\"\r\n\r\n      scan(scheme: \"Reid Tests\",\r\n           project: \"Reid.xcodeproj\",\r\n           clean: true,\r\n           device: \"iPhone 6s (9.3)\",\r\n       )\r\nend\r\n```\r\n\r\n### Environment\r\n\r\n**fastlane version:**\r\n1.103.0\r\n\r\n**Do you use bundler to execute fastlane?**\r\nNo\r\n\r\n**Do you use a Ruby environment manager?**\r\nYes, rbenv\r\n"},"comment":{"url":"https://api.github.com/repos/fastlane/fastlane/issues/comments/249682520","html_url":"https://github.com/fastlane/fastlane/issues/6274#issuecomment-249682520","issue_url":"https://api.github.com/repos/fastlane/fastlane/issues/6274","id":249682520,"user":{"login":"reidmain","id":535202,"avatar_url":"https://avatars.githubusercontent.com/u/535202?v=3","gravatar_id":"","url":"https://api.github.com/users/reidmain","html_url":"https://github.com/reidmain","followers_url":"https://api.github.com/users/reidmain/followers","following_url":"https://api.github.com/users/reidmain/following{/other_user}","gists_url":"https://api.github.com/users/reidmain/gists{/gist_id}","starred_url":"https://api.github.com/users/reidmain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reidmain/subscriptions","organizations_url":"https://api.github.com/users/reidmain/orgs","repos_url":"https://api.github.com/users/reidmain/repos","events_url":"https://api.github.com/users/reidmain/events{/privacy}","received_events_url":"https://api.github.com/users/reidmain/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T20:09:06Z","updated_at":"2016-09-26T20:09:06Z","body":"@TKBurner there would be no way to ensure the simulators across all of our CI boxes have the same UUID so it wouldn't scale.\r\n\r\nShould this issue be kept open, or another one opened, so that scan by default doesn't use multiple simulators if they somehow exist? It would make sense to me to run multiple times if you explicitly provided the names of multiple devices but in my mind if you only provide one I would expect it would only run once."}}
{"actor":{"display_login":"reidmain"}}