-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking Issue for Test Restructure #4813
Labels
component/testing
CI testing.
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
type/enhancement
The issue or PR belongs to an enhancement.
type/refactor
The issue belongs to a refactor work.
Comments
JmPotato
added
type/enhancement
The issue or PR belongs to an enhancement.
component/testing
CI testing.
labels
Apr 15, 2022
ti-chi-bot
pushed a commit
that referenced
this issue
May 30, 2022
ref #4813 Testify the pkg/apiutil, pkg/audit, pkg/autoscaling, pkg/cache tests. Signed-off-by: JmPotato <[email protected]> Co-authored-by: ShuNing <[email protected]>
ti-chi-bot
pushed a commit
that referenced
this issue
May 30, 2022
ref #4813 Testify the pkg/codec, pkg/encryption, pkg/errs tests. Signed-off-by: JmPotato <[email protected]>
rleungx
added
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
labels
May 30, 2022
ti-chi-bot
pushed a commit
that referenced
this issue
May 30, 2022
… the tests (#5067) ref #4813 Testify the pkg/assertutil, pkg/etcdutil, pkg/grpcutil, pkg/keyutil, pkg/logutil, pkg/metricutil tests. Signed-off-by: JmPotato <[email protected]>
ti-chi-bot
pushed a commit
that referenced
this issue
May 31, 2022
ref #4813 Use `require.New` to reduce code. Signed-off-by: JmPotato <[email protected]>
ti-chi-bot
pushed a commit
that referenced
this issue
Jun 1, 2022
ref #4813 Testify the client tests. Signed-off-by: JmPotato <[email protected]>
This was referenced Jun 1, 2022
ti-chi-bot
pushed a commit
that referenced
this issue
Jun 1, 2022
) ref #4813 Testify the pkg/mockhbstream, pkg/movingaverage, pkg/netutil, pkg/progress tests. Signed-off-by: JmPotato <[email protected]>
ti-chi-bot
added a commit
that referenced
this issue
Jun 2, 2022
ref #4813 Testify all pkg tests. Signed-off-by: JmPotato <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
ti-chi-bot
pushed a commit
that referenced
this issue
Jun 2, 2022
ref #4813 Fix the `testServiceSuite`. Signed-off-by: JmPotato <[email protected]>
ti-chi-bot
added a commit
that referenced
this issue
Jun 7, 2022
ref #4813 Signed-off-by: Ryan Leung <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
ti-chi-bot
added a commit
that referenced
this issue
Jun 7, 2022
ref #4813 Signed-off-by: LLThomas <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Testify the TSO tests. Signed-off-by: JmPotato <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: lhy1024 <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: lhy1024 <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: lhy1024 <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: lhy1024 <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: Ryan Leung <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Testify some server tests. Signed-off-by: JmPotato <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813, ref tikv#5193 Signed-off-by: lhy1024 <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Add a WithTestify func for CheckTransferLeader and CheckTransferLeaderWithTestify will be used in server/cluster/coordinator_test.go. Signed-off-by: LLThomas <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
…ssert functions (tikv#5219) ref tikv#4813 Update the check-test.sh to detect more inefficient assert functions. Signed-off-by: JmPotato <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813, ref tikv#5193 Signed-off-by: lhy1024 <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 As the title says. Signed-off-by: LLThomas <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: Ryan Leung <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: lhy1024 <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813, close tikv#5105 Clean up the surrounding code of check pkg. Signed-off-by: JmPotato <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: Ryan Leung <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Testify the global_config tests. Signed-off-by: JmPotato <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: lhy1024 <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: lhy1024 <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: lhy1024 <[email protected]>
CabinfeverB
pushed a commit
to CabinfeverB/pd
that referenced
this issue
Jul 14, 2022
ref tikv#4813 Signed-off-by: lhy1024 <[email protected]>
ti-chi-bot
added a commit
that referenced
this issue
Jul 25, 2022
ref #4813 Signed-off-by: Ryan Leung <[email protected]> Co-authored-by: Ti Chi Robot <[email protected]>
ti-chi-bot bot
pushed a commit
that referenced
this issue
Dec 20, 2023
ref #4813 Fix some errors detected by `testifylint`. Signed-off-by: JmPotato <[email protected]>
ti-chi-bot bot
added a commit
that referenced
this issue
Dec 21, 2023
ref #4813 Fix all errors detected by testifylint and enable it. Signed-off-by: JmPotato <[email protected]> Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
ti-chi-bot bot
pushed a commit
that referenced
this issue
Dec 21, 2023
ref #4813 Fix the TSO consistency test. Signed-off-by: JmPotato <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
component/testing
CI testing.
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
type/enhancement
The issue or PR belongs to an enhancement.
type/refactor
The issue belongs to a refactor work.
This is the tracking issue for restructuring PD tests, focusing on unit tests and integration tests, especially on unifying test infrastructure in testify. See pingcap/tidb#26022 for more details on the TiDB side. Before you start, please read the code of conduct below carefully.
Code of Conduct
require.Xxx(t, a, b)
multiple times, please create are := require.New(t)
first to avoid passing thet
all around.require.Xxx
orsuite.Xxx
whenever possible, do not mix the two.error
type, please userequire.NoError/Error
rather thanrequire.Nil/NotNil
.re.Equal(expected, actual)
✅re.Equal(actual, expected)
❌Migration
client
(client, tests: testify the client tests #5081)pkg/apiutil
(apiutil, audit, autoscaling, cache: testify the tests #5061)pkg/assertutil
(assertutil, etcdutil, grpcutil, keyutil, logutil, metricutil: testify the tests #5067)pkg/audit
(apiutil, audit, autoscaling, cache: testify the tests #5061)pkg/autoscaling
(apiutil, audit, autoscaling, cache: testify the tests #5061)pkg/cache
(apiutil, audit, autoscaling, cache: testify the tests #5061)pkg/codec
(codec, encryption, errs: testify the tests #5066)pkg/encryption
(codec, encryption, errs: testify the tests #5066)pkg/errs
(codec, encryption, errs: testify the tests #5066)pkg/etcdutil
(assertutil, etcdutil, grpcutil, keyutil, logutil, metricutil: testify the tests #5067)pkg/grpcutil
(assertutil, etcdutil, grpcutil, keyutil, logutil, metricutil: testify the tests #5067)pkg/keyutil
(assertutil, etcdutil, grpcutil, keyutil, logutil, metricutil: testify the tests #5067)pkg/logutil
(assertutil, etcdutil, grpcutil, keyutil, logutil, metricutil: testify the tests #5067)pkg/metricutil
(assertutil, etcdutil, grpcutil, keyutil, logutil, metricutil: testify the tests #5067)pkg/mock/mockhbstream
(mockhbstream, movingaverage, netutil, progress: testify the tests #5086)pkg/movingaverage
(mockhbstream, movingaverage, netutil, progress: testify the tests #5086)pkg/netutil
(mockhbstream, movingaverage, netutil, progress: testify the tests #5086)pkg/progress
(mockhbstream, movingaverage, netutil, progress: testify the tests #5086)pkg/rangetree
(* : testify all pkg tests #5091)pkg/ratelimit
(* : testify all pkg tests #5091)pkg/reflectutil
(* : testify all pkg tests #5091)pkg/requestutil
(* : testify all pkg tests #5091)pkg/slice
(* : testify all pkg tests #5091)pkg/systimemon
(* : testify all pkg tests #5091)pkg/typeutil
(* : testify all pkg tests #5091)server
(server: migrate test framework to testify #5198)server/api
#5199server/cluster
(server/cluster: migrate test framework to testify #5203)server/config
(config: migrate test framework to testify #5103)server/core
(core: migrate test framework to testify #5123)server/election
(election: migrate test framework to testify #5132)server/encryptionkm
(encryptionkm: migrate test framework to testify #5136)server/join
(*: migrate test framework to testify #5193)server/region_syncer
(syncer: migrate test framework to testify #5141)server/replication
#5099server/schedule
(schedule: migrate test framework to testify #5196)server/schedule/checker
(checker: migrate test framework to testify #5174)server/schedule/filter
(filter: migrate test framework to testify #5133)server/schedule/labeler
(*: migrate test framework to testify #5193)server/schedule/operator
(operator: migrate test framework to testify #5191)server/schedule/placement
#5097server/schedule/rangelist
#5098server/schedulers
#5121server/statistics
(statistics: migrate test framework to testify #5140)server/statistics/buckets
(bucket: migrate test framework to testify #5195)server/storage
(storage: migrate test framework to testify #5139)server/storage/kv
(kv: migrate test framework to testify #5111)tests/autoscaling
(tests: testify the autoscaling/compatibility/dashboard/pdbackup tests #5120)tests/client
(client, tests: testify the client tests #5081)tests/compatibility
(tests: testify the autoscaling/compatibility/dashboard/pdbackup tests #5120)tests/dashboard
(tests: testify the autoscaling/compatibility/dashboard/pdbackup tests #5120)tests/pdbackup
(tests: testify the autoscaling/compatibility/dashboard/pdbackup tests #5120)tests/pdctl
(tests: testify the pd-ctl tests #5154)tests/pdctl/cluster
(tests: testify the pd-ctl tests #5154)tests/pdctl/completion
(tests: testify the pd-ctl tests #5154)tests/pdctl/config
(tests: testify the pd-ctl tests #5154)tests/pdctl/health
(tests: testify the pd-ctl tests #5154)tests/pdctl/hot
(tests: testify the pd-ctl tests #5154)tests/pdctl/label
(tests: testify the pd-ctl tests #5154)tests/pdctl/log
(tests: testify the pd-ctl tests #5154)tests/pdctl/member
(tests: testify the pd-ctl tests #5154)tests/pdctl/operator
(tests: testify the pd-ctl tests #5154)tests/pdctl/region
(tests: testify the pd-ctl tests #5154)tests/pdctl/scheduler
(tests: testify the pd-ctl tests #5154)tests/pdctl/store
(tests: testify the pd-ctl tests #5154)tests/pdctl/tso
(tests: testify the pd-ctl tests #5154)tests/pdctl/unsafe
(tests: testify the pd-ctl tests #5154)tests/server
(tests/server: migrate test framework to testify #5197)tests/server/api
(tests: testify the api and storage tests #5166)tests/server/config
(tests/server/config: migrate the tests to testify #5212)tests/server/cluster
(tests: testify the cluster tests #5167)tests/server/global_config
(tests: testify the global_config tests #5227)tests/server/id
(tests: testify some server tests #5186)tests/server/join
(tests: testify some server tests #5186)tests/server/join/join_fail
(tests: testify some server tests #5186)tests/server/member
(tests: testify some server tests #5186)tests/server/region_syncer
(tests: testify some server tests #5186)tests/server/storage
(tests: testify the api and storage tests #5166)tests/server/tso
(tests: testify the TSO tests #5169)tests/server/watch
(tests: testify some server tests #5186)tools/pd-analysis/analysis
(tools: migrate test framework to testify #5149)tools/pd-ctl/pdctl
(tools: migrate test framework to testify #5149)tools/pd-simulator/simulator/simutil
(tools: migrate test framework to testify #5149)Mics
require.Equal
to replacereflect.DeepEqual
#5104require.Eventually
to replacetestutil.WaitUntil
#5105The text was updated successfully, but these errors were encountered: