You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(accounting): [cg] Check every context-guru operator outside the registry in accounting.Components #2111
Cortex's metrics sink allows only the names in accounting.Components (core/accounting/metrics.go) as the component label. The accountant sink pushes any other operator name as component="other". core/accounting must not import context-guru, so the list is a hand-written copy of context-guru's operator names.
The list is correct today. The risk is drift: if context-guru adds an operator, the copy does not change, and the new operator goes to other. The central dashboard (#2064) then counts it under the wrong source in "Net saved by source".
TestComponentsCoverTheRegistry (core/plugins/contextguru/components_test.go, in #2062) is the guard. It has two gaps:
It checks the operators outside the registry against a fixed list of six: toolfilter, toolschema, headttl, cachesplit, expand, adjudicate. It does not check tailbreakpoint, tooldefer, expand_restore or keeper.
Because the list is fixed, it cannot catch a new context-guru operator.
Bump github.com/rossoctl/context-guru in core/go.mod.
Replace the fixed list with accwire.OperatorsOutsideRegistry().
rossoctl/context-guru#1362 adds accwire.OperatorsOutsideRegistry(). The function lists every operator context-guru books that is not a registered component, and a context-guru test keeps it complete. Cortex cannot call it until it is released. The latest release is v0.7.7, which is from before #1362.
Activity