Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
6860 commits
Select commit Hold shift + click to select a range
969d090
infoschema: fix TableName2ID case sensitivity issue (#65139)
wjhuang2016 Dec 20, 2025
1676563
executor, sessionctx: remove MemArbitrator from slow log rules (#65105)
zimulala Dec 21, 2025
02eacbe
br/restore: added more logs for restoring meta (#64815)
YuJuncen Dec 21, 2025
ce06e5d
*: fix index lookup pushdown error for partition table + uncomitted r…
lcwangchao Dec 22, 2025
4915482
*: use IsColOpCol to remove the same code (#65144)
hawkingrei Dec 22, 2025
ccda674
planner: reduce NewPlanCacheKey allocations with sync.Pool (#65072)
Reminiscent Dec 22, 2025
9ee3904
chore: update go version in Docker file (#65158)
yihong0618 Dec 22, 2025
9c74029
sessionctx: Increase max value for innodb_lock_wait_timeout (#65153)
dveeden Dec 22, 2025
9aa2287
test: force to create table with "clustered" for index lookup push do…
lcwangchao Dec 23, 2025
0f706ff
importinto: refactor and add interface for import into sdk (#65094)
GMHDBJD Dec 23, 2025
2963a26
s3: remove client side rate limiting introduced by SDK v2 (#65179)
D3Hunter Dec 23, 2025
3455e86
bazel: support HTTPS_PROXY for go test (#65178)
hawkingrei Dec 23, 2025
fd98639
*: ignore .cursor and fix integration test command in AGENTS.md (#65235)
wjhuang2016 Dec 24, 2025
a508026
importinto: make ErrPDServerTimeout retryable which might meet during…
D3Hunter Dec 24, 2025
781da15
br: use random port to avoid flaky test (#65186)
hawkingrei Dec 24, 2025
f78a990
chore: upgrade revive (#65193)
hawkingrei Dec 24, 2025
7dea15e
expression: support newer UUID types (#65007)
dveeden Dec 24, 2025
62ee49c
dxf: rename task concurrency to required slots and other refactor (#6…
D3Hunter Dec 25, 2025
6c6955d
chunk: fix the issue that the last_sql_use_alloc is not correct if it…
YangKeao Dec 25, 2025
9ce62c5
docs: fix build status badge in README.md (#65263)
wuhuizuo Dec 25, 2025
2774ccb
stats: rename test only functions from PQ (#65242)
0xPoe Dec 25, 2025
c77aeb6
executor: prealloc memory before calling `AppendCellNTimes` (#64003)
xzhangxian1008 Dec 26, 2025
78320d3
dxf: separate runtime slots(concurrency) out of required slot to work…
D3Hunter Dec 26, 2025
9150224
planner: move MaxMinEliminator to rule package (#65272)
blueberrycongee Dec 26, 2025
5c06b05
lightning: optimize forceTableSplitRange and skip for small tables (#…
wjhuang2016 Dec 26, 2025
0ed6fde
planner: derivePathStatsAndTryHeuristics can keep more MPP task (#65264)
hawkingrei Dec 26, 2025
1df9fb6
parser: redact azure/azblob url (#65274)
joechenrh Dec 26, 2025
e1a874a
unistore: unistore supports to return commit timestamp (#65282)
lcwangchao Dec 26, 2025
e8f1738
test: avoid to query DNS and port name for lsof in run-test.sh to avo…
lcwangchao Dec 26, 2025
a842030
planner: fix the flaky test TestInstancePlanCacheConcurrencySysbench …
qw4990 Dec 26, 2025
6b3b545
lightning: skip TestLocalTempKVDirCheckBasic in nextgen (#65287)
D3Hunter Dec 26, 2025
18eae64
lightning: add import into checkpoint implementation (#65184)
GMHDBJD Dec 26, 2025
163790b
planner: simplify TestBatchDropBindings to make it more stable (#65286)
qw4990 Dec 26, 2025
3056f41
ddl: fix affinity idempotency problem (#65291)
lhy1024 Dec 26, 2025
c4d8025
expression: lazy init `bufAllocator` in `baseBuiltinFunc` (#65244)
windtalker Dec 27, 2025
310e154
storage: fix reader error when seeking to end (#65262)
joechenrh Dec 27, 2025
a7bc5df
addindex: remove reader ration when using global sort (#65111)
GMHDBJD Dec 27, 2025
01916ad
importinto: ignore alter table mode error if table doesn't exist (#65…
joechenrh Dec 29, 2025
03bc250
planner: track more details about time spent on query optimization (#…
qw4990 Dec 29, 2025
1776433
planner: fix no access path when TiKV read is disabled under RC isola…
hawkingrei Dec 29, 2025
07f3e75
bazel: use bazel to run failpoint (#65251)
hawkingrei Dec 29, 2025
00916d0
model: reserve active-active feature definitions (#65295)
lcwangchao Dec 29, 2025
cf4647e
stats: do not close the priority queue in DDL handler (#65271)
0xPoe Dec 29, 2025
b7bfd6c
lightning: refactor and add import into checkpoint controller (#65241)
GMHDBJD Dec 29, 2025
19f5ecb
server/tests: fix flaky test TestIssue57531 (#65330)
bb7133 Dec 30, 2025
79ec3b6
s3: add Content-MD5 header in DeleteObjects for compatible storage (#…
D3Hunter Dec 30, 2025
fa3e1dd
util/traceevent: make flaky test TestFlightRecorder stable (#65317)
tiancaiamao Dec 30, 2025
795e541
tests: fix unstable `TestIssue20236` and `TestShowTableRegion` (#65229)
tangenta Dec 30, 2025
4c2dda7
Makefile: check failpoint-ctl existence before go install (#65232)
tangenta Dec 30, 2025
8c3f0a5
backend: remove unexpected escape in external writer (#65316)
joechenrh Dec 30, 2025
9ce91e4
expression: fix handling of zero month/day in DATE function (#65150)
cryo-zd Dec 30, 2025
fc3a319
executor, sessiontxn/isolation: fix max_execution_time to include TSO…
King-Dylan Dec 30, 2025
651ed64
executor: flaky test TestIndexUsageWithData (#65329)
terry1purcell Dec 31, 2025
514f190
retry: make context.DeadlineExceeded retryable in local backend (#65345)
D3Hunter Dec 31, 2025
b5c7646
bazel: merge coverage by bazel (#65336)
hawkingrei Dec 31, 2025
02fe040
planner: optimize NewPlanCacheKey (#65361)
windtalker Dec 31, 2025
bf08f78
br: enhance logging and metrics for SST and restore processes (#65290)
YuJuncen Dec 31, 2025
f5e23eb
dxf: add API to change max runtime slots of task in nextgen (#65297)
D3Hunter Dec 31, 2025
648ef46
executor: fix flaky test TestMemTracker4InsertAndReplaceExec (#65313)
xzhangxian1008 Dec 31, 2025
cd81c59
executor: fix flaky test TestIssue31129 (#65328)
xzhangxian1008 Dec 31, 2025
2c0b057
statistics: avoid deadlock in priority queue Close method (#65147)
0xPoe Dec 31, 2025
758e5e0
session: Add a new session variable to control the prefix index optim…
elsa0520 Dec 31, 2025
a9e15ac
expression: make location case insensitive for GET_FORMAT (#65240)
cryo-zd Dec 31, 2025
12e56d1
br: fix potential overflow issues (#64219)
RidRisR Dec 31, 2025
014ed7b
br: fix bug file-not-found error for gcs (#65058)
JoyC-dev Dec 31, 2025
69aa3a9
planner: optimize the schema check phase in the plan cache path (#65118)
Reminiscent Dec 31, 2025
b9034ca
ddl: check TTL constraints for temporary tables (#65246)
cryo-zd Dec 31, 2025
18ecee8
br: increase default grpc time out to 200 minutes (#65293)
YuJuncen Dec 31, 2025
9394366
dxf: use the store corresponding to task keyspace to initialize sched…
D3Hunter Dec 31, 2025
cb5f862
ddl: allow dropping CHECK constraints when tidb_enable_check_constrai…
wjhuang2016 Jan 1, 2026
007466b
planner: remove fix control 47400 (#64796)
terry1purcell Jan 3, 2026
4006f8d
bazel: disable gocoverage (#65375)
hawkingrei Jan 3, 2026
60bf54f
planner: fix the issue that the optimizer can't use the latest system…
qw4990 Jan 4, 2026
0870184
server: increase the failed SQL log level from Info to Warn (#65360)
qw4990 Jan 4, 2026
76cbd72
planner: check DROP privilege for TRUNCATE PARTITION statement (#6402…
jjshanks Jan 4, 2026
c342953
dxf: rename the pkg from "disttask" to "dxf" (#65396)
D3Hunter Jan 5, 2026
1e1a191
*: tidb txn supports to setting `WithReturnCommitTS` (#65306)
lcwangchao Jan 5, 2026
6b3f20a
coverage: update ignore file for the codecov (#65402)
hawkingrei Jan 5, 2026
0f1f7aa
planner: outer join cannot be eliminated due to the impact of the exp…
qw4990 Jan 5, 2026
adfb9d8
memory: fix data/stats leak of the global mem-arbitrator when arbitra…
solotzg Jan 6, 2026
752905d
bootstrap/upgrade: split definition and code logic for better mainten…
D3Hunter Jan 6, 2026
17a245e
bindinfo: collect all the matchSQLBinding's time spent (#65445)
hawkingrei Jan 6, 2026
bedae51
expression: Vectorized versions of new UUID functions (#65301)
dveeden Jan 6, 2026
1738791
test: split cases in session pkg (#65451)
D3Hunter Jan 7, 2026
2114fbf
gcs: fix argument order when generating error (#65453)
D3Hunter Jan 7, 2026
bb3fa45
tests: support configurable temp directory for brietest via BRIETEST_…
RidRisR Jan 7, 2026
34db659
expression: reserve exact space for UUIDs (#65365)
dveeden Jan 7, 2026
9c4fa27
bootstrap: add sanity check for disallowed feature for system tables …
D3Hunter Jan 7, 2026
09ef45f
lightning: fix logged content of "Sample source data" (#65340)
kennytm Jan 7, 2026
5269783
importer: fix flaky test (#65373)
seagel Jan 7, 2026
076caae
br: compatiblity of stats tables schema (#65429)
Leavrth Jan 7, 2026
46abcfc
stats: fix stats status for tables with only TopN and no buckets (#65…
0xPoe Jan 7, 2026
dbda243
br: fix some bugs for pitr filter (#65394)
Leavrth Jan 8, 2026
d863a63
store/copr: add defensive measures for bucket boundary bug (#65041)
ekexium Jan 8, 2026
1e2cdaa
objstore: move from 'br/pkg' to 'pkg/' directory (#65462)
D3Hunter Jan 8, 2026
2a5e1bb
types: print argument as hex literal if non-printable (#65384)
dveeden Jan 8, 2026
33b3c4c
executor: change `Grow` parameter in `Column.Reserve` function (#65435)
xzhangxian1008 Jan 8, 2026
03713e7
br: add credential not found error as non-retryable error (#65437)
RidRisR Jan 8, 2026
579d0c5
server: fix `kill query` incorrectly killing idle connections (#65464)
gengliqi Jan 8, 2026
84caee9
action: support bazel crossbuild and upload the cache (#65474)
hawkingrei Jan 8, 2026
df14e30
*: ignore failpoint stash files to improve gopls performance (#65491)
wjhuang2016 Jan 8, 2026
3f5e128
s3: increase retry attempts and max delay to compatible with SDK v1 (…
D3Hunter Jan 8, 2026
0bbbbbe
planner: suppress column number in plan_tree explain (#65148)
terry1purcell Jan 8, 2026
6079683
lightning: add import into backend (#65321)
GMHDBJD Jan 9, 2026
0f70129
fix(resourcegroup/runaway): enhance failpoint control and logging for…
JmPotato Jan 9, 2026
920ee6e
ddl: forbid operations that might change system table id in nextgen (…
D3Hunter Jan 9, 2026
e0df5fd
objstore: encapsulate i/o related logic into separate pkg and refacto…
D3Hunter Jan 9, 2026
69a1b2c
session: fix memory leak when sessions close after ANALYZE statements…
Copilot Jan 9, 2026
1fe3ea9
planner: add some plan cache benchmark into bench daily (#65524)
hawkingrei Jan 12, 2026
d67ff19
build(deps): bump golang.org/x/sys from 0.39.0 to 0.40.0 (#65508)
dependabot[bot] Jan 12, 2026
28cce6a
objstore: move s3 like store into separate pkg (#65513)
D3Hunter Jan 12, 2026
85ddc9d
variable: fix internal/poll.runtime_pollWait in the goleak with TestS…
hawkingrei Jan 13, 2026
4abaac6
*: improve AGENTS.md test docs and bazel_prepare guidance (#65494)
wjhuang2016 Jan 13, 2026
be37b5a
executor, conn: wait for the goroutine in preprocessLoadDataLocal to …
YangKeao Jan 13, 2026
5b9f2b1
build(deps): bump react-router from 7.5.2 to 7.12.0 in /lightning/web…
dependabot[bot] Jan 13, 2026
1d4344f
test: stabilize `TestAuditPluginRetrying` (#65523)
tangenta Jan 13, 2026
87e4e71
build(deps): bump react-router and react-router-dom in /lightning/web…
dependabot[bot] Jan 13, 2026
57ad856
expression: UUID_VERSION() and UUID_TIMESTAMP() pushdown to TiKV (#65…
dveeden Jan 13, 2026
de74b88
ddl, ingest: improve test coverage for checkpoint validation (#65421)
wjhuang2016 Jan 13, 2026
3994683
expression: fix column type inference for AES_ENCRYPT in views (#65538)
eureka928 Jan 13, 2026
9021b4d
planner: use temp dir to fix flaky test TestPlanReplayerDumpSingle (#…
hawkingrei Jan 13, 2026
5db575d
planner: enable bench daily for pkg/plannner/core (#65550)
hawkingrei Jan 13, 2026
fa72152
br: fix region scan checker (#64530)
Leavrth Jan 13, 2026
187eba3
executor, util/memory: keep global analyze memory usage non-negative …
wjhuang2016 Jan 13, 2026
b147abe
planner: support cluster-level binding reload command (#65509)
qw4990 Jan 13, 2026
7639d9c
test: refine network port assignment in test (#65549)
tangenta Jan 13, 2026
e87fd0b
*: Fix data race in network traffic statistics access (#65085)
nolouch Jan 13, 2026
27a4771
bindinfo: save bindinfo into stmtctx to avoid calling NormalizeStmtFo…
hawkingrei Jan 13, 2026
df3d1b7
s3: remove the file existence check after write file (#65566)
D3Hunter Jan 14, 2026
7185f0d
pkg/executor: fast check table add global checksum quick pass (#65542)
fzzf678 Jan 14, 2026
c6b0d30
objstore: abstract prefix handling and generate http range header (#6…
D3Hunter Jan 14, 2026
d40eaf4
*: update AGENTS.md source file guidance (#65553)
fzzf678 Jan 14, 2026
9150779
br: fix tests (#65572)
Leavrth Jan 14, 2026
79b2deb
planner: index pruning using existing infra (#64999)
terry1purcell Jan 15, 2026
96bdeae
executor: prealloc memory for keys in HashJoinv2 (#63957)
xzhangxian1008 Jan 15, 2026
53dc671
planner: non-deterministic expression can not be pushed down throught…
hawkingrei Jan 15, 2026
8333420
s3: split io/logger/retry logic in s3 into separate files (#65568)
D3Hunter Jan 15, 2026
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 (…
eureka928 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
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.
19 changes: 9 additions & 10 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
startup --host_jvm_args=-Xmx4g
startup --unlimit_coredumps

dump: --http_connector_attempts=2
dump: --http_connector_retry_max_timeout=5s
run:ci --color=yes

build --http_timeout_scaling=0.1
build --announce_rc
build --experimental_guard_against_concurrent_changes
build --experimental_remote_merkle_tree_cache
build --java_language_version=17
build --java_runtime_version=17
build --tool_java_language_version=17
build --tool_java_runtime_version=17
build --incompatible_strict_action_env --incompatible_enable_cc_toolchain_resolution
build --remote_retries=6 --remote_retry_max_delay=8s
build:ci --color=yes
build:ci --experimental_remote_cache_compression
build:release --workspace_status_command=./build/print-workspace-status.sh --stamp
build:release --config=ci
build:race --config=ci
build:race --@io_bazel_rules_go//go/config:race --test_env=GORACE=halt_on_error=1 --test_sharding_strategy=disabled

test --test_env=TZ=Asia/Shanghai
test --test_output=errors --test_summary=testcase
test --test_output=errors --test_summary=detailed
test:ci --color=yes
test:ci --verbose_failures --test_verbose_timeout_warnings
test:ci --test_env=GO_TEST_WRAP_TESTV=1
test:ci --experimental_ui_max_stdouterr_bytes=104857600
test:ci --experimental_ui_max_stdouterr_bytes=268435456
test:ci --test_timeout=150,300,900,3600
test:ci --flaky_test_attempts=3
test --test_env=HTTPS_PROXY --test_env=https_proxy
test --test_env=HTTP_PROXY --test_env=http_proxy
test:race --test_timeout=1200,6000,18000,72000

try-import /data/bazel
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.0
7.7.1
92 changes: 71 additions & 21 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
codecov:
require_ci_to_pass: no
notify:
require_ci_to_pass: yes
wait_for_ci: no

coverage:
precision: 4
round: down
range: "65...90"

# status:
# project:
# default:
# threshold: 0.2 #Allow the coverage to drop by threshold%, and posting a success status.
# patch:
# default:
# target: 0% # trial operation

# Ref: https://docs.codecov.com/docs/commit-status#disabling-a-status
status:
project:
default:
threshold: 0.2 #Allow the coverage to drop by threshold%, and posting a success status.
patch:
default:
target: 0% # trial operation
project: off # disable it
patch: off # disable it
changes: no

# Ref: https://docs.codecov.com/docs/github-checks#disabling-github-checks-completely-via-yaml
github_checks: false

parsers:
gcov:
branch_detection:
Expand All @@ -25,23 +34,64 @@ parsers:
macro: no

comment:
layout: "header, diff"
layout: "header, diff, flags, components"
behavior: default
require_changes: no

component_management:
default_rules: # default rules that will be inherited by all components
statuses:
- type: project # in this case every component that doens't have a status defined will have a project type one
target: auto
informational: true # resulting status will pass no matter what the coverage is or what other settings are specified.
individual_components:
- component_id: component_dumpling # this is an identifier that should not be changed
name: dumpling # this is a display name, and can be changed freely
paths:
- dumpling/**
- component_id: component_parser
name: parser
paths:
- parser/**
- component_id: component_br
name: br
paths:
- br/**
# more components.

flag_management:
default_rules: # the rules that will be followed for any flag added, generally
carryforward: true
statuses:
- type: project
target: auto
informational: true # resulting status will pass no matter what the coverage is or what other settings are specified.
- type: patch
target: auto
informational: true # resulting status will pass no matter what the coverage is or what other settings are specified.

ignore:
- "LICENSES"
- "*_test.go"
- "**/*_test.go"
- ".git"
- "*.yml"
- "*.md"
- "cmd/.*"
- "docs/.*"
- "vendor/.*"
- "ddl/failtest/.*"
- "ddl/testutil/.*"
- "executor/seqtest/.*"
- "metrics/.*"
- "expression/generator/.*"
- "br/pkg/mock/.*"

- "**/*.yml"
- "**/*.md"
- "cmd"
- "docs"
- "vendor"
- "pkg/ddl/failtest"
- "pkg/ddl/testutil"
- "pkg/executor/seqtest"
- "pkg/metrics"
- "pkg/expression/generator"
- "br/pkg/mock"
- "pkg/testkit"
- "pkg/server/internal/testutil"
- "pkg/statistics/handle/cache/internal/testutil"
- "pkg/session/testutil.go"
- "pkg/store/mockstore/unistore/testutil.go"
- "k8s.io/apimachinery/pkg"
- "build"
- "lighting/cmd"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo "lighting" instead of "lightning" in ignore path

Low Severity

The codecov ignore path "lighting/cmd" is misspelled — the actual directory is lightning/cmd. This means codecov will not ignore the intended lightning/cmd directory, and coverage reports will include files from that path that were meant to be excluded.

Fix in Cursor Fix in Web

- "pkg/parser/generate_keyword/genkeyword.go"
- "pkg/planner/core/generator"
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
.git/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing .git/ in dockerignore bloats Docker builds

Medium Severity

The .git/ entry was removed from .dockerignore, but the Dockerfile uses COPY . . to copy the entire working directory into the builder image. Without .git/ being ignored, the entire git history (potentially hundreds of megabytes) gets sent as Docker build context and copied into the builder layer, significantly slowing down every Docker build. This also risks leaking repository metadata into the build environment.

Fix in Cursor Fix in Web

bazel-bin/
bazel-out/
bazel-tidb/
bazel-testlogs/
bin/
tidb-server/tidb-server
*.test.bin
cmd/
Dockerfile
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@

# Declare files that will always have LF line endings on checkout.
*.y text eol=lf

*.result diff

util/collate/unicode_0*_ci.go linguist-generated=true
util/collate/ucadata/unicode_*_data.go linguist-generated=true
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gitattributes linguist patterns have wrong directory prefix

Low Severity

The linguist-generated patterns use paths util/collate/... but the actual files live under pkg/util/collate/.... There is no util/collate/ directory at the repo root. Additionally, the glob unicode_0*_ci.go wouldn't match the actual generated filenames like unicode_0400_ci_generated.go (which end in _ci_generated.go, not _ci.go). Similarly, unicode_*_data.go won't match unicode_0900_ai_ci_data_generated.go. These patterns will silently match nothing.

Fix in Cursor Fix in Web

9 changes: 6 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: TiDB Forum
url: https://ask.pingcap.com/
about: Ask a question on the TiDB Forum
- name: Discord
url: https://discord.com/invite/KVRZBR2DrG
about: Ask questions and connect with TiDB users on Discord.
- name: Slack
url: https://slack.tidb.io/invite?team=tidb-community&channel=everyone&ref=pingcap
about: Ask questions and connect with TiDB users on Slack.
- name: TiDB Forum(Chinese)
url: https://asktug.com/
about: Ask a question on the TiDB user group (Chinese)
31 changes: 31 additions & 0 deletions .github/actions/tidb_build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: TiDB Build
description: Common steps to run TiDB Bazel build cross-platform
inputs:
go-version:
description: Go version to setup
required: false
default: "1.25"
bazelrc:
description: Bazelrc content from secrets
required: true
gcp_sa_key:
description: GCP service account key JSON content
required: true
runs:
using: composite
steps:
- name: Set up bazelisk
uses: bazel-contrib/setup-bazel@0.16.0
with:
bazelisk-cache: true
repository-cache: true
external-cache: false
disk-cache: ${{ github.workflow }}}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra closing brace in disk-cache key value

Medium Severity

The disk-cache value ${{ github.workflow }}} has three closing braces instead of two. The GitHub Actions expression ${{ ... }} ends at the second }, leaving a literal } appended to the workflow name. This means the disk cache path will include a trailing } character (e.g., "Bazel Crossbuild}"), causing cache misses against any other configuration expecting the clean workflow name.

Fix in Cursor Fix in Web

google-credentials: ${{ inputs.gcp_sa_key }}
bazelrc: ${{ inputs.bazelrc }}

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ inputs.go-version }}
cache: false
3 changes: 3 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### PR description

If you have an assigned issue, you **must** use the issue number or link to fill the `Issue Number:` line of the pull request template.
9 changes: 5 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
day: "friday"
time: "12:00"
interval: "daily"
time: "15:00"
timezone: "Asia/Shanghai"
allow:
- dependency-name: "golang.org/*"
- dependency-name: "github.com/golangci/golangci-lint"
- dependency-name: "github.com/golangci/golangci-lint/v2"
- dependency-name: "github.com/mgechev/revive"
- dependency-name: "github.com/prometheus/*"
- dependency-name: "go.uber.org/*"
- dependency-name: "github.com/grafana/pyroscope-go"
open-pull-requests-limit: 2
- package-ecosystem: "gomod"
directory: "/parser"
Expand Down
31 changes: 28 additions & 3 deletions .github/licenserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ header:
- ".gitattributes"
- ".cilinter.yaml"
- ".golangci.yml"
- ".golangci.bck.yml"
- ".golangci_br.yml"
- "LICENSES/"
- "**/BUILD.bazel"
- "WORKSPACE"
- "WORKSPACE.patchgo"
- "MODULE.bazel"
- "MODULE.bazel.lock"
- ".bazelrc"
- "**/*.key"
- "**/*.md"
Expand All @@ -27,6 +31,7 @@ header:
- "**/*.example"
- "**/*.patch"
- "**/*.bzl"
- "**/.git/**"
- ".codecov.yml"
- "Jenkinsfile"
- ".editorconfig"
Expand All @@ -35,16 +40,36 @@ header:
- "**/go.sum"
- "LICENSE"
- ".github/"
- "parser/"
- "pkg/parser/"
- "dumpling/"
- "tidb-binlog/driver/example"
- "tidb-binlog/proto/go-binlog/secondary_binlog.pb.go"
- "pkg/tidb-binlog/driver/example"
- "pkg/tidb-binlog/proto/go-binlog/secondary_binlog.pb.go"
- "**/*.sql"
- "**/*.csv"
- "**/*.CSV"
- "**/*.parquet"
- "**/*.zst"
- ".bazelversion"
- "build/image/.ci_bazel"
- "**/OWNERS"
- "OWNERS_ALIASES"
- "pkg/**/mock/**/*_mock.go"
- "pkg/objstore/mockobjstore/*_mock.go"
- "pkg/extension/enterprise/"
- "lightning/pkg/**/mock/*_mock.go"
- "lightning/pkg/web/res_vfsdata.go"
- "lightning/web/docs/api.yaml"
- "lightning/web/public/index.html"
- "lightning/web/webpack.config.js"
- "pkg/lightning/checkpoints/checkpointspb/file_checkpoints.pb.go"
- "pkg/lightning/manual/manual.go"
- "pkg/lightning/manual/manual_nocgo.go"
- "pkg/lightning/mydump/bytes.go"
- "pkg/lightning/mydump/examples/metadata"
- "tests/_utils/config/"
- "**/tidb-slow.log"
- "**/tidb-slow-*.log"
- "**/metadata"
- "pkg/extension/_import/generated-enterprise.go"

comment: on-failure
8 changes: 5 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PR Title Format:

Please create an issue first to describe the problem.

There MUST be one line starting with "Issue Number: " and
There MUST be one line starting with "Issue Number: " and
linking the relevant issues via the "close" or "ref".

For more info, check https://pingcap.github.io/tidb-dev-guide/contribute-to-tidb/contribute-code.html#referring-to-an-issue.
Expand All @@ -24,7 +24,7 @@ Issue Number: close #xxx

Problem Summary:

### What is changed and how it works?
### What changed and how does it work?

### Check List

Expand All @@ -33,7 +33,9 @@ Tests <!-- At least one of them must be included. -->
- [ ] Unit test
- [ ] Integration test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No code
- [ ] No need to test
> - [ ] I checked and no code files have been changed.
> <!-- Or your custom "No need to test" reasons -->

Side effects

Expand Down
3 changes: 3 additions & 0 deletions .github/skills/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Skills Usage

The skills in this directory are not only for Copilot. You can also use them with other AI agents. See the usage documentation of your AI agent for details.
Loading