pingcap / pingcap/tidb

slow test `TestStatWorkRecoverFromPanic` in `pkg/domain` pkg

Open
#50,795 0 comments 0 reactions 0 assignees View on GitHub
component/test severity/moderate sig/planner type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Average timecost was 112070.0000ms between TIMESTAMP("2024-01-08") AND TIMESTAMP("2024-01-30")

Found records: 1 (filter only for runs that timecost >= threshold)
Max timecost: 112070ms
Min timecost: 112070ms
Avg timecost: 112070.0000ms

- [CI build](https://do.pingcap.net/jenkins/job/pingcap/job/tidb/job/ghpr_unit_test/1308/): used 112070ms

Contributor guide

Open the contributing guide

Research direction

Locate the slow test TestStatWorkRecoverFromPanic in the pkg/domain package and first run it to confirm the reported timing. Compare its behavior with the intended panic-recovery test, then identify a change that reduces its runtime without losing coverage; done means the test remains passing and no longer accounts for the reported CI delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
performance, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.