skypilot-org / skypilot

SkyPilot: Run AI and batch jobs on any infra (Kubernetes or 12+ clouds). Get unified execution, cost savings, and high GPU availability via a simple interface.
https://skypilot.readthedocs.io
Apache License 2.0
6.82k stars 514 forks source link

[Core] Make home address replacement more robust #4227

Closed Michaelvll closed 3 weeks ago

Michaelvll commented 3 weeks ago

A user reported that they saw an error that shows cluster_yaml somehow becomes /local~/.sky/... which is likely due to the replacement of home dir not very robust. This PR makes it more robust.

Tested (run the relevant ones):