fastlane-plugin-test_center to the latest version
Getting a Failed to load command error when running multi_scan. This doesn't happen consistently, so it makes understanding why it's happening that much more confusing.
bundler: failed to load command: fastlane (/Users/distiller/project/vendor/bundle/ruby/2.6.0/bin/fastlane)
FastlaneCore::Interface::FastlaneTestFailure: [!] Tests have failed
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane_core/lib/fastlane_core/ui/interface.rb:172:in test_failure!'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane_core/lib/fastlane_core/ui/ui.rb:17:inmethod_missing'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-plugin-test_center-3.8.15/lib/fastlane/plugin/test_center/actions/multi_scan.rb:35:in run'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:256:inblock (2 levels) in execute_action'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in execute_action'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:235:inblock in execute_action'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:227:in chdir'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:227:inexecute_action'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:157:in trigger_action_by_name'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/fast_file.rb:159:inmethod_missing'
Fastfile:121:in block in parsing_binding'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/lane.rb:33:incall'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:204:in try_switch_to_lane'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:146:intrigger_action_by_name'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/fast_file.rb:159:in method_missing'
Fastfile:107:inblock (2 levels) in parsing_binding'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/lane.rb:33:in call'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:49:inblock in execute'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:45:in chdir'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/runner.rb:45:inexecute'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/lane_manager.rb:56:in cruise_lane'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/command_line_handler.rb:36:inhandle'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/commands_generator.rb:108:in block (2 levels) in run'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:incall'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in run'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:inrun_active_command'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in run!'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:inrun!'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/commands_generator.rb:349:in run'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/commands_generator.rb:41:instart'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in take_off'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/bin/fastlane:23:inload'
/Users/distiller/project/vendor/bundle/ruby/2.6.0/bin/fastlane:23:in
Same as here: https://github.com/lyndsey-ferguson/fastlane-plugin-test_center/issues/209
FastlaneCore::Interface::FastlaneTestFailure: [!] Tests have failed
/Users/distiller/project/vendor/bundle/ruby/2.6.0/gems/fastlane-2.137.0/fastlane_core/lib/fastlane_core/ui/interface.rb:172:in `test_failure!'
Is telling you that tests failed. If you set :fail_build to false, it won't throw when your tests failed.
As to why you're getting this:
bundler: failed to load command: fastlane (/Users/distiller/project/vendor/bundle/ruby/2.6.0/bin/fastlane)
I'm not sure yet.
This has a similar pattern:
https://github.com/fastlane/fastlane/issues/11071
So for the first part, we need the fail_build so that way it returns the correct exit code & prevents the flow of execution on our CI
For your follow up - the changes we made were double checked and didn't seem to have any syntax issues - however we did include --verbose into every single run of multi_scan...so I wonder if that's inducing it?
Try without it and let me know if that changes anything
We're confident that's the problem.
However, is there a way to keep --verbose without it failing?