Skip to content

[Bug] [Flaky UT]: pkg/morpc TestGetBackendWithCircuitBreaker fail-fast budget (<20ms) unrealistic under full UT race lane #32956

Closed

Description

@XuPeng-SH

Summary

From the 2026-11-19 survey of 15 failed MatrixOne ALL CI runs: pkg/morpc TestGetBackendWithCircuitBreaker failed once (run 44517787941, branch codex/issue-28891-json-opaque-agg — a JSON PR unrelated to morpc) on a brittle wall-clock budget:

Error:    "65.36225ms" is not less than "20ms"
Test:     TestGetBackendWithCircuitBreaker
Messages: Should fail fast with circuit breaker or no backend
(2026/11/19 12:08:47 ERROR test-client create backend failed {"backend": "bad-backend", "error": "cannot connect to backend: none"})

Analysis

Task

Keep the fail-fast semantic but make the budget realistic: race-aware threshold multiplier (e.g., 20ms → ≥200ms under -race), or assert on circuit-breaker state transitions instead of wall-clock latency, or t.Skip in the race lane. Cheap fix; prevents re-blaming unrelated PRs.

Refs: #32745

Activity

  1. self-assigned this
    on Nov 19, 2026
  2. added a commit that references this issue on Nov 20, 2026
    17df10b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions