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

[Bug]: Some locally committed files are empty in runs #1679

Closed
jvstme opened this issue Sep 10, 2024 · 2 comments
Closed

[Bug]: Some locally committed files are empty in runs #1679

jvstme opened this issue Sep 10, 2024 · 2 comments
Labels
bug Something isn't working stale

Comments

@jvstme
Copy link
Collaborator

jvstme commented Sep 10, 2024

Steps to reproduce

Clone a git repo and commit any binary file or a large (e.g. 1GB) text file. Do not push to remote.

> git clone https://github.com/dstackai/gpuhunt.git
Cloning into 'gpuhunt'...
remote: Enumerating objects: 1264, done.
remote: Counting objects: 100% (623/623), done.
remote: Compressing objects: 100% (294/294), done.
remote: Total 1264 (delta 417), reused 458 (delta 321), pack-reused 641 (from 1)
Receiving objects: 100% (1264/1264), 272.24 KiB | 1010.00 KiB/s, done.
Resolving deltas: 100% (686/686), done.

> cd gpuhunt/

> dd if=/dev/zero of=test-file bs=65536 count=1
1+0 records in
1+0 records out
65536 bytes (66 kB, 64 KiB) copied, 0.000250103 s, 262 MB/s

> git add test-file

> git commit -m test

Run a dstack configuration in this repo.

> printf "type: dev-environment\nide: vscode\nname: test-run" > .dstack.yml
> dstack init
OK
> dstack apply -y

Wait until the run is running.

Actual behaviour

The file is empty in the run.

> ssh test-run ls -lh /workflow/test-file
-rw-r--r-- 1 root root 0 Sep 10 08:09 /workflow/test-file

Expected behaviour

The file is not empty.

> ssh test-run ls -lh /workflow/test-file
-rw-r--r-- 1 root root 64K Sep 10 08:09 /workflow/test-file

Additional information

Here git diff only returns file names for binary or large files, not the actual diff.

@jvstme jvstme added the bug Something isn't working label Sep 10, 2024
@jvstme jvstme changed the title [Bug]: Binary files committed to git repo are empty in runs [Bug]: Locally committed files are empty in runs Sep 10, 2024
@jvstme jvstme changed the title [Bug]: Locally committed files are empty in runs [Bug]: Some locally committed files are empty in runs Sep 11, 2024
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Oct 12, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale. Please reopen the issue if it is still relevant.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

1 participant