Skip to content

multiple instances of DVC can repro the same stage file in the same git repo at the same time. is it expected ? #3370

@Ykid

Description

@Ykid

Please provide information about your setup
DVC version(i.e. dvc --version), Platform and method of installation (pip, homebrew, pkg Mac, exe (Windows), DEB(Linux), RPM(Linux))

DVC version: 0.86.4
Python version: 3.7.6
Platform: Linux-5.0.0-37-generic-x86_64-with-debian-buster-sid
Binary: False
Package: pip

to reproduce

mkdir testrepo && cd testrepo
git init
dvc init
git add .
git commit -m "init"
echo "a" >> dep.txt
echo -e "From python\nRUN pip install dvc\nWORKDIR /workspace\nCMD dvc repro 1.dvc" > Dockerfile
docker build -t testdvc .
dvc run --no-exec -f 1.dvc -d dep.txt -o test.txt 'sleep 10; echo "a">> test.txt'

docker run --rm -v $(pwd):/workspace --name testdvcdvc1 testdvc:latest

# in another window, same directory
docker run --rm -v $(pwd):/workspace --name testdvcdvc2 testdvc:latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDid we break something?p2-mediumMedium priority, should be done, but less importantresearch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions