← Back to Pull requests

fix: stabilize task queue and ingestion CI tests #20291

Closed
unknown closed this pull request without merging on Sep 26, 2026 04:00 UTC
View on GitHub
unknown unknown commented on Sep 08, 2026 03:45 UTC
Author

Description

Fix three CI failures observed in Dependabot PRs:

  • #20281: remove the task-count assertion across independent snapshots (986 vs 1000), and wait for cleanup instead of sleeping a fixed 100 ms.

  • #20285: explicitly publish 500 records to each Kafka partition. The failed run reached offsets 100/96 while the test required 100/100.

  • #20289: emit the Broker datasource-removal metric from the last-segment callback. The log recorded removal at 01:20:12 UTC, but the test timed out waiting for the refresh-only metric. Add coverage without a background refresh.
  • Validation

  • TaskQueueScaleTest: 2 tests passed.

  • BrokerSegmentMetadataCacheTest: 23 tests passed, including the new regression test.

  • Checkstyle passed for all four affected modules.

  • KafkaBoundedSupervisorTest: compiled; local execution blocked during Testcontainers startup by a Colima Docker socket mount error. CI validation pending.

  • Follow-up smoke-test cleanup: all 6 IngestionSmokeTest methods passed locally (retries disabled), plus Checkstyle. Terminate the owned supervisor and drain/cancel datasource-scoped tasks between methods so leftover Kafka tasks cannot occupy the two worker slots; keep assertion timeouts unchanged.
  • Release note

    Emit the Broker datasource-removal metric when the last segment is removed directly from the cache.

    Review

  • Self-reviewed, including concurrency behavior.

  • Added or updated tests.
  • Diff: 209 lines (+156 / -53) across 2 files Reviewer: GWphua Review duration: 25935m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 209 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%
    56%
    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.320
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #20291"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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.4% (MEDIUM) · Higher = larger blast radius
    36.4%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 15.8% · Safe to merge
    15.8%
    Repository