-
Notifications
You must be signed in to change notification settings - Fork 33
Relocate test data to bucket #994
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0a3512b
adding dvc and full update
rleander dfbcb31
adding dvc and running pixi lock (less changes to lock file than update)
rleander 422e59b
first attempt adding input and output test data to dvc
rleander 16fb743
removing output dir from dvc
rleander 66ad62e
removing aws-cli, not necessary here
rleander f533135
removed aws-cli and restored the pixi.lock accordingly
rleander 3fdf21b
removing the profile reference from the config file
rleander 8252c83
Merge branch 'master' into relocate_test_data
rleander 7ff8fbe
adding aws credentials for github actions
rleander e6c8dda
pull dvc replaces download script called from dockerfile
rleander 5fbfa20
run dvc pull from within the pixi environment
rleander f8561cc
trailing spaces
rleander 93dfa08
update pixi lock and toml, merged master
rleander 4eaafb6
add non-anonymous remote to dvc config for pushing
rleander a232e79
Merge branch 'main' into relocate_test_data
visr 2865174
Remove Python recommendations
visr 425c71c
Remove AWS secrets from CI
visr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| /config.local | ||
| /tmp | ||
| /cache |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| [core] | ||
| remote = wflow-testdata-ro | ||
| ['remote "wflow-testdata-ro"'] | ||
| url = s3://wflow/testdata | ||
| endpointurl = https://s3.deltares.nl/ | ||
| allow_anonymous_login = true | ||
| region = eu-west-1 | ||
| ['remote "wflow-testdata-rw"'] | ||
| url = s3://wflow/testdata | ||
| endpointurl = https://s3.deltares.nl/ | ||
| region = eu-west-1 |
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
| 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 |
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| /input | ||
| /output |
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
| 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 |
Large diffs are not rendered by default.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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.dirfor 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" } ]