Skip to content

Conversation

@GabrielBuica
Copy link
Contributor

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 copmponents.

@codecov
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f92edf0) 49.07% compared to head (ff5f954) 49.07%.

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           
Flag Coverage Δ
python2.7 53.38% <ø> (ø)
python3.11 55.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


let filter_out_exp_components components =
let open Xapi_globs in
let component_set = components |> List.map to_string |> StringSet.of_list in
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@GabrielBuica GabrielBuica force-pushed the private/dbuica/CP-46157 branch from e934804 to 26020b6 Compare February 8, 2024 15:51
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>
@GabrielBuica GabrielBuica force-pushed the private/dbuica/CP-46157 branch from 33f587e to ff5f954 Compare February 9, 2024 13:16
@GabrielBuica
Copy link
Contributor Author

Passed bvt 194450 and DT 3927437.

@mg12 mg12 merged commit 8901af8 into xapi-project:master Feb 9, 2024
@GabrielBuica GabrielBuica deleted the private/dbuica/CP-46157 branch January 8, 2025 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants