Skip to content

dvc run with --overwrite-dvcfile is not caching runs #2843

@SdgJlbl

Description

@SdgJlbl

Please provide information about your setup
DVC version 0.70.0
Ubuntu 18.04
Installed via pip in a conda env

According to the documentation, and it was the case in previous versions of DVC to the best of my knowledge, dvc run should not re-execute the command if nothing changed. It is no longer the case.

To reproduce:

mkdir tmp
cd tmp
git init
dvc init
echo "echo 'RUNNING'; echo 'hello' > output.out" > cmd.sh
chmod +x cmd.sh
dvc run --overwrite-dvcfile -o output.out ./cmd.sh 
# this print "RUNNING" as the command is executed
dvc run --overwrite-dvcfile -o output.out ./cmd.sh 
# the run should be cached but it's not and "RUNNING" is printed again
# expected output: "Stage is cached, skipping."

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responsewe are waiting for your reply, please respond! :)questionI have a question?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions