push: fails when tracked directories are missing from local cache #10124
Labels
A: data-sync
Related to dvc get/fetch/import/pull/push
p1-important
Important, aka current backlog of things to do
Bug Report
Description
push fails when a tracked directory is missing from the local cache.
I have a use case where an automated process runs
dvc repro
for a subset of the DAG stages in a clean checkout of the git repository. Thedvc.lock
file references outputs from prior pipeline runs in the project that are not present in the workspace or cache, but I do not want to regenerate or pull into the workspace because they are stored in a separate remote that can't be accessed from the environment. Prior to version 3.27.1, I could run my pipeline anddvc push
and only receive a warning about the missing files. Now the process fails and no data is pushed to the remote.From developing a reproducible example, it appears to me this only impacts tracked directories, and not regular files.
Reproduce
Requires poetry
Downgrading to 3.27.0 changes the behavior.
I have also tested and confirmed the error still occurs in versions 3.30.3 and 3.30.1, with corresponding commits in the repo.
Expected
In version 3.27.0 and prior, this situation resulted in a warning, but the push completed successfully and returned exit code 0. I would like to see this behavior restored.
Environment information
The text was updated successfully, but these errors were encountered: