tikv / tikv/pd

TestWatchFailed is flaky

Open
#10,627 13 comments 0 reactions 0 assignees View on GitHub
type/ci
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Flaky Test

### Which jobs are failing
```text
keyspace_group_manager_test.go:181:
Error Trace: /home/runner/work/pd/pd/tests/integrations/mcs/tso/keyspace_group_manager_test.go:181
/home/runner/work/pd/pd/tests/integrations/mcs/tso/keyspace_group_manager_test.go:197
Error: Not equal:
expected: 0x94
actual : 0x0
Test: TestTSOKeyspaceGroupManagerSuite/TestWatchFailed
```

### CI link
- https://github.com/tikv/pd/actions/runs/24888890229/job/72875770462
- https://github.com/tikv/pd/actions/runs/24954128915/job/73069314473
- https://github.com/tikv/pd/actions/runs/24981006703/job/73142960241

### Reason for failure (if possible)

### Anything else
- Test: `TestTSOKeyspaceGroupManagerSuite/TestWatchFailed`
- Package: `mcs/tso`
- Seen in PRs: #10620, #10621, #10622

Contributor guide

Open the contributing guide

Research direction

Start with tests/integrations/mcs/tso/keyspace_group_manager_test.go, especially lines 181 and 197, and run TestTSOKeyspaceGroupManagerSuite/TestWatchFailed. Compare the expected 0x94 with the actual 0x0 and the linked CI failures; done means the test no longer flakes and passes reliably.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.