Closed ryan-williams closed 2 weeks ago
Hmm, I can't reproduce it. I'm getting:
(.venv) √ Projects/dvc-test-10617 % dvc push -A
Collecting |3.00 [00:00, 1.16kentry/s]
Pushing
2 files pushed
(.venv) √ Projects/dvc-test-10617 % tree /tmp/remote-10617
/tmp/remote-10617
└── files
└── md5
├── 5c
│ └── 9597f3c8245907ea71a89d9d39d08e
└── 88
└── 80cd8c1fb402585779766f681b868b
When you do git commit -m 'dvc init'
are you sure you committed all DVC config changes?
Could you also try to run it with DVC installed via pip
, and remote outside of $PWD
(e.g. /tmp/remote
) - just to see if it triggers this behavior somehow.
Also, could you try to drop /opt/homebrew/var/cache/dvc/repo/387da8edde78dc277f79c374061cb146
.
Here is a repro in a GitHub Action.
Here's a repro in a python:3.11.8
Docker image:
git clone https://github.com/ryan-williams/dvc-push-bug
cd dvc-push-bug
docker build -t dvc-push-bug .
docker run --rm dvc-push-bug
Output:
...
❌ missing /tmp/remote/files/md5/5c/9597f3c8245907ea71a89d9d39d08e
Putting the remote under /tmp
, or a subdir of the Git/DVC workdir, doesn't seem to matter, e.g. both of these fail:
docker run --rm dvc-push-bug # Default: /tmp/remote
docker run --rm -e /src/remote dvc-push-bug # Alternate remote location
First of all thanks for an amazing work for making it reproducible. GH actions is 🔥 ! :)
Here is the fix for this behavior: https://github.com/shcheklein/dvc-push-bug/commit/8e5c2046988bdddb4731e40bef0612309fe811d0 it seems (I think as I mentioned above When you do git commit -m 'dvc init' are you sure you committed all DVC config changes?
).
Please take a look and close the ticket if that works for you.
Nice catch, GHA passed here with that fix 🙏
I also ran:
git add .dvc/config # `.dvc/config` required
git commit -m 'dvc init' # OK to leave out `.dvc{,/.git}ignore`
which also passed. Confirming my understanding:
.dvc/config
, and leaving the relevant configs unstagedI originally hit this issue in a larger project context, where I believe all relevant DVC configs were properly committed… I'll try that again and report back, but will close this for now. tysm for your help!
Bug Report
dvc push
's-a
(all branches) and-A
(all commits) flags don't seem to do anything. Bothdvc push -a
anddvc push -A
result in only blobs from theHEAD
commit being pushed to my default remote.Reproduce
Expected
2 versions of
1.txt
should have been pushed toremote
, but only theHEAD
version was.Environment information
``` DVC version: 3.56.0 (brew) -------------------------- Platform: Python 3.13.0 on macOS-15.1-arm64-arm-64bit-Mach-O Subprojects: dvc_data = 3.16.6 dvc_objects = 5.1.0 dvc_render = 1.0.2 dvc_task = 0.40.2 scmrepo = 3.3.8 Supports: azure (adlfs = 2024.7.0, knack = 0.12.0, azure-identity = 1.19.0), gdrive (pydrive2 = 1.20.0), gs (gcsfs = 2024.10.0), hdfs (fsspec = 2024.10.0, pyarrow = 17.0.0), http (aiohttp = 3.10.10, aiohttp-retry = 2.8.3), https (aiohttp = 3.10.10, aiohttp-retry = 2.8.3), oss (ossfs = 2023.12.0), s3 (s3fs = 2024.10.0, boto3 = 1.35.36), ssh (sshfs = 2024.9.0), webdav (webdav4 = 0.10.0), webdavs (webdav4 = 0.10.0), webhdfs (fsspec = 2024.10.0) Config: Global: /Users/ryan/Library/Application Support/dvc System: /opt/homebrew/share/dvc Cache types: reflink, hardlink, symlink Cache directory: apfs on /dev/disk3s1s1 Caches: local Remotes: local Workspace directory: apfs on /dev/disk3s1s1 Repo: dvc, git Repo.site_cache_dir: /opt/homebrew/var/cache/dvc/repo/387da8edde78dc277f79c374061cb146 ```dvc doctor