-
Notifications
You must be signed in to change notification settings - Fork 591
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
[Sky Launch] User's workdir
name should match Cloud's workdir
name
#388
Comments
workdir
name should match Cloud's workdir nameworkdir
name should match Cloud's workdir
name
One fix is to use |
How about recreating user's exact workdir path? e.g. if workdir is |
That will encounter permission issues. The file_mounts helper circumvents them by symlinking from under ~/: https://github.com/sky-proj/sky/blob/47e264d9187fdc8702a4a254d85a1a7efa52dd4a/sky/backends/backend_utils.py#L75 |
To add, the PR description shows an example of why preserving the workdir name is needed. However, preserving the exact path seems to only be useful if the task's going to traverse the path -- e.g., cd up one level, ls two levels up -- which we can't support because those levels aren't synced. That said, pls push back if this is explicitly requested by Daniel! |
Hmm, one example case where we need the exact path is it is hardcoded in user code (e.g.
would chown/chmod be sufficient to fix that? |
+1 with Romil's idea. This aligns with the ultimate goal to make the remote env as similar as possible as to the local env. |
Seems like we should follow Docker's philosophy here. The pattern
is commonly used and advertised. Here, the local workdir is Guessing they don't imitate the paths because it's a leaky abstraction for the reason mentioned above (what if users "use" parent dirs?), and thus make the container image no longer self-contained. |
Here are some of the possible solutions for how to deal with the |
This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This issue was closed because it has been stalled for 10 days with no activity. |
If the user's setup script installs their own
workdir
(such aspip install -e .
), the installed packaged will be namedsky_workdir
because Sky uploads the user's work directory undersky_workdir
.The text was updated successfully, but these errors were encountered: