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
[iOS] editing/async-clipboard/* 20 tests are flaky timeouts on iOS #191
[iOS] editing/async-clipboard/* 20 tests are flaky timeouts on iOS #191
Conversation
I missed @aproskuryakov's original comment on https://commits.webkit.org/220407@main when I landed it. I was wrong to add |
Tools/CISupport/kill-old-processes
Outdated
@@ -165,14 +165,16 @@ def main(user=None): | |||
# This allows to specify on the environment of the bot a list of process that should be killed. | |||
tasksToKill = os.getenv("WEBKITBOT_TASKSTOKILL", "").split() | |||
if sys.platform == 'darwin': | |||
os.system("ps aux") | |||
for task in tasksToKill + tasksToKillMac: | |||
os.system("killall -9 -v -m " + task) | |||
# Shutdown any simulators | |||
if os.geteuid() == 0 and user: | |||
os.system("sudo -u {} xcrun simctl shutdown booted".format(user)) |
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.
This only shuts down one simulator, not all of them. Also, I think that this just starts the shutdown, and we need to wait for it to finish.
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.
Will swap booted
for all
.
I'll put together a function that checks if any simulators are booted, but we'll need a timeout, we still want to kill all other processes if simulators are failing to shut down.
2f135b3
to
a3e0956
Compare
Tools/CISupport/kill-old-processes
Outdated
try: | ||
simctl_output = json.loads(subprocess.check_output( | ||
['xcrun', 'simctl', 'list', '--json'], | ||
**(dict(encoding='utf-8') if sys else dict()) |
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'm not familiar with "if sys else", when is sys
false?
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.
🤦♂️ When I forget to make it if sys.version_info > (3, 0) else
, will fix before landing
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.
Do we even need to support Python 2 still?
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've been dragging my feet on actually breaking Python 2 in scripts, since we've occasionally discovered regressions in our scripts when run with Python 3 and have temporarily reverted those scripts to Python 2 to resolve these regressions. I don't expect kill-old-processes
to revert to Python 2, but keeping compatibility here isn't too much of a burden.
a3e0956
to
196481e
Compare
196481e
to
5f5aff9
Compare
5f5aff9