-
Notifications
You must be signed in to change notification settings - Fork 46
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
Load experiment configuration context from files even if not defined in experiment template #257
Comments
Hello @mcastellin I haven't forgotten about you. I will do my best to look at it soon. |
(chaostk-env) C:\Users\Administrator\Desktop\chaostoolkit-aws>pip install chaoslib × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. × Getting requirements to build wheel did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. Getting the above error for Python 3.11.4 |
I guess the main crux of this is that the configuration loader currently is designed to iterate over items in the configuration and updated them with the value from the extra_vars dict if the key matches. It doesn't provide a mechanism to combine them. I think some thought is needed around all the use cases and edge cases, should a variable from a var file override an env var etc? I believe it currently does, so it could be case of building all the configuration mapping from I think before jumping into this one the community needs some guidance from the BDFL on the road map for variables and configuration in the long term. it would be naive to rush into changes now that might not fit with the longer term goals. |
Is your feature request related to a problem? Please describe.
When defining controls from file with control-file options like
chaosaws.s3.controls.upload
it's impossible to set the required configuration properties unless those properties are already part of the experiment template.This can be impractical if you want a control to be transparent to the template.
I may want to use the
chaosaws.s3.controls.upload
to upload the journal into an S3 bucket but that doesn't mean the experiment is using AWS so I shouldn't be forced to add AWS parameters into every experiment.Describe the solution you'd like
Should be able to set variables from files even if they're not defined in the experiment file.
Describe alternatives you've considered
Alternatively we could have an option in the settings and control-file files to specify control-specific configuration.
Additional context
Example:
experiment.yaml
upload-journal.yaml
local-configuration.yaml
Running the following command at the moment doesn't work as suggested:
The text was updated successfully, but these errors were encountered: