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

Setup test setup repository #59

Closed
jannikluhn opened this issue Sep 29, 2021 · 2 comments
Closed

Setup test setup repository #59

jannikluhn opened this issue Sep 29, 2021 · 2 comments
Assignees

Comments

@jannikluhn
Copy link
Contributor

jannikluhn commented Sep 29, 2021

The repo should contain

  • config files for keypers, decryptors, and mocknode(s)
  • script(s) to setup the database(s)
  • a readme that describes how you can run the test setup

example name: rolling-shutter-samples , rsspl, rllngshttrsmpls

@jannikluhn jannikluhn changed the title Write a script to populate the decryptor db with keyper sets Setup test setup repository Sep 29, 2021
@jannikluhn jannikluhn added this to To do in Rolling Shutter Sep 30, 2021
@ghost
Copy link

ghost commented Oct 1, 2021

This is what I hacked together last evening: https://github.com/shutter-network/rs-play

It uses babashka's task functionality. Babashka is a 'Native, fast starting Clojure interpreter for scripting'.

The task runner allows one to run tasks, kind of like in a Makefile with dependency handling. It's being used to rebuild the rolling-shutter executable if it's out of date before trying to generate config files or initializing a database with the rolling-shutter executable.

Pro:

  • it's clojure
  • it's fast (make generate build takes takes around 2s if rolling-shutter is up to date, bb build needs 0.1s in that case)
  • the task runner looks like a good fit for our use case

Con:

  • it's clojure
  • babashka doesn't have a builtin library to modify toml files

I'm fine if you decide to ignore this because it's clojure. But I do think we should run with it if at least one other person wants to give it a try.

@cducrest cducrest moved this from To do to In progress in Rolling Shutter Oct 1, 2021
@cducrest cducrest assigned ghost Oct 1, 2021
@ghost ghost removed their assignment Oct 1, 2021
@jannikluhn jannikluhn self-assigned this Oct 11, 2021
@jannikluhn
Copy link
Contributor Author

I added commands to test the keypers and it's done for now.

Rolling Shutter automation moved this from In progress to Done Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant