Maintenance for long-term use

in Japanese(日本語)

As you keep using fleetest, some things pile up on disk and some tasks come up when you update macOS or Xcode. fleetest handles most of it automatically. This page lists what is handled for you and what you need to do yourself.

Handled automatically

You don't need to do anything for these.

What What happens Details
Recordings, reports, logs, bridge diagnostic logs After a test run finishes, any category above 90% of its limit is trimmed in the background, oldest first "Cleaning Up Logs and Recordings" in VSCode extension
iOS Simulator wallpaper cache, diagnostic logs, and the News widget's saved items Removed right before fleetest boots a Simulator (only Simulators that are stopped) "iOS Simulator wallpaper cache (CLI only)" in VSCode extension
Android Emulator data At the start of a test run, the Emulator gets a Wipe Data if its data is over the threshold (8 GB by default). It also gets a Wipe Data, followed by one more install attempt, when installing the app fails because the device is out of storage wipeDataOnBloat in Run profile settings
Bridges on the devices When the fleetest version changes, they are reinstalled or rebuilt the next time they are used —
Bridges that stop responding When the extension detects one, it tries to repair it while no test is running (setting fleetest.autoRepairBridge, on by default) —
Scripts left by dead runs, orphaned services Reclaimed at the start of the next run and by fleetest hooks reap (on a runner machine, fleetest remote clean does the same) —
Update checks The extension checks once a day and notifies you (it never pulls anything by itself) Update

The Simulator cleanup only runs when fleetest boots the Simulator (not when you boot it from Xcode or Simulator.app). A Simulator that stays booted is cleaned the next time fleetest boots it again.

Things you do yourself

When you update fleetest

When you get an update notice, follow Update. Bringing runner machines to the same version is covered on that page too.

When you update macOS or Xcode

Prompt for the AI

I updated macOS and Xcode. Delete .build in the fleetest clone and in the work folder, rebuild with update.sh --force, and install the iOS Simulator runtime if it is missing.

When FM (Foundation Models) stops working

If a test run ends with FM is dead on this machine, the on-device model (FM) on this Mac has stopped working. You can check with fleetest doctor --fm-only (it exits with code 1 when FM is not working).

Prompt for the AI

Run fleetest doctor --fm-only and check whether FM works on this Mac. If it does not, tell me why and how to fix it.

Keeping disk space free

Prompt for the AI

Show me how much fleetest clean --dry-run would delete, and if that is fine run fleetest clean. Stop any bridges that are not in use. Also tell me how much space the compose.yaml services use, from fleetest services status.

Remote runner machines

Cleaning up a runner machine's results, reports, and recordings is covered in "Maintaining runner machines" in Remote runs.

Image samples

The image samples you use with findImage and the like look different on each OS version. When you update the OS of a device you test on, add samples taken on the new OS (Finding by image).

Prompt for the AI

I moved the iOS Simulator used for tests to a new OS. Add the sample images used by findImage, taken from the new OS's screens.

Self-healing suggestions

If you use self-healing, fleetest writes the fixed selectors back to your scenario sources at the end of the run (Self-healing). Review them with git diff and commit.

Prompt for the AI

Show the selectors that self-healing wrote back to the scenarios in the most recent run, using git diff. If they look right, check with a dry-run.