Skip to content

Fix iOS simulator leakage on test timeout (#2986)#3005

Open
mansiverma897993 wants to merge 1 commit into
bazelbuild:mainfrom
mansiverma897993:fix/cleanup-simulator-on-timeout
Open

Fix iOS simulator leakage on test timeout (#2986)#3005
mansiverma897993 wants to merge 1 commit into
bazelbuild:mainfrom
mansiverma897993:fix/cleanup-simulator-on-timeout

Conversation

@mansiverma897993

Copy link
Copy Markdown

Clean up simulators and temporary directories when the test runner is aborted due to a timeout (receiving SIGTERM/SIGINT) by trapping these signals and setting a TEST_TIMEOUT_DETECTED environment variable for the cleanup script. Modify the default cleanup script to delete the simulator if it timed out, even if reuse is enabled.

Clean up simulators and temporary directories when the test runner is aborted due to a timeout (receiving SIGTERM/SIGINT) by trapping these signals and setting a TEST_TIMEOUT_DETECTED environment variable for the cleanup script. Modify the default cleanup script to delete the simulator if it timed out, even if reuse is enabled.
@google-cla

google-cla Bot commented Jun 16, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

fi

if [ -z "${SIMULATOR_REUSE_SIMULATOR:-}" ]; then
if [ -z "${SIMULATOR_REUSE_SIMULATOR:-}" ] || [ -n "${TEST_TIMEOUT_DETECTED:-}" ]; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the simulator is being shared between tests won't deleting it when a single test times out cause a bunch of unrelated failures?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants