Fix Kafka Consumer cluster tests broken on master #25733
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 215 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.322
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #25733"
general
weight: 0.35
iliakur
What does this PR do?
Fixes two Kafka Consumer unit tests that fail on
masterwithAttributeError: KafkaClient ... has no attribute 'open_consumer':test_configured_topic_missing_from_cluster_does_not_block_other_groupstest_configured_topic_created_after_first_run_is_collectedThe
check_against_fake_clusterhelper stubbedopen_consumer,close_consumer, andconsumer_get_cluster_id_and_list_topics, which no longer exist. This PR drops those stubs and has the fake broker'slist_topicsreport acluster_id, so the realKafkaClient.get_cluster_idruns instead of being stubbed. The helper docstring is updated to match.Motivation
#25666 added the helper, and #25667 then removed the consumer methods it stubs. Each PR passed CI on its own, but together they break Kafka Consumer tests on
masterand on every PR that runs them (for example this run on #25706).This PR changes tests only, so it needs no changelog entry.
Checklist before requesting review
🤖 Generated with Claude Code