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

dvc: introduce local stage cache #3603

Merged
merged 1 commit into from
Apr 29, 2020
Merged

dvc: introduce local stage cache #3603

merged 1 commit into from
Apr 29, 2020

Conversation

efiop
Copy link
Contributor

@efiop efiop commented Apr 7, 2020

This patch introduces .dvc/cache/stages that is used to store previous
runs and their results, which could then be reused later when we stumble
upon the same command with the same deps and outs.

Format of build cache entries is single-line json, which is readable by
humans and might also be used for lock files discussed in #1871.

Related to #1871
Local part of #1234

  • ❗ I have followed the Contributing to DVC checklist.

  • 📖 If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here. If the CLI API is changed, I have updated tab completion scripts.

  • ❌ I will check DeepSource, CodeClimate, and other sanity checks below. (We consider them recommendatory and don't expect everything to be addressed. Please fix things that actually improve code or fix bugs.)

Thank you for the contribution - we'll try to review it as soon as possible. 🙏

@efiop efiop force-pushed the 1234 branch 3 times, most recently from e7d8355 to 97e8f00 Compare April 7, 2020 05:19
@efiop efiop changed the title [WIP] dvc: introduce local build cache [WIP] dvc: introduce local stage cache Apr 7, 2020
@efiop efiop requested a review from skshetry April 7, 2020 05:59
dvc/stage.py Outdated Show resolved Hide resolved
dvc/stage_cache.py Outdated Show resolved Hide resolved
tests/func/test_import.py Outdated Show resolved Hide resolved
dvc/stage_cache.py Outdated Show resolved Hide resolved
dvc/stage_cache.py Outdated Show resolved Hide resolved
dvc/stage_cache.py Outdated Show resolved Hide resolved
@efiop efiop force-pushed the 1234 branch 2 times, most recently from df02586 to 116f1be Compare April 7, 2020 13:41
dvc/repo/reproduce.py Outdated Show resolved Hide resolved
dvc/stage.py Outdated Show resolved Hide resolved
dvc/stage_cache.py Outdated Show resolved Hide resolved
dvc/stage_cache.py Outdated Show resolved Hide resolved
@efiop efiop force-pushed the 1234 branch 2 times, most recently from 8554209 to 890e969 Compare April 29, 2020 18:21
This patch introduces `.dvc/cache/stages` that is used to store previous
runs and their results, which could then be reused later when we stumble
upon the same command with the same deps and outs.

Format of build cache entries is single-line json, which is readable by
humans and might also be used for lock files discussed in iterative#1871.

Related to iterative#1871
Local part of iterative#1234
@efiop efiop changed the title [WIP] dvc: introduce local stage cache dvc: introduce local stage cache Apr 29, 2020
@efiop efiop merged commit 18e8f07 into iterative:master Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants