Skip to content

link launch and sync conda/workspace locations #742

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

highker
Copy link

@highker highker commented Aug 4, 2025

Summary:
Make sure the conda/workspace locations during launch map with the
locations when we sync.

Differential Revision: D79516268

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 4, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79516268

andrewjcg and others added 3 commits August 5, 2025 23:28
Summary:
Pull Request resolved: meta-pytorch#628

This adds a crate to do rsync-style syncing of a source conda env to a
destination, as per:

```
$ rsync --archive --update --no-dirtimes --delete --delete-excluded ...
```

As `rsync` (and this crate) uses mtimes for syncing, it'll work even with the
differences in prefixes between source and destination conda envs.

The notable differences with rsync are:
1) In current flows, when users "activate" their conda env locally, prefixes in
    the env will be quickly re-written, changing mtimes to be ahead of the
    destination (e.g. on MAST, the conda env is unpacked into it's expected
    prefix location).  This crate uses the `pack-meta/history.jsonl` file to detect
    prefix update windows and use that to filter out these sprurious mtime updates.
2) Files that are copied perform in-place prefix replacement (TODO: not finished
    yet).

Differential Revision: D78424481
Summary:
Adds support to coda sync to handle syncing conda environments, via:

```
await proc_mesh.sync_workspace(conda=True)
```

Differential Revision: D78458897
Summary:
Pull Request resolved: meta-pytorch#742

Make sure the conda/workspace locations during launch map with the
locations when we sync.

Reviewed By: kiukchung

Differential Revision: D79516268
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D79516268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants