You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce a new feature that handles test data in bob.
Test data is a team-shared storage which provides files needed to run tests. It is not git-lfs, files are versioned but it is easier to handle with less overhead. Eg. you can easily jump between test data versions without affecting the rest of your code base.
How to add files: bob.yaml: specifies directories which are testdata, each with a version tag. Eg:
Test data must not collide with git, all files have to be mutually exclusive.
Bob remembers a mapping: local test data path -> file hash to speed up synchronization.
Access-control: not all users (api-tokens) in a project are allowed to push. 'read' and 'read/write' will be the two authorization levels to prevent some users from changing the test data on the server.
Future development:
Test data can be locally encrypted before uploaded. However, the key can be shared via bob.
Sync before task: Sync is automatically called everytime "bob build" is called and inputs are within the testdata folder (one has to make sure all test data accessed from code is referenced correctly)
Potential CLI:
daniel@beutelsend my_project ➜ bob testdata --help
Sync (binary) test data via a bob-server.
Usage:
bob testdata [flags]
bob testdata [command]
Available Commands:
ls list files synced by testdata
ls-remote list files on server
push make server exactly like local
pull make local folder exactly like server
Flags:
-h, --help help for build
Global Flags:
-v, --verbosity int set verbosity level (default 1)
Use "bob testdata [command] --help" for more information about a command.
Possible work activity:
have some folder with data
introduce bob
add the folder as collection to the bob file, do not define a version tag
push to remote
pull on some other machine
change the data in the folder
accidentally hit push
get asked if you want to apply changes to the server
press no
go to bob file and add a new version tag
run bob push
bob creates a new collection, nothing is lost, bob does not have to prompt
you are looking for a specific version of a file
you head to bob-server
select the path
you see all the version tags which include this file
The text was updated successfully, but these errors were encountered:
Introduce a new feature that handles test data in bob.
Test data is a team-shared storage which provides files needed to run tests. It is not git-lfs, files are versioned but it is easier to handle with less overhead. Eg. you can easily jump between test data versions without affecting the rest of your code base.
How to add files:
bob.yaml
: specifies directories which are testdata, each with a version tag. Eg:Test data must not collide with git, all files have to be mutually exclusive.
Bob remembers a mapping:
local test data path -> file hash
to speed up synchronization.Access-control: not all users (api-tokens) in a project are allowed to push. 'read' and 'read/write' will be the two authorization levels to prevent some users from changing the test data on the server.
Future development:
Potential CLI:
Possible work activity:
have some folder with data
introduce bob
add the folder as collection to the bob file, do not define a version tag
push to remote
pull on some other machine
change the data in the folder
accidentally hit push
get asked if you want to apply changes to the server
press no
go to bob file and add a new version tag
run bob push
bob creates a new collection, nothing is lost, bob does not have to prompt
you are looking for a specific version of a file
you head to bob-server
select the path
you see all the version tags which include this file
The text was updated successfully, but these errors were encountered: