Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dvc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/config.local
/tmp
/cache
7 changes: 7 additions & 0 deletions .dvc/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[core]
remote = Wflow-testdata
['remote "wflow-testdata"']
url = s3://wflow/testdata
endpointurl = https://s3.deltares.nl
profile = Wflow-testdata
region = eu-west-1
3 changes: 3 additions & 0 deletions .dvcignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Add patterns of files dvc should ignore, which could improve
# the performance. Learn more at
# https://dvc.org/doc/user-guide/dvcignore
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

# Temporary files
/dev/
/Wflow/test/data/
/tmp/
Wflow/test/sbm_piave_config-debug.toml
Wflow/test/sbm_simple_temp.toml
Expand Down
2 changes: 2 additions & 0 deletions Wflow/test/data/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/input
/output
6 changes: 6 additions & 0 deletions Wflow/test/data/input.dvc

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you intent to bundle the whole input directory together? I think that means that if one file changes, everything gets re-downloaded. Not too bad right now at 300MB, but this could get annoying. We can also do it per file. Or perhaps per model, but then we should probably bundle the models in subdirectories.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now we bundle all files (version): https://github.com/visr/wflow-artifacts/releases/tag/v1.0.0.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think it is fine like this. If it starts to get annoying because people are changing different files in different branches, we can still decide to version them separately.
And it doesn't seem to be true that everything gets redownloaded.

@visr visr Jul 20, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I see why I was wrong. DVC doesn't track the dir as one blob, it just stores a JSON with pointers to the actual files, see this eac653f3009e1f9babcae88c07ee56.dir for instance:

[
   {
      "md5":"76afca075bef6e20f48eb11dd585d7a4",
      "relpath":"hydrotype.dbf"
   },
   {
      "md5":"cb3e648c38fd75188df5ea80c1924386",
      "relpath":"hydrotype.prj"
   },
   {
      "md5":"b5ed91a25adf2925fc573061e948d6ff",
      "relpath":"hydrotype.shp"
   },
   {
      "md5":"2806f374363203bf1e88ce3b3ee238f2",
      "relpath":"hydrotype.shx"
   },
   {
      "md5":"399c079845032dfa1749335c619725e3",
      "relpath":"vdGaast_water_depth.csv"
   }
]

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
outs:
- md5: 88ca646c32a3859e619362a55fe8bdca.dir
size: 317173497
nfiles: 19
hash: md5
path: input
3,600 changes: 3,579 additions & 21 deletions pixi.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ initialize-julia = { depends-on = [
] }
install = { depends-on = ["install-julia", "install-prek"] }
# Test data
download-test-data = { cmd = "julia --project ../utils/download_test_data.jl", cwd = "Wflow" }
download-test-data = { cmd = "dvc pull", cwd = "." }
# Build
build-wflow-cli = { cmd = "julia --project create_app.jl", cwd = "build/create_binaries", depends-on = [
{ "task" = "instantiate-julia", "args" = [
Expand Down Expand Up @@ -76,6 +76,8 @@ inputs = ["Manifest.toml"]
outputs = ["Wflow.spdx.json"]

[dependencies]
dvc = "*"
dvc-s3 = "*"
juliaup = "*"
python = ">=3.10"
jupyter = ">=1.1.1,<2"
Expand Down
63 changes: 0 additions & 63 deletions utils/download_test_data.jl

This file was deleted.

Loading