We were running into an issue where non-reused simulators would end getting left over when hosted iOS unit tests timed out. We have a patch that combines the trap handler that cleans up test_tmp_dir with a call to xcrun simctl delete to clean up single-use simulators, but it doesn't seem like a particularly scalable solution.
It'd be nice to formalize calling into clean_up_simulator_action_binary when test timeouts happen and how that cleanup script could detect that the test timed out.
We were running into an issue where non-reused simulators would end getting left over when hosted iOS unit tests timed out. We have a patch that combines the trap handler that cleans up
test_tmp_dirwith a call toxcrun simctl deleteto clean up single-use simulators, but it doesn't seem like a particularly scalable solution.It'd be nice to formalize calling into
clean_up_simulator_action_binarywhen test timeouts happen and how that cleanup script could detect that the test timed out.