Ownership is measured by how many commits each author made to each file in the current tree. It highlights bus-factor risk (files only one person has ever touched) and where knowledge is concentrated. The bus factor is the smallest number of people who are, between them, primary owner of more than half of the files.
Files only one author has ever changed. The more a file has changed, the more knowledge is at risk if that person leaves.
| File | Sole owner | Commits |
|---|---|---|
| pkg/planner/core/logical_initialize.go | Arenatlx | 26 |
| pkg/domain/crossks/cross_ks.go | D3Hunter | 13 |
| pkg/planner/core/casetest/tpch/BUILD.bazel | Weizhen Wang | 13 |
| pkg/planner/cascades/memo/memo.go | Arenatlx | 12 |
| tests/realtikvtest/importintotest4/conflict_resolution_test.go | D3Hunter | 11 |
| pkg/dxf/framework/scheduler/scheduler_manager.go | D3Hunter | 11 |
| pkg/dxf/importinto/collect_conflicts.go | D3Hunter | 11 |
| pkg/server/handler/tikvhandler/dxf.go | D3Hunter | 11 |
| pkg/dxf/importinto/conflictedkv/BUILD.bazel | D3Hunter | 11 |
| pkg/dxf/framework/scheduler/scheduler_manager_nokit_test.go | D3Hunter | 10 |
| File | Sole owner | Commits |
|---|---|---|
| pkg/planner/core/logical_initialize.go | Arenatlx | 26 |
| pkg/domain/crossks/cross_ks.go | D3Hunter | 13 |
| pkg/planner/core/casetest/tpch/BUILD.bazel | Weizhen Wang | 13 |
| pkg/planner/cascades/memo/memo.go | Arenatlx | 12 |
| tests/realtikvtest/importintotest4/conflict_resolution_test.go | D3Hunter | 11 |
| pkg/dxf/framework/scheduler/scheduler_manager.go | D3Hunter | 11 |
| pkg/dxf/importinto/collect_conflicts.go | D3Hunter | 11 |
| pkg/server/handler/tikvhandler/dxf.go | D3Hunter | 11 |
| pkg/dxf/importinto/conflictedkv/BUILD.bazel | D3Hunter | 11 |
| pkg/dxf/framework/scheduler/scheduler_manager_nokit_test.go | D3Hunter | 10 |
| pkg/dxf/importinto/conflictedkv/collector.go | D3Hunter | 10 |
| pkg/planner/core/casetest/tpch/testdata/tpch_suite_in.json | Weizhen Wang | 10 |
| pkg/lightning/common/retry_test.go | D3Hunter | 9 |
| pkg/dxf/importinto/conflictedkv/handler_test.go | D3Hunter | 9 |
| pkg/dxf/framework/storage/history.go | D3Hunter | 8 |
| pkg/dxf/importinto/job.go | D3Hunter | 8 |
| pkg/dxf/framework/taskexecutor/manager.go | D3Hunter | 8 |
| pkg/ddl/schemaver/BUILD.bazel | D3Hunter | 8 |
| pkg/ddl/systable/manager.go | D3Hunter | 8 |
| pkg/util/memory/arbitrator.go | Zhigao TONG | 8 |
| pkg/planner/core/casetest/rule/rule_predicate_simplification_test.go | Weizhen Wang | 8 |
| pkg/dxf/framework/scheduler/scheduler_test.go | D3Hunter | 7 |
| pkg/dxf/framework/taskexecutor/BUILD.bazel | D3Hunter | 7 |
| pkg/dxf/importinto/conflict_resolution.go | D3Hunter | 7 |
| pkg/dxf/importinto/conflictedkv/deleter.go | D3Hunter | 7 |
| pkg/dxf/importinto/proto.go | D3Hunter | 7 |
| pkg/ddl/schemaver/mem_syncer.go | D3Hunter | 7 |
| pkg/executor/distribute.go | tongjian | 7 |
| pkg/util/memory/arbitrator_test.go | Zhigao TONG | 7 |
| pkg/util/memory/global_arbitrator.go | Zhigao TONG | 7 |
| pkg/util/memory/utils.go | Zhigao TONG | 7 |
| pkg/planner/core/casetest/rule/testdata/predicate_simplification_in.json | Weizhen Wang | 7 |
| tests/realtikvtest/pushdowntest/index_lookup_pushdown_test.go | Chao Wang | 6 |
| pkg/dxf/importinto/clean_up.go | D3Hunter | 6 |
| pkg/dxf/framework/handle/status.go | D3Hunter | 6 |
| pkg/dxf/importinto/task_executor_test.go | D3Hunter | 6 |
| pkg/ddl/mock/BUILD.bazel | D3Hunter | 6 |
| pkg/lightning/common/common_test.go | D3Hunter | 6 |
| pkg/ddl/systable/manager_test.go | D3Hunter | 6 |
| pkg/ddl/mview_worker.go | xufei | 6 |
| pkg/parser/ast/stats_test.go | Dongpo Liu | 6 |
| pkg/planner/core/casetest/tpch/main_test.go | Weizhen Wang | 6 |
| tests/integrationtest/t/executor/index_lookup_pushdown_partition.test | Chao Wang | 5 |
| pkg/session/contextimpl.go | Chao Wang | 5 |
| pkg/dxf/framework/scheduler/scheduler_manager_test.go | D3Hunter | 5 |
| pkg/ingestor/globalsort/util.go | D3Hunter | 5 |
| pkg/ingestor/globalsort/util_test.go | D3Hunter | 5 |
| pkg/dxf/framework/proto/task_test.go | D3Hunter | 5 |
| pkg/objstore/storage.go | D3Hunter | 5 |
| pkg/infoschema/isvalidator/validator.go | D3Hunter | 5 |
| pkg/ddl/mock/systable_manager_mock.go | D3Hunter | 5 |
| pkg/statistics/handle/autoanalyze/priorityqueue/interval.go | Dongpo Liu | 5 |
| pkg/statistics/handle/autoanalyze/priorityqueue/calculatoranalysis/calculator_analysis_test.go | Dongpo Liu | 5 |
| pkg/statistics/handle/autoanalyze/refresher/worker_test.go | Dongpo Liu | 5 |
| br/pkg/restore/internal/import_client/import_client.go | Jianjun Liao | 5 |
| br/pkg/streamhelper/export_test.go | Jianjun Liao | 5 |
| pkg/executor/sortexec/parallel_sort_worker.go | xzhangxian1008 | 5 |
| pkg/executor/sortexec/sort_spill.go | xzhangxian1008 | 5 |
| pkg/planner/cascades/old/BUILD.bazel | Arenatlx | 5 |
| pkg/planner/cascades/rule/rule.go | Arenatlx | 5 |
| lightning/pkg/importinto/importer.go | GMHDBJD | 5 |
| br/pkg/errors/BUILD.bazel | Weizhen Wang | 5 |
| .github/dependabot.yml | Weizhen Wang | 5 |
| br/tests/br_parallel_restore/run.sh | Wenqi Mou | 5 |
| br/pkg/restore/log_client/batch_meta_processor.go | Wenqi Mou | 5 |
| docs/design/2021-03-09-dynamic-privileges.md | Morgan Tocker | 5 |
| pkg/session/syssession/session.go | Chao Wang | 4 |
| pkg/lightning/mydump/parser_test.go | D3Hunter | 4 |
| pkg/ingestor/globalsort/engine_test.go | D3Hunter | 4 |
| pkg/dxf/importinto/clean_up_test.go | D3Hunter | 4 |
| pkg/server/handler/tikvhandler/dxf_test.go | D3Hunter | 4 |
| pkg/dxf/framework/integrationtests/framework_test.go | D3Hunter | 4 |
| pkg/dxf/framework/taskexecutor/task_executor_test.go | D3Hunter | 4 |
| tests/realtikvtest/importintotest3/extra_param_test.go | D3Hunter | 4 |
| lightning/pkg/importer/tidb_test.go | D3Hunter | 4 |
| pkg/meta/metadef/BUILD.bazel | D3Hunter | 4 |
| pkg/ddl/serverstate/syncer_test.go | D3Hunter | 4 |
| lightning/tests/lightning_csv/run.sh | D3Hunter | 4 |
| pkg/executor/mlog_purge.go | xufei | 4 |
| pkg/ddl/mview_worker_test.go | xufei | 4 |
| pkg/statistics/handle/autoanalyze/priorityqueue/calculator_test.go | Dongpo Liu | 4 |
| pkg/statistics/handle/autoanalyze/priorityqueue/calculator.go | Dongpo Liu | 4 |
| pkg/planner/extstore/extstore.go | zeminzhou | 4 |
| pkg/planner/extstore/extstore_test.go | zeminzhou | 4 |
| pkg/planner/cascades/rule/join/join_to_apply.go | Arenatlx | 4 |
| pkg/planner/cascades/task/task_apply_rule.go | Arenatlx | 4 |
| pkg/planner/cascades/task/task_opt_group_expression.go | Arenatlx | 4 |
| pkg/ddl/engine_attribute.go | Connor | 4 |
| pkg/ddl/storage_class_test.go | Connor | 4 |
| pkg/util/memory/pool.go | Zhigao TONG | 4 |
| pkg/metrics/memory.go | Zhigao TONG | 4 |
| pkg/importsdk/config.go | GMHDBJD | 4 |
| lightning/pkg/importinto/job_submitter.go | GMHDBJD | 4 |
| lightning/pkg/importinto/job_submitter_test.go | GMHDBJD | 4 |
| pkg/util/traceevent/flightrecorder_test.go | tiancaiamao | 4 |
| tests/integrationtest/r/infoschema/v2.result | tiancaiamao | 4 |
| tests/integrationtest/t/infoschema/v2.test | tiancaiamao | 4 |
| .github/actions/tidb_build/action.yml | Weizhen Wang | 4 |
| pkg/planner/core/casetest/schema/testdata/cannot_find_column_suite_out.json | Weizhen Wang | 4 |
| pkg/planner/core/casetest/schema/testdata/cannot_find_column_suite_xut.json | Weizhen Wang | 4 |
Primary owner = the author with the most commits to a file. Solely owned = files only that author has touched.
| Author | Files owned | Solely owned | Files touched |
|---|---|---|---|
| D3Hunter | 1,943 | 1,308 | 3,331 |
| bb7133 | 1,037 | 419 | 2,791 |
| Weizhen Wang | 563 | 142 | 2,174 |
| Arenatlx | 251 | 87 | 770 |
| Chao Wang | 249 | 27 | 946 |
| Hangjie Mo | 243 | 72 | 821 |
| YangKeao | 220 | 55 | 948 |
| Yuanjia Zhang | 175 | 13 | 839 |
| Jianjun Liao | 161 | 42 | 372 |
| Dongpo Liu | 158 | 44 | 538 |
| xufei | 157 | 83 | 476 |
| tiancaiamao | 134 | 26 | 563 |
| xzhangxian1008 | 126 | 8 | 270 |
| tpp | 119 | 21 | 386 |
| Yiding Cui | 106 | 30 | 608 |
| 山岚 | 105 | 24 | 228 |
| tangenta | 101 | 8 | 520 |
| lance6716 | 91 | 18 | 495 |
| 3pointer | 82 | 50 | 294 |
| okJiang | 80 | 37 | 229 |
| Mattias Jonsson | 74 | 15 | 1,001 |
| Ruihao Chen | 69 | 31 | 506 |
| ChangRui-Ryan | 67 | 63 | 228 |
| Wenqi Mou | 64 | 39 | 267 |
| yibin | 61 | 8 | 266 |
Files touched by the most people — shared code where changes are most likely to need coordination.
| File | Contributors | Primary owner | Owner share |
|---|---|---|---|
| go.sum | 189 | Weizhen Wang | 10.0% |
| go.mod | 185 | Weizhen Wang | 11.6% |
| Makefile | 103 | Weizhen Wang | 17.0% |
| DEPS.bzl | 88 | Weizhen Wang | 20.1% |
| errors.toml | 88 | D3Hunter | 8.2% |
| pkg/sessionctx/variable/sysvar.go | 62 | Weizhen Wang | 9.6% |
| pkg/session/session.go | 59 | D3Hunter | 13.3% |
| README.md | 54 | Shen Li | 6.8% |
| pkg/sessionctx/variable/session.go | 53 | Yuanjia Zhang | 8.4% |
| pkg/planner/core/planbuilder.go | 52 | Yuanjia Zhang | 13.7% |
| pkg/executor/BUILD.bazel | 52 | D3Hunter | 14.5% |
| pkg/parser/parser.y | 50 | Yuanjia Zhang | 13.2% |
| pkg/parser/parser.go | 50 | Yuanjia Zhang | 13.3% |
| pkg/executor/builder.go | 49 | Arenatlx | 14.0% |
| pkg/domain/domain.go | 48 | D3Hunter | 19.0% |
| pkg/parser/parser_test.go | 44 | Yuanjia Zhang | 13.5% |
| pkg/infoschema/tables.go | 43 | Daniël van Eeden | 9.0% |
| pkg/executor/adapter.go | 42 | Yuanjia Zhang | 15.8% |
| pkg/executor/infoschema_reader.go | 42 | tangenta | 11.3% |
| pkg/sessionctx/variable/tidb_vars.go | 40 | Weizhen Wang | 13.2% |
How TiDB compares with other open source projects from China →
How TiDB ranks among open source projects from China by AI-assisted commits →
Generate this report for your own repository with gitstats-action · All Gallery reports
Publishes the report to GitHub Pages on every push to main: turn on Pages for the gh-pages branch.
# .github/workflows/gitstats.yml
name: GitStats Report
on:
push:
branches: [main]
permissions:
contents: write
jobs:
gitstats:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: shenxianpeng/gitstats-action@v1
with:
deploy-to-pages: true