-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[ci] Clean up iOS simulators #3458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
# Copyright 2013 The Flutter Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
# The name here must match create_simulator.sh | ||
readonly DEVICE_NAME=Flutter-iPhone | ||
|
||
xcrun simctl shutdown "$DEVICE_NAME" | ||
xcrun simctl delete "$DEVICE_NAME" | ||
xcrun simctl list |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,5 @@ tasks: | |
# So we run `drive-examples` after `native-test`; changing the order will result ci failure. | ||
script: script/tool_runner.sh | ||
args: ["drive-examples", "--ios", "--exclude=script/configs/exclude_integration_ios.yaml"] | ||
- name: remove simulator | ||
script: .ci/scripts/remove_simulator.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should this be run in an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ha never mind this is luci, is there a cleanup mechanism in this fancy yaml system that moved everything out of the recipe? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
You may be overestimating the level of fanciness here :) Now that you mention it, I don't actually know if currently it'll stop on the first failing step, or run everything. I should upload a build-breaking PR and see what runs. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Answer: no, there's no cleanup mechanism 😬 I filed flutter/flutter#122629. Should we land this as-is to at least slow the bleeding of simulators, and then adjust it later once we have a cleanup stage? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can delete without shutting down?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually this matches what we do in the framework:
https://github.com/flutter/flutter/blob/dfab19c1fe9d2e2f359494700c80633f0404cf31/dev/devicelab/lib/framework/ios.dart#L115-L131