Skip to content

feat: add repro pull config - #11140

Open
Rudra-G-23 wants to merge 1 commit into
treeverse:mainfrom
Rudra-G-23:feat/11116-repro-pull-config
Open

Rudra-G-23 wants to merge 1 commit into
treeverse:mainfrom
Rudra-G-23:feat/11116-repro-pull-config

Conversation

@Rudra-G-23

@Rudra-G-23 Rudra-G-23 commented Nov 13, 2026 •

Copy link
Copy Markdown

Summary

Fix: #11116

Adds an opt-in core.repro_pull boolean configuration option for dvc repro.

When enabled, dvc repro uses the existing --pull behavior by default. Explicit CLI flags take precedence:

Config Command Pull
unset / false dvc repro disabled
true dvc repro enabled
false dvc repro --pull enabled
true dvc repro --pull enabled
true dvc repro --no-pull disabled

The configuration only affects dvc repro. dvc exp run retains its existing behavior.

Implementation

  • Adds validated core.repro_pull, defaulting to false.
  • Uses a tri-state repro CLI argument so omitted, explicit true, and explicit false remain distinguishable.
  • Reuses existing run-cache and stage pull paths without new download logic.

Tests

  • Added functional local-remote coverage for config defaults and CLI overrides.
  • Added configuration validation and scope-precedence coverage.
  • Verified run-cache pull activation.
  • 60 passed across focused command, repro-pull, and config tests.
  • Ruff check, Ruff format, and git diff --check pass.

@github-project-automation github-project-automation Bot added this to DVC