-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
pull: misleading/unexpected warning #6105
Comments
I'm getting the same with other commands (e.g.
And It leads to these sporadic warnings here and there. |
I am able to reproduce: def test_imported_status(tmp_dir, scm, dvc, erepo_dir, make_tmp_dir, caplog):
with erepo_dir.chdir():
erepo_dir.dvc_gen({"dir": {"file": "file content"}}, commit="init data")
dvc.imp(str(erepo_dir), "dir", out="import_dir")
tmp_dir.add_remote(url = str(make_tmp_dir("storage")), name="str", default=True)
import shutil
shutil.rmtree(tmp_dir/".dvc"/"cache")
shutil.rmtree(tmp_dir/"import_dir")
import logging
caplog.clear()
with caplog.at_level(logging.WARNING, "dvc"):
dvc.ls(str(tmp_dir), recursive=True)
assert "Missing cache files" not in caplog.text This is interesting one. Seems like solving #4527 should help with it. But, since the imported data can be |
@shcheklein Thanks for the report! 🙏 From a quick look, the bug is only present in the upstream, and is not present in stable versions (2.3.0 being the latest one). I will be fixed in the next release. Related to #6008 |
This will likely end up being resolved by the import changes in #6109 |
Bug Report
Description
dvc pull
complained about missing cache files (locally and remotely), but then downloads it successfully.Reproduce
For me the sequence of commands was:
Expected
No warning.
Environment information
The text was updated successfully, but these errors were encountered: