Page MenuHomePhabricator

[TK AA] Fix test_table_names
Closed, ResolvedPublic1 Estimated Story Points

Description

Registering experiments for automated analysis is currently blocked by a CI pipeline failure:

FAILED tests/test_registries.py::test_table_names - AssertionError: Found tables without matching stream configurations: product_metrics_web_base
assert 1 == 0
 +  where 1 = len({'product_metrics_web_base'})

this is caused by https://gitlab.wikimedia.org/repos/product-analytics/test-kitchen/experiment-analytics-configs/-/blob/main/tests/test_registries.py?ref_type=heads which checks for

("metrics_platform_client" in stream["producers"].keys())

but since https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/1270454 removed metrics_platform_client from product_metrics.web_base stream's producers, the stream is incorrectly considered invalid.

(The test was added long before T408186: Configure experiments with stream, schema and contextual attributes.)

The test should be modified to not make that check, as experiments can (and should) use TK UI now rather than stream config for specifying contextual attributes, making 'producers' => [ 'metrics_platform_client' ] unnecessary.

Acceptance criteria

  • Test is updated

Event Timeline

mpopov triaged this task as High priority.May 13 2026, 2:11 PM
mpopov set the point value for this task to 1.
mpopov moved this task from Incoming to READY TO GROOM on the Test Kitchen board.