Closed WixoLeo closed 1 year ago
Hello @WixoLeo
Thanks for the report and GH repo. But I'm confused. The settings file links to a control where everything is commented out. can you explain?
Yes, I've commented them out so it would turn into a minimal version of the issue, as less code as possible. But the results are the same even if it's uncommented. @Lawouach
Also there are 2 control files, one that is being used in settings.yaml, and another in exp.json, same one multiple times (Tested also with multiple different controls and still same result)
Thanks. It's styill confusing what I'm meant to see.
This Issue has not been active in 365 days. To re-activate this Issue, remove the Stale
label or comment on it. If not re-activated, this Issue will be closed in 7 days.
This Issue was closed because it was not reactivated after 7 days of being marked Stale
.
Describe the bug If I have a multiple sets of controls in my experiment, and they all have
before_activity_control
andafter_activity_control
, (In addition I use an empty(or not empty) control in settings.yaml) and if I run the experiment using this command:Then only the first set of before and after activity is being called and not the rest.
Runtime versions
To Reproduce I've made a repository for that with the readme file: https://github.com/WixoLeo/ctk-tests
We have a simple exp.json and a simple plugin for the chaos. That plugin contains a simple probe and action. Along that it contains 2 control files. global_control.py and playground_control.py.
global_control is empty (it doesn't matter if it's empty or not, the result will be the same) It's empty in order to reduce the amount of speculations of where could be the issue. this control is being used only in settings.yaml
In the exp.json I've placed playground_control, 2 times, every event inside that file prints out the name of the function. So that we could see in the console which controls are being called and which aren't.
So if we run the experiment, we would expect to see a print of every control event twice. However, for some reason, specifically the before and after activity events, are printed only once. Additionally, before and after experiment control is being printed 3 times for some reason. When I would expect to see them only twice each.
Expected behavior I would expect every activity control to be run from all controls.