Skip to content
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

Add step completed signal file for VS Code #688

Merged
merged 4 commits into from
Aug 29, 2023
Merged

Add step completed signal file for VS Code #688

merged 4 commits into from
Aug 29, 2023

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Aug 27, 2023

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™


In vscode-dvc, we have this issue which is caused by VS Code dropping events for files within deeply nested folders when running on a remote machine. This can happen when a user has a slightly nested folder structure and is running experiments in the queue. An example of a file path that should trigger a watcher event but doesn't is: {root}/.dvc/tmp/exps/{tmp_queue_dir}/data/train/metrics.json

My suggestion here to the user was for him to update his training script to touch one of the files further up the tree (e.g. the root dvc.yaml) but we can do the same thing with DVCLive meaning that the extension should be guaranteed to work out of the box for users using DVCLive as a logger if we specifically watch for that file being updated.

Depends on iterative/dvc#9879

Demo

https://github.com/iterative/dvclive/assets/37993418/2315beff-f327-4273-bb4c-2658d7dcc64e

Screen.Recording.2023-08-28.at.10.01.54.am.mov

@mattseddon mattseddon force-pushed the add-step-signal branch 2 times, most recently from a0a5b67 to 65fddbf Compare August 28, 2023 00:09
@mattseddon mattseddon self-assigned this Aug 28, 2023
@mattseddon mattseddon marked this pull request as ready for review August 28, 2023 00:14
src/dvclive/dvc.py Outdated Show resolved Hide resolved
@daavoo daavoo added the A: vscode Area: DVC VSCode Extension integration label Aug 28, 2023
@mattseddon mattseddon requested a review from daavoo August 28, 2023 11:10
@@ -31,7 +31,7 @@ classifiers = [
]
dynamic = ["version"]
dependencies = [
"dvc>=2.58.0",
"dvc>=3.17.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Added the bump

@daavoo daavoo merged commit bf38034 into main Aug 29, 2023
@daavoo daavoo deleted the add-step-signal branch August 29, 2023 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: vscode Area: DVC VSCode Extension integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants