-
Notifications
You must be signed in to change notification settings - Fork 292
CP:46157: Add observer_experimental_components flag
#5428
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5428 +/- ##
=======================================
Coverage 49.07% 49.07%
=======================================
Files 18 18
Lines 2319 2319
=======================================
Hits 1138 1138
Misses 1181 1181
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
|
||
| let filter_out_exp_components components = | ||
| let open Xapi_globs in | ||
| let component_set = components |> List.map to_string |> StringSet.of_list in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could have a set for type t instead, although I think you had problems with circular dependencies that way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, using the custom setter to make a set of type t creates a circular dependency. Although after adding the strings to constants.ml we can validate the elements of the string set.
e934804 to
26020b6
Compare
Adds a new variable in `Xapi_globs` that is a comma-separeted string of components. Components in this list will be considered experimental and therefore disabled by default. They can be enabled by adding an entry in `xapi.conf` without their name. For instance, adding the line: observer-experimental-components = "" will enable all experimental components. Signed-off-by: Gabriel Buica <danutgabriel.buica@cloud.com>
33f587e to
ff5f954
Compare
|
Passed bvt 194450 and DT 3927437. |
Adds a new variable in
Xapi_globsthat is a comma-separeted string of components. Components in this list will be considered experimental and therefore disabled by default. They can be enabled by adding an entry inxapi.confwithout their name.For instance, adding the line:
observer-experimental-components = ""
will enable all experimental copmponents.