Open hsanjuan opened 7 years ago
It'd be nice to be able to do something to the effect of
input:
- HASH_[1..10]
rather than
input:
- HASH_1
- HASH_2
[...]
- HASH_10
topology
option that makes it easy to set up certain connections (e.g. 'all nodes disconnect from current peers and establish direct connections with one another)i
):step: Save LANADDR for all nodes
on_node: 1
end_node: 10
cmd: "ipfs id -f "<addrs>" | grep 172
outputs:
- line: 0
save_to: LANADDR$i
One way to implement this might be to have a 'global' environment, which includes environment variables that are available both outside of cmd
s and also 'inside' (within the containers themselves).
A few of the above suggestions have been addressed in some form in recent additions to the DSL.
selection
field in a test to run over the range of all test node ids or over 100 percent of the nodesHASH [1..10]
suggestion, but it is perhaps addressed by the recent addition of the append_to
output and automatic inclusion of these arrays into the environment of commands that make accesses.${OUT_CIDS[%s]}
. It should be straightforward to generalize this substitution to other places within the command.It would be nice to account for basic arithmetic when making substitutions during the parameterization pre-processing step. For example the current cluster-test runner script needs to write 13 parameters to the config in order to substitute in all the necessary parameters. However all 13 parameters are derivable from two root parameters by addition, multiplication and division by constants (e.g. N: 4, Y: 3, N_times_4: 16, ParamA: 2*N*Y + Y/3...
). Only including addition, multiplication and parentheses ordering would make parameterizing a lot cleaner.
I'm going to keep track here of a few things that cross my mind and that would be nice to have: