← Back to Pull requests

fix(inkless:test): raise S3 timeouts and avoid the isolated broker in switch systests #813

Closed
unknown closed this pull request without merging on Sep 30, 2026 14:10 UTC
View on GitHub
unknown unknown commented on Sep 30, 2026 07:56 UTC
Author

Six InklessClassicToDisklessSwitchTest cases fail on the nightly run for
two reasons unrelated to the switch itself.

#791 set the S3 client defaults to a 2 s call timeout and a 1 s attempt
timeout. The degraded-network tests throttle every broker NIC, including the
path to MinIO, to 2 Mbit/s with 200 ms latency, so WAL uploads outlast 2 s
and fail with ApiCallTimeoutException. The producer retries each failed
produce, so it either never recovers or the consumer reads more records than
were acked. _create_kafka now sets the call timeout to 60 s and the attempt
timeout to 30 s. That fixes test_switch_follower_crash_with_lagged_hw,
test_switch_leader_crash (both variants), test_switch_leader_restart, and
test_switch_rolling_restart, which have failed since #791 merged.

test_switch_follower_network_partition isolates a follower and then runs
kafka-configs.sh from self.nodes[0]. When that node is the isolated
follower, the admin client can't reach its peers, and the describe that
precedes the alter hits its 30 s limit. _switch_topic_to_diskless now takes
a node, and both network-partition tests pass one from the reachable side.
test_switch_leader_network_partition has the same latent bug, since the
leader can also be self.nodes[0].

Test plan

Run the Inkless System Tests workflow on this branch and check that the six
cases pass. test_switched_topic_urp_clears_after_replica_recovery still
fails: that failure is the stranded-follower bug fixed by #760.

Co-authored-by: Cursor <cursoragent@cursor.com>

Made with Cursor

Diff: 199 lines (+149 / -50) across 2 files Reviewer: viktorsomogyi Review duration: 374m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 199 lines diff across 2 files
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.317
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #813"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 36.1% (MEDIUM) · Higher = larger blast radius
36.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.3% · Safe to merge
14.3%
Repository