cloe icon indicating copy to clipboard operation
cloe copied to clipboard

Error `[json.exception.out_of_range.401] array index 2 is out of range`

Open cassava opened this issue 3 years ago • 2 comments

Steps to reproduce:

cd plugins/vtd/tests
cloe-launch shell -P profile_default.py
cloe-engine -l debug run test_vtd_smoketest.json bootstrap_vtd.json ../../../tests/option_performance_measurements.json

cassava avatar Jun 09 '22 08:06 cassava

There are in fact two issues:

  1. The environment variable ${CLOE_ROOT} used in the stackfile is currently only defined in the bats setup. Could we maybe define it in the profile's package_info() method?
  2. Issue 1. causes an exception thrown here. The variable interpolation is invoked from inside the loop over the stack files to be merged (s. recursive call here and here). When the exception is caught here, the index i value causes the out-of-range error.

tobifalk avatar Jun 09 '22 19:06 tobifalk

Thanks for your root-cause analysis @tobifalk.

So I figured out a way to define some environment variables in #92. Haven't gotten a chance to look at the root cause.

cassava avatar Jun 30 '22 14:06 cassava