Manage the tree-build pipeline with DVC#122
Draft
jaredkhan wants to merge 19 commits intoOneZoom:mainfrom
Draft
Conversation
Author
|
Marking as draft only because the bucket should be changed and we should get @davidebbo's eyes on it before it's ready |
davidebbo
reviewed
Mar 29, 2026
data/js_outputs/.gitignore
Outdated
| @@ -0,0 +1,6 @@ | |||
| # Ignore everything | |||
Collaborator
There was a problem hiding this comment.
Are js_output and js_outputs meant to be distinct folders, or is this a typo?
Collaborator
There was a problem hiding this comment.
Ok, so this whole js_outputs folder can be removed?
davidebbo
reviewed
Mar 29, 2026
| ### Updating parameters | ||
|
|
||
| Edit `params.yaml` to change the OpenTree version, taxonomy version, build version, etc. DVC will detect the parameter changes and re-run only the affected stages. | ||
|
|
Collaborator
There was a problem hiding this comment.
What about the step where it gives you SQL commands to run to update the DB (steps 6 and 9 in the manual steps)? Isn't that still needed with DVC?
davidebbo
reviewed
Mar 29, 2026
dvc.yaml
Outdated
|
|
||
| download_wikipedia_sql: | ||
| cmd: >- | ||
| wget --progress=bar:force -O data/Wiki/wp_SQL/enwiki-latest-page.sql.gz |
Collaborator
There was a problem hiding this comment.
Maybe add --retry-connrefused to deal with transient failures?
4e3f53c to
9f1fcb0
Compare
ce09133 to
0c3044d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://dvc.org/
I wanted to be able to script the construction of the main tree so that it could all be run in one command.
Of course, many of these steps are quite time consuming so you don't want to have to re-run them if they've already been run recently. Enter DVC ('data version control'). It's a little tool for letting you cache files based on their hash (like Git LFS) and also setting up pipelines for reproducing all these files. So far, I've set up a pipeline for producing the mainline AllLife outputs.
Source configuration files (such as the bespoke tree files) remain tracked in git.
Derived files (such as the filtered wikipedia titles files) become tracked in DVC and their reproduction is now as simple as:
All the download stages have been automated to make this work.
The underlying logic being run has for the most part been left untouched, though some paths have been shuffled around to make the caching tidier.
I wanted to put it up for review at this stage and see if we're keen on moving forward with this.
I've set up a bucket for mucking about with this and I'll share the keys on the Slack channel. If we want to go ahead, we should set up a bucket that's under the orgs control rather than mine.