Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
8068 commits
Select commit Hold shift + click to select a range
4746c8d
metrics: Add graphs for TLS version and cipher (#65082)
dveeden Jan 15, 2026
f8627fd
planner: fix the row count for index join use the PK in inner side (#…
Reminiscent Jan 16, 2026
e4bd81b
objstore: extract AWS SDK related logic into separate client and extr…
D3Hunter Jan 16, 2026
c1abcf8
s3: split the common code of s3like store (#65602)
D3Hunter Jan 16, 2026
13dd959
OWNERS: Auto Sync OWNERS files from community membership (#65608)
ti-chi-bot Jan 16, 2026
e6448ac
*: update go1.25.6 (#65605)
hawkingrei Jan 16, 2026
b46d38f
build(deps): bump golang.org/x/crypto from 0.46.0 to 0.47.0 (#65552)
dependabot[bot] Jan 16, 2026
78403e5
metrics: fix typo in tidb_summary.jsonnet template variable (#65582)
boltandrke Jan 16, 2026
88d21ed
planner: speed up TestMPPHintsScope with hypo TiFlash replica (#65604)
fixdb Jan 17, 2026
9c0773b
br: load necessary db infos for backup and restore (#64982)
YuJuncen Jan 17, 2026
b39a1ca
planner: add the prefix index as candidate for topn optimization (#65…
elsa0520 Jan 17, 2026
1b2d0b8
planner: make cardinality and selectivity tests ignore plan ID with e…
lostcache Jan 19, 2026
7f129e5
planner: fix flaky tests in instanceplancache package (#65619)
fixdb Jan 19, 2026
7670ef5
s3: add Content-MD5 header in S3Uploader for compatibility options (#…
GMHDBJD Jan 19, 2026
a6fc928
build(deps): bump golang.org/x/net from 0.48.0 to 0.49.0 (#65637)
dependabot[bot] Jan 19, 2026
ecfd25a
statistics, config: rightly deal with innodb_lock_wait_timeout when t…
hawkingrei Jan 19, 2026
4f1b985
store: fix flaky test TestInitStorage (#65644)
hawkingrei Jan 19, 2026
b253d8d
*: update AGENTS.md and gitignore (#65625)
winoros Jan 19, 2026
85aa740
oss: add client/logging/retry/credential-refresh related logic (#65630)
D3Hunter Jan 20, 2026
e15515e
test: stabilize `TestStalenessAndHistoryRead` (#65622)
tangenta Jan 20, 2026
8e961f7
importinto: ensure engine cleanup on import error (#65663)
D3Hunter Jan 20, 2026
a72c511
*: add .codex in .gitignore (#65670)
joechenrh Jan 20, 2026
6dd3a58
lightning: enhance import into backend for dm (#65473)
GMHDBJD Jan 20, 2026
36a4308
planner: support left outer join into anti semi join (#64959)
hawkingrei Jan 20, 2026
812bd31
objstore: support use native OSS sdk to access (#65610)
D3Hunter Jan 20, 2026
e9c1bbb
store/helper: use hex encoding for region key in log (#65560)
MkDev11 Jan 20, 2026
7607607
executor: accerelate some unit tests for spill tests (#65599)
xzhangxian1008 Jan 21, 2026
93c65e2
oss: detect ECS region and use internal endpoint automaticaly (#65687)
D3Hunter Jan 21, 2026
975c1e1
planner: refactor some test cases and add skills about test guide (#6…
hawkingrei Jan 22, 2026
fb3c1cf
planner: handle the selection between the join group (#64535)
Reminiscent Jan 22, 2026
dfe878d
util/topsql: improve maintainability (ticker stop, helpers, comments)…
zimulala Jan 22, 2026
e705836
*: confine txn assertion API usage (#65642)
wfxr Jan 22, 2026
d14962d
mydump: optimize parsing decimal from parquet (#65624)
joechenrh Jan 23, 2026
4c9e28c
topsql: Increase network stats instead of overwrite (#65688)
yibin87 Jan 23, 2026
d1ce3e4
importinto: forbid explicit set and auto add keyspace as external-id …
D3Hunter Jan 23, 2026
b268bfa
planner: support `flush stats_delta` syntax for optimizer statistics …
qw4990 Jan 23, 2026
9c29342
planner: fix outer-join-to-anti-semi rewrite for nested outer joins (…
lilinghai Jan 23, 2026
c36a683
tests/realtikvtest/txntest: stabilize staleness txn test (#65737)
wjhuang2016 Jan 23, 2026
2c0a134
*: upgrade mysql-tester to improve log format (#65720)
hawkingrei Jan 23, 2026
cb138ca
br: add keyspace-aware GC safepoint support for backup and restore (#…
RidRisR Jan 23, 2026
0dd5a8b
planner, meta: code preparation for the `_tidb_commit_ts` new hidden …
time-and-fate Jan 24, 2026
2bfef26
pkg/server/handler/optimizor: stabilize plan replayer tests (#65735)
wjhuang2016 Jan 24, 2026
afbf7ac
parser: add split region options DDL (#65579)
xhebox Jan 25, 2026
dace550
br: PITR table filter reuses database id if it exists (#65631)
Leavrth Jan 26, 2026
6d55295
pkg/util/gctuner: stabilize TestIssue48741 (#65733)
wjhuang2016 Jan 26, 2026
d731491
*: upgrade client-go to lastest version (#65743)
lcwangchao Jan 26, 2026
fc6f7b2
pkg/executor: fix unstable TestIssue20779 (#65770)
wjhuang2016 Jan 26, 2026
959bf33
planner: support basic usage of partial index (#65051)
winoros Jan 26, 2026
5de6f55
pkg/planner: fix data race in Plan.ExplainID (#65776)
wjhuang2016 Jan 26, 2026
a56735e
image: upgrade base version (#65718)
hawkingrei Jan 26, 2026
5da5f2a
pkg/server: fix unstable TestTTL (#65784)
wjhuang2016 Jan 26, 2026
e6689be
planner: support straight_join() hint in CTEs and subqueries (#65696)
fixdb Jan 27, 2026
f803235
pkg/privilege: fix flaky ldap TLS tests (#65773)
wjhuang2016 Jan 27, 2026
5ee2924
.gitignore: group its content and change bazel related for git worktr…
winoros Jan 27, 2026
550a05a
.gitignore: add back the bazel gitignore items (#65859)
YangKeao Jan 28, 2026
a919687
planner: introduce external storage for plan replayer (#65477)
zeminzhou Jan 28, 2026
245c8e1
dml: fix the data/index inconsistency when updating partial index or …
YangKeao Jan 28, 2026
39856f6
plan, exec: pushing down limit to slow log executor (#65740)
lance6716 Jan 28, 2026
41ba813
planner: refactor some test cases (#65790)
hawkingrei Jan 28, 2026
de6b177
AGENTS.md: use bazel bin (#65842)
hawkingrei Jan 28, 2026
f4cf761
planner: skip out of range for full range (#65854)
terry1purcell Jan 28, 2026
f9b0e05
bindinfo, planner: restore binding match cache for plan cache (#65766)
hawkingrei Jan 28, 2026
fbe0162
pkg/util: fix workloadrepo interval race (#65777)
wjhuang2016 Jan 28, 2026
1e98f72
build(deps-dev): bump lodash from 4.17.21 to 4.17.23 in /lightning/we…
dependabot[bot] Jan 28, 2026
0a79a3e
*: stabilize integrationtest privilege/privileges (#65787)
wjhuang2016 Jan 29, 2026
592130e
*: upgrade client-go and grpc-go (#65850)
joechenrh Jan 29, 2026
9a3cd60
cmd/tidb-server: bypass store liveness check on unistore (#65855)
wjhuang2016 Jan 29, 2026
d6709d2
planner: support `flush stats_delta cluster` (#65879)
qw4990 Jan 29, 2026
811a10e
planner: Fixes panic when setting tidb_opt_fix_control with an empty …
qw4990 Jan 29, 2026
e94da42
lightning: fix flaky integration test (#65891)
D3Hunter Jan 29, 2026
76aa193
pkg/planner: fix unstable index advisor TPCH tests (#65783)
wjhuang2016 Jan 29, 2026
8355dd2
pkg/sessiontxn: fix stale read infoschema assertions (#65786)
wjhuang2016 Jan 29, 2026
45b0b29
executor: respect session sysvars in fast admin check (#65877)
fzzf678 Jan 29, 2026
62e3fca
statistics: refactor out of range percent calculations (#65857)
terry1purcell Jan 29, 2026
1ac156c
executor: reuse projection builder for index join (#65774)
AilinKid Jan 29, 2026
060097f
pkg/domain: close stats handle before closing advanced sys session po…
wjhuang2016 Jan 29, 2026
e8a60bd
s3: add RequestChecksumCalculationWhenRequired for s3Compatible clien…
GMHDBJD Jan 29, 2026
b54d84b
planner: speed up TestPlanCacheRandomCases (#65844)
fixdb Jan 29, 2026
f33cb3c
planner: replace `DumpStatsDeltaToKV` function call with `flush stats…
qw4990 Jan 29, 2026
2c54c80
objstore/locking: don't use "." as prefix when locking (#65903)
YuJuncen Jan 29, 2026
32d5e26
statistics: sync stats session time_zone with global value (#65821)
0xPoe Jan 29, 2026
fad8e67
ddl: forbid drop/rename on system tables in nextgen and change BR to …
D3Hunter Jan 30, 2026
9b3495f
executor: optimize analyze column memory usage (#65446)
guo-shaoge Jan 30, 2026
e6fa5f4
s3: use ListObjectsV2 instead of v1 for object listing (#65894)
Leavrth Jan 30, 2026
36fa9a1
benchdaily: remove useless item (#65927)
hawkingrei Jan 30, 2026
fb1a575
pkg/bindinfo: fix flaky TestBatchDropBindings (#65769)
wjhuang2016 Jan 30, 2026
da96b4d
pkg/statistics: fix flaky globalstats binding concurrency test (#65771)
wjhuang2016 Jan 30, 2026
258332a
refactor(runaway): use info cache to check runaway watch tables (#65747)
JmPotato Jan 30, 2026
85389ef
*: stabilize integrationtest executor/stale_txn (#65788)
wjhuang2016 Jan 30, 2026
d122abe
*: update AGENTS.md issue and regression-test rules (#65912)
wjhuang2016 Feb 2, 2026
d2ae4e8
*: stabilize integrationtest stale read timestamp (#65953)
wjhuang2016 Feb 2, 2026
bbeaafd
objstore: use aws.retryer interface instead (#65949)
Leavrth Feb 2, 2026
279453c
planner/core: fix leading hint mismatch causing missing other conditi…
guo-shaoge Feb 2, 2026
c2202e1
planner: refactor TestVerboseExplain (#65933)
hawkingrei Feb 2, 2026
5da8f9a
executor: fix plan replayer load for semicolons (#65885)
fixdb Feb 2, 2026
44c7345
pkg/util: stabilize TLS tests (#65734)
wjhuang2016 Feb 2, 2026
b99298c
pkg/server/handler/optimizor: stabilize stats handler test (#65736)
wjhuang2016 Feb 2, 2026
77b0fee
planner: Remove an unused return value from cardinality.Selectivity. …
wddevries Feb 2, 2026
d6c47b0
planner: fix EXISTS subquery on cluster tables causing Column ID -1 (…
eureka0928 Feb 2, 2026
53c8982
planner: fix plan explore can not detect the specific index path. (#6…
AilinKid Feb 2, 2026
38fdd1b
planner: reduce within bucket usage of range risk (#65856)
terry1purcell Feb 2, 2026
97c2efc
memory: fix data race & enhance behaviors in arbitrator (#65569)
solotzg Feb 3, 2026
ba22c17
importinto: use real file size when calculate resource (#65762)
D3Hunter Feb 3, 2026
3e15cf8
planner: nominate guo-shaoge as planner approver. (#65995)
AilinKid Feb 3, 2026
06da9d7
pkg/resourcegroup: fix unstable TestResourceGroupRunaway (#65780)
wjhuang2016 Feb 3, 2026
3acb646
*: adapt TopSQL naming for TopProfiling (prepare for TopRU) (#65820)
zimulala Feb 3, 2026
1b68e1e
feat(session): add schema upgrade v254 to optimize runaway watch inde…
JmPotato Feb 3, 2026
6c97ced
planner: handle double NOT in outer join (#65942)
hawkingrei Feb 3, 2026
72d131e
stmtsummary: fix a memory leak caused by stmt summary referencing pac…
tiancaiamao Feb 3, 2026
995d6f9
stats: add defensive guard for interval calculation (#65889)
0xPoe Feb 3, 2026
715b1cc
planner, core: implement partial order TopN attach2Task and partial o…
elsa0520 Feb 3, 2026
ec781f5
bindinfo: explore per-table index hints during plan generation (#66000)
AilinKid Feb 3, 2026
6ff1adf
planner: make pkg integration tests ignore plan-id with explain forma…
lostcache Feb 3, 2026
4358afd
planner: Add a framework for disabling the plan cache during optimiza…
wddevries Feb 4, 2026
8d09123
executor: fix sort spill hang (#65680)
ChangRui-Ryan Feb 4, 2026
8e5c2c7
*: clarify issue/PR language and force-push guidance (#66028)
wjhuang2016 Feb 4, 2026
bb93d46
executor: unify index join partition range build (#65993)
AilinKid Feb 4, 2026
94ed4a7
planner: update binding cache log to avoid unnecessary log when exiti…
qw4990 Feb 4, 2026
2d894cb
importinto: fix potential data race on sharedHandleSet (#66003)
D3Hunter Feb 4, 2026
0e51cc3
ranger, core: Ranger changes to push (#65980)
wddevries Feb 4, 2026
6847a30
meta: reserve ID for softdelete status table (#66054)
xhebox Feb 4, 2026
6b6f8b4
importinto: adapt conflict resolve in nextgen (#66029)
D3Hunter Feb 4, 2026
c5e71c3
planner: make rule tests ignore plan-id with explain format as brief …
lostcache Feb 5, 2026
d4f0daa
planner: activate stale-read txn when autocommit=0 (#65908)
wfxr Feb 5, 2026
2455c28
conn: fix the issue that the connection count for resource group is n…
YangKeao Feb 5, 2026
77e7f9d
planner: store plan replayer files to obj store (#65904)
zeminzhou Feb 5, 2026
6ded7ed
planner: simplify outer join other conditions (#66015)
hawkingrei Feb 5, 2026
321fffa
planner: make windows test ignore plan-id with explain format as brie…
lostcache Feb 5, 2026
1eb3d0a
bootstrap: unify system tables creation through versionedBootstrapSch…
D3Hunter Feb 5, 2026
4c7790b
extstore: fix flaky test TestGetGlobalExtStorageWithoutWritePerm (#66…
zeminzhou Feb 5, 2026
d537742
planner: stop extracting join group when leading hint contains the al…
ghoshh Feb 5, 2026
01935b7
bindinfo, planner: reuse binding normalization for plan cache key (#6…
hawkingrei Feb 5, 2026
f7d03e7
importsdk, mydump: allow skipping real size estimation (#66082)
GMHDBJD Feb 5, 2026
59105fb
owners: add more approvers for stats module (#66091)
0xPoe Feb 5, 2026
1acc793
planner: remove explain-explore's dependence on `stmt_summary` (#66078)
qw4990 Feb 5, 2026
229a104
planner: bound the max out of range estimate (#65888)
terry1purcell Feb 5, 2026
de5ecf7
planner: eliminate outer join on nullable unique keys under EQ (#65843)
fixdb Feb 6, 2026
eb2cd22
planner: make index tests ignore plan-id with explain format as brief…
lostcache Feb 6, 2026
33bbbf2
br: support backup for merge_option attribute (#65252)
JoyC-dev Feb 6, 2026
1f17add
*: reserve 8181 for error ErrPDTimestampLagsTooMuch (#66130)
lcwangchao Feb 6, 2026
6adb502
copr: fallback when bucket path meets error (#66070)
ekexium Feb 7, 2026
d3cabd6
Makefile: add command to lint changed files not the whole pkg (#66117)
winoros Feb 7, 2026
3b1cb24
planner: pre-refactor for join reorder conflict detection algorithm (…
guo-shaoge Feb 9, 2026
4c7359a
executor: unify index join table reader kv range build (#66067)
AilinKid Feb 9, 2026
dbf86b0
feat(runaway): paginate watch sync using id checkpoints (#66155)
JmPotato Feb 9, 2026
bd255b1
s3: log more info when detecting region (#66152)
D3Hunter Feb 9, 2026
a49050f
build(deps-dev): bump webpack from 5.94.0 to 5.105.0 in /lightning/we…
dependabot[bot] Feb 9, 2026
2d31734
pkg/executor: fix flaky query watch test (#65779)
wjhuang2016 Feb 9, 2026
4c23f9f
feat(runaway): refactor record flushing with batch flusher abstractio…
JmPotato Feb 9, 2026
cc61a70
statistics: persist stats delta init time (#65586)
0xPoe Feb 9, 2026
9a5c882
docs: fix some mistake in active-active.md (#66176)
lcwangchao Feb 10, 2026
dda2784
planner: guard grouping replacement on nil expr (#66174)
hawkingrei Feb 10, 2026
5c44ffb
planner: Support the behavior when combine the order_index + partial…
elsa0520 Feb 10, 2026
c6d1fff
planner, executor: support `nulleq` for `IndexJoin` and `IndexHashJoi…
gengliqi Feb 10, 2026
8dce86a
dxf: add common prefix to global sort object path and change the rule…
D3Hunter Feb 11, 2026
6ed0eb1
planner: make partition tests ignore plan-id with explain format as b…
lostcache Feb 11, 2026
25e6d4e
planner: fix nil pointer panic on GROUP BY ROLLUP with HAVING EXISTS …
cryo-zd Feb 11, 2026
7f4c215
planner: implements support for dumping multiple SQL statements in a …
qw4990 Feb 11, 2026
93a62ef
planner: avoid cartesian join for OR+IN subquery in filters (#65826)
fixdb Feb 11, 2026
1f6f9eb
refactor(runaway): make active watch counting lock-free (#66171)
JmPotato Feb 11, 2026
94b366e
*: implement shared lock for foreign key (#65752)
you06 Feb 11, 2026
e67d561
planner: tiny change on test to make it clearer (#66218)
winoros Feb 11, 2026
fcef711
planner: Support cacheing queries with IS NULL expressions. (#66134)
wddevries Feb 11, 2026
365184d
executor, variable: support cop_mvcc_read_amplification to trigger pr…
zimulala Feb 12, 2026
cbb1898
dxf: add http api to get info of all active tasks for nextgen (#66215)
D3Hunter Feb 12, 2026
f6f6d2e
planner: fix join reorder correctness with conflict detection algorit…
guo-shaoge Feb 13, 2026
3b69f59
planner: fix the can't find column error for nested join with agg con…
qw4990 Feb 13, 2026
7c04f19
planner, partial_order: fix index out of range error when query has p…
elsa0520 Feb 14, 2026
bf5aab5
*: migrate repository skills to .agents/skills (#66275)
hawkingrei Feb 14, 2026
5302a5b
planner: fix the can't find column error for nested join with agg con…
qw4990 Feb 14, 2026
e8be937
build: update the get_changed_bazel_pkgs.sh (#66278)
winoros Feb 14, 2026
f7b7465
planner: fix IndexJoin with Aggregation correctness issue (#66217)
guo-shaoge Feb 14, 2026
2f9776e
table: Non-clustered table non-unique global index needs partid in ke…
mjonss Feb 14, 2026
8c7f26f
*: move planner case map reference into .agent skill path (#66282)
hawkingrei Feb 16, 2026
abe530f
doc: rename one doc file (#66293)
lance6716 Feb 17, 2026
543b83a
*: revise AGENTS.md (#66190)
winoros Feb 18, 2026
d99e7bb
executor: skip TopN collection for single-column unique indexes (#66236)
mjonss Feb 19, 2026
9b9281f
planner: optimize for full range (#66304)
terry1purcell Feb 19, 2026
8bee66c
sessionctx: improve slow log stats format with explicit labels (#66305)
pinkbit256 Feb 23, 2026
45621f6
planner: add `presigned url` to download files for replayer (#66084)
zeminzhou Feb 24, 2026
da5c6fd
planner: fix inconsistent plans for user variables with different cas…
qw4990 Feb 24, 2026
0f25ef1
*: add read-first DDL execution index (#66094)
wjhuang2016 Feb 24, 2026
c6286af
admincheck: log more info and add http api to do the check for nextge…
D3Hunter Feb 24, 2026
5f3cbfe
planner: align index range estimation with index columns (#66294)
hawkingrei Feb 24, 2026
7b59a24
statistics: rename TableDelta to TableDeltaMap in session stats colle…
0xPoe Feb 24, 2026
4dcf447
planner: allow LEADING hint to match plan nodes with anonymous column…
Reminiscent Feb 25, 2026
04965dd
importinto: add test for scenario where file is non empty but no row …
D3Hunter Feb 25, 2026
bce815e
planner: fix nil pointer dereference in CloneConstantsForPlanCache (#…
veeceey Feb 25, 2026
f641265
pkg/util/hack: split map ABI for go1.25 and go1.26 (#66254)
hawkingrei Feb 25, 2026
10387fd
planner: index join probe index used cols ndv shouldn't care about ra…
AilinKid Feb 25, 2026
086e33b
planner: ensure that the path of the plan replayer file generated by …
zeminzhou Feb 25, 2026
7411da7
txntest: fix flaky TestStmtCtxStaleFlag by using TSO-derived timestam…
you06 Feb 26, 2026
2d605e2
import-into: reduce needed tidb count for some steps in nextgen (#66353)
D3Hunter Feb 26, 2026
a485894
resource_control: change request source from lightning to import (#66…
glorv Feb 26, 2026
27d693f
test: fix flaky test TestNewCompressReader (#66548)
lance6716 Feb 26, 2026
b4081e9
pkg/planner: simplify regression test setup in planner suites (#66529)
hawkingrei Feb 26, 2026
e297d35
planner, executor: fix prepared string parameter compatibility in gro…
hawkingrei Feb 26, 2026
4895d30
*: refine AGENTS.md style and wording guidance (#66556)
winoros Feb 26, 2026
4f62851
planner: fix prepared plan cache checker for CTE names (#66374)
hawkingrei Feb 26, 2026
01e7361
planner: flaky test TestBatchDropBindings (#66559)
terry1purcell Feb 27, 2026
b31904c
dxf: fix flaky test TestNextGenMetering (#66553)
D3Hunter Feb 27, 2026
ed7133b
dxf/importinto: run table-empty check once per task (#65970)
joechenrh Feb 27, 2026
2f82da0
parser,ast: support column masking grammar (#66031)
tiancaiamao Feb 27, 2026
1d9393d
mydump: read row group data at once for small parquet files (#66071)
joechenrh Feb 27, 2026
75d41dc
*: Fix flaky test TestStaleReadKVRequest and TestSelectAsOf (#66550)
MyonKeminta Feb 27, 2026
bf35909
variable: fix uint threshold type mismatch in slow log rule matching …
zimulala Feb 27, 2026
d2b270a
executor, statistics: avoid analyze hang on save error (#66169)
0xPoe Feb 27, 2026
b104014
planner: remove analyze v1 tests with v2 coverage (#66565)
terry1purcell Feb 27, 2026
8833679
test: fix flaky test TestAcquireDistributedLock (#66552)
lance6716 Feb 28, 2026
25ac994
planner: make cbotests ignore plan-id with explain format as brief (#…
lostcache Feb 28, 2026
8fe68e3
planner: fix cascades test to ignore plan-id with explain format as b…
lostcache Feb 28, 2026
5a08765
build(deps): bump github.com/mgechev/revive from 1.13.0 to 1.14.0 (#6…
dependabot[bot] Feb 28, 2026
2d4e8cb
br/pkg/utils: stabilize task register tests (#65732)
wjhuang2016 Feb 28, 2026
fba827a
statusapi: add test api to mock dangling row/index case (#66560)
D3Hunter Feb 28, 2026
2934fea
*: improve tests to avoid unnecessary changes (#66600)
hawkingrei Feb 28, 2026
cb3f4eb
meta: add masking policy metadata (#66032)
tiancaiamao Mar 1, 2026
9246e72
ddl, executor, statistics, planner: remove extended stats feature (#6…
pinkbit256 Mar 1, 2026
986ab4b
ddl/tests/partition: add modify-column partition test coverage (#66214)
expxiaoli Mar 2, 2026
255b3fb
planner: LEADING hint works with non-equijoin + outer join (#66213)
fixdb Mar 2, 2026
a171feb
meta,ddl: support must-load filtering for affinity (#66627)
lcwangchao Mar 2, 2026
dde5ab3
pkg/ddl: fix exchange partition metadata mismatch for shard_row_id_bi…
fzzf678 Mar 3, 2026
21b5bb6
statistics: simplify FMSketch by removing swiss map and pool (#66590)
mjonss Mar 3, 2026
e9c1212
bindinfo, planner: emit NO_DECORRELATE hints in EXPLAIN EXPLORE (#66046)
AilinKid Mar 3, 2026
37b583d
planner: deep copy AST-owned FieldTypes when building expressions (#6…
AilinKid Mar 3, 2026
0b23ce6
meta, planner: add the `UnsignedFlag` to the type of `_tidb_commit_ts…
time-and-fate Mar 3, 2026
a833b14
metrics: Add liveness check faults to grafana dashboard (#65460)
MyonKeminta Mar 4, 2026
ef8d352
planner: enable tidb_ignore_inlist_plan_digest by default to improve …
qw4990 Mar 4, 2026
6d48228
*: exclude make bazel_lint_changed from default AGENTS local flow (#6…
D3Hunter Mar 5, 2026
c909831
ingest: use 2 level split & scatter (#66354)
ti-chi-bot Mar 5, 2026
a020ff3
domain/affinity: update pd client for api (#65592)
lhy1024 Mar 5, 2026
4d4043c
pkg/lightning: fix TestRegionJobBaseWorker waitgroup race (#66703)
D3Hunter Mar 5, 2026
e1f49e6
docs: add agent-memory design package and integration user spec
BornChanger Mar 7, 2026
220c654
variable: add agent-memory tenant context session vars
BornChanger Mar 7, 2026
55dc735
session,meta: add agent-memory profile version bootstrap table
BornChanger Mar 7, 2026
3fcdd8a
session: initialize default agent-memory profile registry row
BornChanger Mar 7, 2026
cc68752
session,meta: add baseline agent-memory memory tables
BornChanger Mar 7, 2026
b7f6252
session,meta: add agent-memory compatibility views
BornChanger Mar 7, 2026
56fbcb4
session: validate agent-memory compatibility view bootstrap semantics
BornChanger Mar 7, 2026
f1ebfc9
planner,session: enforce agent-memory tenant-context fail-closed checks
BornChanger Mar 7, 2026
b9a1dfb
planner,session: inject tenant filters for agent-memory reads
BornChanger Mar 7, 2026
86ab9f2
planner: enforce agent-memory context checks on EXECUTE
BornChanger Mar 7, 2026
d4e74af
planner,session: protect profile-version table with tenant checks
BornChanger Mar 7, 2026
247944c
session,meta: add baseline agent-memory audit table
BornChanger Mar 7, 2026
61df7a2
planner,session: enforce tenant checks on memory audit table
BornChanger Mar 8, 2026
82967b6
planner,session: audit policy-denied tenant-context checks
BornChanger Mar 8, 2026
c9677da
planner,session: audit read/write/delete memory actions
BornChanger Mar 8, 2026
41d236f
planner,variable: wire agent-memory context guards and controls
BornChanger Mar 9, 2026
04593f2
planner: add agent-memory retrieval, assembly, and observability modules
BornChanger Mar 9, 2026
738a6ab
session,br: add agent-memory lifecycle, adapter, and security hardening
BornChanger Mar 9, 2026
7d892b1
docs: reconcile agent-memory milestone evidence and backlog gates
BornChanger Mar 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
7 changes: 7 additions & 0 deletions .agents/skills/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Skills Usage

This repository stores Codex repo-level skills under `.agents/skills`.

- Current working directory (`$CWD`) is the skill root scope for Codex repo-level loading.
- Put shared repository skills here.
- Keep skill-specific references under each skill folder (for example: `tidb-test-guidelines/references/`).
60 changes: 60 additions & 0 deletions .agents/skills/tidb-test-guidelines/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
name: tidb-test-guidelines
description: Decide where to place TiDB tests and how to write them (basic structure, naming, testdata usage). Use when asked about test locations, writing conventions, shard_count limits, casetest categorization, or when reviewing test changes in code review.
---

# TiDB Test Placement and Writing

## Quick workflow

1) Identify the target package and existing coverage using `rg --files -g '*_test.go'` and `rg --files -g '*.json'`.
2) Check `BUILD.bazel` for `shard_count` in the target directory; keep test count <= 50 per directory.
3) For optimizer cases, place new tests under `pkg/planner/core/casetest/<type>` (see `references/planner-guide.md`).
4) Reuse existing fixtures and testdata; add new files only when necessary.
5) Name tests descriptively; avoid issue-id-only names (e.g., `TestIssue123456`).
6) Merge same-functionality cases into a single test only if runtime remains reasonable.
7) When moving tests/benchmarks, update `BUILD.bazel` and `Makefile` (bench-daily) if needed.

## Basic writing rules

- Benchmarks (`func BenchmarkXxx`) are tests too; apply the same placement and naming rules (benchmarks do not count toward shard_count test limits).
- Prefer table-driven tests for related scenarios in the same behavior area.
- Reuse existing helper setups and test fixtures; avoid re-creating schemas unless required.
- Prefer one `store` + one `testkit` per test; when a single test covers multiple scenarios, use distinct table names and restore any session/system variables to their original values.
- If a test must use multiple sessions or domains (for example, cross-session cache behavior), keep the extra stores/testkits but document why in the test.
- For follow-up bug fixes, prefer appending cases to existing tests/suites instead of creating new test files or new top-level tests, unless no semantically close suite exists.
- In existing regression suites that are already sequential, keep sequential scenario blocks; do not introduce `t.Run` unless subtest isolation/parallel behavior is required by semantics.
- Prefer exact assertions with `.Check(testkit.Rows(...))`; use `MultiCheckContain` only when output is inherently unstable, and add a short comment for why exact match is not practical.
- Reuse table definitions only across semantically similar scenarios; if partition/index/DDL shape is the behavior under test, keep separate table schemas to avoid false positives.
- Keep per-test runtime short; consolidate similar checks only if runtime stays reasonable.
- Use behavior-based test names; never use issue-id-only names.
- In test code, use the variable name `tk` for `*testkit.TestKit` (avoid `testKit`).
- When merging multiple tests into one, keep a single `store` and a single `tk` unless multi-session behavior is required; do not create a new store/tk inside the same test body without a documented reason.

## Placement rules

- **Test count limit**: Keep <= 50 tests per directory; align with `shard_count` in the directory `BUILD.bazel` (benchmarks are excluded).

## Reference files

- **Package case maps** (when available): `references/<pkg>-case-map.md`
- **Planner core placement guide**: `references/planner-guide.md`

## Notes

- Apply the same rules (placement, shard_count, naming) to other packages beyond `pkg/planner`.
- Use existing testdata patterns (`*_in.json`, `*_out.json`, `*_xut.json`) in the same directory when extending suites. Use `-record -tags=intest,deadlock` only when the Go test suite explicitly supports `-record` and you need to regenerate outputs. For `tests/integrationtest`, use `pushd tests/integrationtest && ./run-tests.sh -r <TestName> && popd` (not `-record`).
- For `pkg/planner/core/casetest/rule` predicate pushdown cases, keep SQL in `predicate_pushdown_suite_in.json` and record both `EXPLAIN format='brief'` and query results via the test runner (see `rule_predicate_pushdown_test.go`).
- When moving benchmarks between packages, update any `TestBenchDaily` wrappers that list them and keep `Makefile` `bench-daily` entries aligned with the new package location.
- When updating tests in any `pkg/*` package, update the corresponding case map under `references/` if it exists; do not block on missing case maps.
- When updating tests in any other directory and the placement rules are non-obvious or recurring, consider adding/extending a case map under `references/` and updating this `SKILL.md`.
- When merging issue regression tests into existing behavior tests, keep the issue id in SQL comments (e.g. `/* issue:12345 */`) or nearby comments for traceability.
- Prefer unit tests over `tests/integrationtest` for end-to-end coverage unless you need to avoid union-storage executor differences or require full workflow validation.
- When tests read source files under Bazel, use `go/runfiles` and ensure the target file is exported via `exports_files()` in its owning `BUILD.bazel`.
- For Bazel runfiles, be ready to include the workspace prefix (from `TEST_WORKSPACE`) in the runfile path if needed.
- Validation (Bazel): run `make bazel_prepare` first; then check the package `BUILD.bazel` for `@com_github_pingcap_failpoint//:failpoint` dependency.
- If present, run:
- `make bazel-failpoint-enable`
- `bazel test --norun_validations --define gotags=deadlock,intest --remote_cache=https://cache.hawkingrei.com/bazelcache --noremote_upload_local_results //path/to/package/...`
- `make bazel-failpoint-disable`
- If absent, run `bazel test` directly against the package path.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# TiDB autoid_service Test Case Map (pkg/autoid_service)

## Overview

- Grouped by package directory.
- Each test file has a one-line description based on its primary test/benchmark name.
- Testdata lists files under `testdata/` mapped to their owning package directory.

## pkg/autoid_service

### Tests
- `pkg/autoid_service/autoid_test.go` - Tests concurrency.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# TiDB bindinfo Test Case Map (pkg/bindinfo)

## Overview

- Grouped by package directory.
- Each test file has a one-line description based on its primary test/benchmark name.
- Testdata lists files under `testdata/` mapped to their owning package directory.

## pkg/bindinfo

### Tests
- `pkg/bindinfo/binding_auto_test.go` - Tests plan generation with stmt ctx.
- `pkg/bindinfo/binding_cache_test.go` - Tests cross-DB binding cache.
- `pkg/bindinfo/binding_operator_test.go` - Tests binding cache.
- `pkg/bindinfo/binding_plan_evolution_test.go` - Tests rule-based plan performance predictor.
- `pkg/bindinfo/binding_plan_generation_test.go` - Tests fix control adjustments.
- `pkg/bindinfo/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/bindinfo/session_handle_test.go` - Tests global and session binding both exist.

### Testdata
- `pkg/bindinfo/testdata/binding_auto_suite_in.json`
- `pkg/bindinfo/testdata/binding_auto_suite_out.json`

## pkg/bindinfo/tests

### Tests
- `pkg/bindinfo/tests/bind_test.go` - Tests prepare cache with binding.
- `pkg/bindinfo/tests/bind_usage_info_test.go` - Tests bind usage info.
- `pkg/bindinfo/tests/cross_db_binding_test.go` - Tests cross-DB binding basics.
- `pkg/bindinfo/tests/main_test.go` - Configures default goleak settings and registers testdata.
20 changes: 20 additions & 0 deletions .agents/skills/tidb-test-guidelines/references/config-case-map.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# TiDB config Test Case Map (pkg/config)

## Overview

- Grouped by package directory.
- Each test file has a one-line description based on its primary test/benchmark name.
- Testdata lists files under `testdata/` mapped to their owning package directory.

## pkg/config

### Tests
- `pkg/config/config_test.go` - Tests atomic bool unmarshal.
- `pkg/config/config_util_test.go` - Tests clone config.
- `pkg/config/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/config/store_test.go` - Tests store type.

## pkg/config/kerneltype

### Tests
- `pkg/config/kerneltype/type_test.go` - Tests kernel type.
217 changes: 217 additions & 0 deletions .agents/skills/tidb-test-guidelines/references/ddl-case-map.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
# TiDB ddl Test Case Map (pkg/ddl)

## Overview

- Grouped by package directory.
- Each test file has a one-line description based on its primary test/benchmark name.
- Testdata lists files under `testdata/` mapped to their owning package directory.

## pkg/ddl

### Tests
- `pkg/ddl/affinity_test.go` - ddl: Tests affinity build group definitions table.
- `pkg/ddl/attributes_sql_test.go` - ddl: Tests alter table partition attributes.
- `pkg/ddl/backfilling_dist_scheduler_test.go` - ddl: Tests backfilling scheduler local mode.
- `pkg/ddl/backfilling_test.go` - ddl: Tests done task keeper.
- `pkg/ddl/backfilling_txn_executor_test.go` - ddl: Tests expected ingest worker count.
- `pkg/ddl/bdr_test.go` - ddl: Tests denied by BDR when add column.
- `pkg/ddl/bench_test.go` - ddl: Tests extract datum by offsets.
- `pkg/ddl/cancel_test.go` - ddl: Tests cancel various jobs.
- `pkg/ddl/cluster_test.go` - ddl: Tests flashback close and reset PD schedule.
- `pkg/ddl/column_change_test.go` - ddl: Tests column add.
- `pkg/ddl/column_modify_test.go` - ddl: Tests add and drop column.
- `pkg/ddl/column_test.go` - ddl: Tests column basic.
- `pkg/ddl/column_type_change_test.go` - ddl: Tests column type change state between integer.
- `pkg/ddl/constraint_test.go` - ddl: Tests alter constraint add drop.
- `pkg/ddl/db_cache_test.go` - ddl: Tests alter table cache.
- `pkg/ddl/db_change_failpoints_test.go` - ddl: Tests modify column type args.
- `pkg/ddl/db_change_test.go` - ddl: Tests show create table.
- `pkg/ddl/db_integration_test.go` - ddl: Tests create table if not exists like.
- `pkg/ddl/db_rename_test.go` - ddl: Tests rename table with locked.
- `pkg/ddl/db_table_test.go` - ddl: Tests add not null column.
- `pkg/ddl/db_test.go` - ddl: Tests get time zone.
- `pkg/ddl/ddl_algorithm_test.go` - ddl: Tests find alter algorithm.
- `pkg/ddl/ddl_error_test.go` - ddl: Tests table error.
- `pkg/ddl/ddl_history_test.go` - ddl: Tests DDL history basic.
- `pkg/ddl/ddl_running_jobs_test.go` - ddl: Tests running jobs.
- `pkg/ddl/ddl_test.go` - ddl: Tests get interval from policy.
- `pkg/ddl/ddl_workerpool_test.go` - ddl: Tests DDL worker pool.
- `pkg/ddl/executor_nokit_test.go` - ddl: Tests build query string from jobs.
- `pkg/ddl/executor_test.go` - ddl: Tests get DDL jobs.
- `pkg/ddl/export_test.go` - ddl: Tests export.
- `pkg/ddl/fail_test.go` - ddl: Tests fail before decode args.
- `pkg/ddl/foreign_key_test.go` - ddl: Tests foreign key.
- `pkg/ddl/index_change_test.go` - ddl: Tests index change.
- `pkg/ddl/index_cop_test.go` - ddl: Tests add index fetch rows from coprocessor.
- `pkg/ddl/index_modify_test.go` - ddl: Tests add primary key1.
- `pkg/ddl/index_nokit_test.go` - ddl: Tests modify task param loop.
- `pkg/ddl/integration_test.go` - ddl: Tests DDL statements back fill.
- `pkg/ddl/job_scheduler_test.go` - ddl: Tests must reload schemas.
- `pkg/ddl/job_scheduler_testkit_test.go` - ddl: Tests DDL scheduling.
- `pkg/ddl/job_submitter_test.go` - ddl: Tests gen ID and insert jobs with retry.
- `pkg/ddl/job_worker_test.go` - ddl: Tests check owner.
- `pkg/ddl/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/ddl/metabuild_test.go` - ddl: Tests new meta build context with session ctx.
- `pkg/ddl/modify_column_test.go` - ddl: Tests modify column reorg info.
- `pkg/ddl/multi_schema_change_test.go` - ddl: Tests multi schema change add columns cancelled.
- `pkg/ddl/mv_index_test.go` - ddl: Tests multi valued index online DDL.
- `pkg/ddl/options_test.go` - ddl: Tests options.
- `pkg/ddl/owner_mgr_test.go` - ddl: Tests owner manager.
- `pkg/ddl/partition_test.go` - ddl: Tests drop and truncate partition.
- `pkg/ddl/placement_policy_ddl_test.go` - ddl: Tests placement policy in use.
- `pkg/ddl/placement_policy_test.go` - ddl: Tests placement policy.
- `pkg/ddl/placement_sql_test.go` - ddl: Tests create schema with placement.
- `pkg/ddl/primary_key_handle_test.go` - ddl: Tests multi-region get table end handle.
- `pkg/ddl/reorg_test.go` - ddl: Tests reorg ctx set max progress.
- `pkg/ddl/repair_table_test.go` - ddl: Tests repair table.
- `pkg/ddl/restart_test.go` - ddl: Tests schema resume.
- `pkg/ddl/rollingback_test.go` - ddl: Tests cancel add index job error.
- `pkg/ddl/schema_test.go` - ddl: Tests schema.
- `pkg/ddl/schema_version_test.go` - ddl: Tests should check assumed server.
- `pkg/ddl/sequence_test.go` - ddl: Tests create sequence.
- `pkg/ddl/stat_test.go` - ddl: Tests get DDL info.
- `pkg/ddl/table_mode_test.go` - ddl: Tests table mode basic.
- `pkg/ddl/table_modify_test.go` - ddl: Tests lock table read only.
- `pkg/ddl/table_split_test.go` - ddl: Tests table split.
- `pkg/ddl/table_test.go` - ddl: Tests table.
- `pkg/ddl/tiflash_replica_test.go` - ddl: Tests set table flash replica.
- `pkg/ddl/ttl_test.go` - ddl: Tests get TTL info in options.

## pkg/ddl/copr

### Tests
- `pkg/ddl/copr/copr_ctx_test.go` - ddl/copr: Tests new cop context single index.

## pkg/ddl/ingest

### Tests
- `pkg/ddl/ingest/checkpoint_test.go` - ddl/ingest: Tests checkpoint manager.
- `pkg/ddl/ingest/env_test.go` - ddl/ingest: Tests gen lightning data dir.
- `pkg/ddl/ingest/integration_test.go` - ddl/ingest: Tests add index ingest generated columns.
- `pkg/ddl/ingest/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/ddl/ingest/mem_root_test.go` - ddl/ingest: Tests memory root.

## pkg/ddl/label

### Tests
- `pkg/ddl/label/attributes_test.go` - ddl/label: Tests new label.
- `pkg/ddl/label/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/ddl/label/rule_test.go` - ddl/label: Tests apply attributes spec.

## pkg/ddl/notifier

### Tests
- `pkg/ddl/notifier/events_test.go` - ddl/notifier: Tests event string.
- `pkg/ddl/notifier/store_test.go` - ddl/notifier: Tests leftover when unmarshal.
- `pkg/ddl/notifier/testkit_test.go` - ddl/notifier: Tests publish to table store.

## pkg/ddl/placement

### Tests
- `pkg/ddl/placement/bundle_test.go` - ddl/placement: Tests empty.
- `pkg/ddl/placement/common_test.go` - ddl/placement: Tests group.
- `pkg/ddl/placement/constraint_test.go` - ddl/placement: Tests new from yaml.
- `pkg/ddl/placement/constraints_test.go` - ddl/placement: Tests new constraints.
- `pkg/ddl/placement/meta_bundle_test.go` - ddl/placement: Tests new table bundle.
- `pkg/ddl/placement/rule_test.go` - ddl/placement: Tests clone.

## pkg/ddl/schematracker

### Tests
- `pkg/ddl/schematracker/dm_tracker_test.go` - ddl/schematracker: Tests no num limit.
- `pkg/ddl/schematracker/info_store_test.go` - ddl/schematracker: Tests info store lower case table names.

## pkg/ddl/schemaver

### Tests
- `pkg/ddl/schemaver/syncer_nokit_test.go` - ddl/schemaver: Tests node versions.
- `pkg/ddl/schemaver/syncer_test.go` - ddl/schemaver: Tests syncer simple.

## pkg/ddl/serverstate

### Tests
- `pkg/ddl/serverstate/syncer_test.go` - ddl/serverstate: Tests state syncer simple.

## pkg/ddl/session

### Tests
- `pkg/ddl/session/session_pool_test.go` - ddl/session: Tests session pool.

## pkg/ddl/systable

### Tests
- `pkg/ddl/systable/manager_test.go` - ddl/systable: Tests manager.
- `pkg/ddl/systable/min_job_id_test.go` - ddl/systable: Tests refresh min job ID.

## pkg/ddl/tests/adminpause

### Tests
- `pkg/ddl/tests/adminpause/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/ddl/tests/adminpause/pause_cancel_test.go` - ddl/tests/adminpause: Tests pause cancel and rerun schema stmt.
- `pkg/ddl/tests/adminpause/pause_negative_test.go` - ddl/tests/adminpause: Tests pause on write conflict.
- `pkg/ddl/tests/adminpause/pause_resume_test.go` - ddl/tests/adminpause: Tests pause and resume schema stmt.

## pkg/ddl/tests/fail

### Tests
- `pkg/ddl/tests/fail/fail_db_test.go` - ddl/tests/fail: Tests halfway cancel operations.
- `pkg/ddl/tests/fail/main_test.go` - Configures default goleak settings and registers testdata.

## pkg/ddl/tests/fastcreatetable

### Tests
- `pkg/ddl/tests/fastcreatetable/fastcreatetable_test.go` - ddl/tests/fastcreatetable: Tests switch fast create table.
- `pkg/ddl/tests/fastcreatetable/main_test.go` - Configures default goleak settings and registers testdata.

## pkg/ddl/tests/fk

### Tests
- `pkg/ddl/tests/fk/foreign_key_test.go` - ddl/tests/fk: Tests create table with foreign key meta info.
- `pkg/ddl/tests/fk/main_test.go` - Configures default goleak settings and registers testdata.

## pkg/ddl/tests/indexmerge

### Tests
- `pkg/ddl/tests/indexmerge/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/ddl/tests/indexmerge/merge_test.go` - ddl/tests/indexmerge: Tests add index merge process.

## pkg/ddl/tests/metadatalock

### Tests
- `pkg/ddl/tests/metadatalock/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/ddl/tests/metadatalock/mdl_test.go` - ddl/tests/metadatalock: Tests MDL basic select.

## pkg/ddl/tests/multivaluedindex

### Tests
- `pkg/ddl/tests/multivaluedindex/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/ddl/tests/multivaluedindex/multi_valued_index_test.go` - ddl/tests/multivaluedindex: Tests create multi-valued index has binary collation.

## pkg/ddl/tests/partition

### Tests
- `pkg/ddl/tests/partition/db_partition_test.go` - ddl/tests/partition: Tests create table with partition.
- `pkg/ddl/tests/partition/error_injection_test.go` - ddl/tests/partition: Tests truncate partition list failures with global index.
- `pkg/ddl/tests/partition/exchange_partition_test.go` - ddl/tests/partition: Tests exchange range columns partition.
- `pkg/ddl/tests/partition/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/ddl/tests/partition/multi_domain_test.go` - ddl/tests/partition: Tests multi schema reorganize partition issue56819.
- `pkg/ddl/tests/partition/placement_test.go` - ddl/tests/partition: Tests partition by with placement.
- `pkg/ddl/tests/partition/reorg_partition_test.go` - ddl/tests/partition: Tests reorg partition failures.

## pkg/ddl/tests/serial

### Tests
- `pkg/ddl/tests/serial/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/ddl/tests/serial/serial_test.go` - ddl/tests/serial: Tests issue23872.

## pkg/ddl/tests/tiflash

### Tests
- `pkg/ddl/tests/tiflash/ddl_tiflash_test.go` - ddl/tests/tiflash: Tests TiFlash no redundant PD rules.
- `pkg/ddl/tests/tiflash/main_test.go` - Configures default goleak settings and registers testdata.

## pkg/ddl/util

### Tests
- `pkg/ddl/util/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/ddl/util/util_test.go` - ddl/util: Tests folder not empty.
22 changes: 22 additions & 0 deletions .agents/skills/tidb-test-guidelines/references/distsql-case-map.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# TiDB DistSQL Test Case Map (pkg/distsql)

## Overview

- Grouped by package directory.
- Each test file has a one-line description based on its primary test/benchmark name.
- Testdata lists files under `testdata/` mapped to their owning package directory.

## pkg/distsql

### Tests
- `pkg/distsql/bench_test.go` - Tests large chunk responses for select.
- `pkg/distsql/context_test.go` - Tests context.
- `pkg/distsql/distsql_test.go` - Tests normal select.
- `pkg/distsql/main_test.go` - Configures default goleak settings and registers testdata.
- `pkg/distsql/request_builder_test.go` - Tests table handles to KV ranges.
- `pkg/distsql/select_result_test.go` - Tests update coprocessor runtime stats.

## pkg/distsql/context

### Tests
- `pkg/distsql/context/context_test.go` - Tests context detach.
Loading