-
Notifications
You must be signed in to change notification settings - Fork 30
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
Extension overreacts and runs extra DVC commands #948
Comments
If you queue an experiment it touches the |
@shcheklein How did you install it? |
@efiop it's |
Can't reproduce on the latest master. If you can - please feel free to create an issue in dvc repo. NOTE for others: this is about |
@shcheklein, have you run |
From looking at the logs this actually looks like the expected behaviour with a queue of size 1.
The behaviour looks overreactive because the commands take so long to run. Edit: That's not to say that we can't improve our watchers. I will also look into why |
examples: |
Question is why do we run diff, status, etc at all when I queue an experiment. |
In our demo project when we queue an experiment the following files are "touched":
I assume that is because in the mechanics of queuing an experiment DVC take a copy of the current workspace and saves it into a temp location. There is no simple way to stop the repository watcher from firing under these circumstances. |
Thanks, @mattseddon . Let's discuss it with the DVC team/raise the ticket there. From the top of my head I don't see a strong reason to do this on the DVC end. |
@pmrowla Maybe you know what's going on in #948 (comment) from the top of your head. |
as @mattseddon noted, queueing an experiment will touch files in the workspace (because we git stash and unstash changes in order to save the queued workspace state). If the vscode extension has file watchers on the workspace that will trigger |
it's probably not possible to this reliably - we might lose some events that were not related to the |
@pmrowla do you know by chance why does git touch files that are not modified? do we have any other ideas how to mitigate this behavior? |
Discussed this in a recent meeting with the DVC team. We excluded a subdirectory from file watching in #1533 and it has helped. |
@mattseddon closing this, since it looks like it is resolved. |
Description
Looks like even if you run
dvc version
it triggers some DVC commands.If you queue experiments you would also have to wait to see it in the table, since extension runs a lot of stuff.
Expected
Experiments is queued and we have the table updates almost immediately
Environment
DVC Version:
(cc @efiop @skshetry - how is it possible that version is UNKNOWN?)
Extension:
v0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6
Code:
Logs
Logs
``` [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:34.758Z, pid: 87295] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc exp run --queue - COMPLETED (642ms) [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:37.579Z, pid: 87300] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc exp show --show-json - FAILED with code 1 (2891ms) ERROR: failed to show experiments - Unable to acquire lock. Most likely another DVC process is running or was terminated abruptly. Check the page for other possible reasons and to learn how to resolve this. [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:38.087Z, pid: 87310] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc exp show --show-json - INITIALIZED [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:40.809Z, pid: 87299] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc status --show-json - COMPLETED (6124ms) [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:40.810Z, pid: 87311] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc diff --show-json - INITIALIZED [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:42.190Z, pid: 87310] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc exp show --show-json - COMPLETED (4105ms) [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:42.192Z, pid: 87338] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc exp show --show-json - INITIALIZED [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:45.066Z, pid: 87338] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc exp show --show-json - FAILED with code 1 (2875ms) ERROR: failed to show experiments - Unable to acquire lock. Most likely another DVC process is running or was terminated abruptly. Check the page for other possible reasons and to learn how to resolve this. [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:45.572Z, pid: 87359] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc exp show --show-json - INITIALIZED [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:48.442Z, pid: 87359] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc exp show --show-json - FAILED with code 1 (2872ms) ERROR: failed to show experiments - Unable to acquire lock. Most likely another DVC process is running or was terminated abruptly. Check the page for other possible reasons and to learn how to resolve this. [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:49.449Z, pid: 87400] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc exp show --show-json - INITIALIZED [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:51.570Z, pid: 87311] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc diff --show-json - COMPLETED (10761ms) [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:51.583Z, pid: 87429] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc status --show-json - INITIALIZED [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:53.035Z, pid: 87400] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc exp show --show-json - COMPLETED (3587ms) [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:58.241Z, pid: 87429] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc status --show-json - COMPLETED (6659ms) [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:18:58.244Z, pid: 87470] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc diff --show-json - INITIALIZED [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:19:07.655Z, pid: 87470] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc diff --show-json - COMPLETED (9413ms) [version: 0.1.0-2f67bb018b6eac3f9889e8d2f5420322366cdcd6, 2021-10-26T22:19:07.667Z, pid: 87563] > /Users/ivan/Projects/get-started-experiments/.env/bin/python -m dvc list . --dvc-only -R --show-json - INITIALIZED ```The text was updated successfully, but these errors were encountered: