Skip to content
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

Recipes don't wait for simulator runtimes to be unmounted #137634

Closed
1 task done
Tracked by #133207
vashworth opened this issue Oct 31, 2023 · 4 comments
Closed
1 task done
Tracked by #133207

Recipes don't wait for simulator runtimes to be unmounted #137634

vashworth opened this issue Oct 31, 2023 · 4 comments
Assignees
Labels
team-infra Owned by Infrastructure team

Comments

@vashworth
Copy link
Contributor

Is there an existing issue for this?

Type of Request

bug

Infrastructure Environment

Recipes

What is happening?

In recipes, when the Xcode cache is cleared, we unmount all runtimes. Afterward, we will reinstall and remount the needed runtimes. Before remounting, though, we check to see if it need to be remounted.

It seems that the command to unmount runtimes (xcrun simctl runtime delete all) does not wait for it complete, which may cause issues like the example below:

For example: https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20Engine%20Drone/477518/overview
In step 20.2, the runtimes are unmounted
In step 21.2, we can see the unmounted hasn't finished though because the runtimes are still available
Also, there are no verify and mount runtime substeps in 21, which means it thought the runtimes were still mounted (https://flutter.googlesource.com/recipes/+/refs/heads/main/recipe_modules/osx_sdk/api.py#340)

Steps to reproduce

Unfortunately this does not happen every time since it's a race condition

Expected results

I expect runtimes to be remounted if applicable after unmounting.

@vashworth vashworth added the team-infra Owned by Infrastructure team label Oct 31, 2023
@vashworth vashworth self-assigned this Oct 31, 2023
@vashworth
Copy link
Contributor Author

Should be fixed with https://flutter-review.googlesource.com/c/recipes/+/52041.

@vashworth vashworth reopened this Nov 9, 2023
@vashworth
Copy link
Contributor Author

Looks like problem is still happening: https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20Engine%20Drone/507815/overview

If I look at the next task on the same bot, it shows the runtime were removed: https://luci-milo.appspot.com/ui/p/flutter/builders/try/Mac%20module_test/35445/overview

@vashworth
Copy link
Contributor Author

I increased the amount of time it can wait up to and that seems to have fixed:
https://flutter-review.googlesource.com/c/recipes/+/52441
https://ci.chromium.org/ui/p/flutter/builders/try/Mac%20Engine%20Drone/510221/overview

Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-infra Owned by Infrastructure team
Projects
None yet
Development

No branches or pull requests

1 participant