Skip to content

Commit

Permalink
Merge branch 'pingcap:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
jackysp authored Nov 15, 2023
2 parents 9b38397 + 625dc4e commit d57ed11
Show file tree
Hide file tree
Showing 6,415 changed files with 1,775,822 additions and 538,953 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
30 changes: 30 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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 --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: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=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=268435456
test:ci --test_timeout=150,300,900,3600
test:race --test_timeout=1200,6000,18000,72000

try-import /data/bazel
64 changes: 54 additions & 10 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,22 +34,57 @@ 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
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
- type: patch
target: 85%

ignore:
- "LICENSES"
- "*_test.go"
- "*_test.go"
- ".git"
- "*.yml"
- "*.md"
- "cmd/.*"
- "cmd/.*"
- "docs/.*"
- "vendor/.*"
- "ddl/failtest/.*"
- "ddl/testutil/.*"
- "executor/seqtest/.*"
- "metrics/.*"
- "expression/generator/.*"
- "br/pkg/mock/.*"
- "testkit/.*"
- "server/internal/testutil/.*"
- "statistics/handle/cache/internal/testutil/.*"
- "session/testutil.go"
- "store/mockstore/unistore/testutil.go"

10 changes: 10 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.git/
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
22 changes: 5 additions & 17 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
/distsql @pingcap/co-exec
/executor @pingcap/co-exec
/expression @pingcap/co-exec
/types @pingcap/co-exec
/util/chunk @pingcap/co-exec
/util/disk @pingcap/co-exec
/util/execdetails @pingcap/co-exec
/util/expensivequery @pingcap/co-exec
/util/filesort @pingcap/co-exec
/util/memory @pingcap/co-exec
/util/sqlexec @pingcap/co-exec

/planner @pingcap/co-planner
/statistics @pingcap/co-planner
/util/ranger @pingcap/co-planner
/util/plancodec @pingcap/co-planner
/bindinfo @pingcap/co-planner
# Require review from domain experts when the PR modified significant config files.
/sessionctx/variable @pingcap/tidb-configuration-reviewer
/config/config.toml.example @pingcap/tidb-configuration-reviewer
/session/bootstrap.go @pingcap/tidb-configuration-reviewer
/telemetry/ @pingcap/telemetry-reviewer
16 changes: 7 additions & 9 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
---
name: "\U0001F41B Bug Report"
about: Something isn't working as expected
about: As a User, I want to report a Bug.
labels: type/bug
---

## Bug Report

Please answer these questions before submitting your issue. Thanks!

1. What did you do?
<!--If possible, provide a recipe for reproducing the error.-->
### 1. Minimal reproduce step (Required)

<!-- a step by step guide for reproducing the bug. -->

2. What did you expect to see?
### 2. What did you expect to see? (Required)

### 3. What did you see instead (Required)

### 4. What is your TiDB version? (Required)

3. What did you see instead?



4. What version of TiDB are you using (`tidb-server -V` or run `select tidb_version();` on TiDB)?
<!-- Paste the output of SELECT tidb_version() -->

27 changes: 0 additions & 27 deletions .github/ISSUE_TEMPLATE/challenge-program.md

This file was deleted.

8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: TiDB Forum
url: https://ask.pingcap.com/
about: Ask a question on the TiDB Forum
- name: TiDB Forum(Chinese)
url: https://asktug.com/
about: Ask a question on the TiDB user group (Chinese)
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE/enhancement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
name: "\U0001F680 Enhancement"
about: As a TiDB developer, I want to make an enhancement.
labels: type/enhancement
---

## Enhancement
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: "\U0001F680 Feature Request"
about: I have a suggestion
labels: type/enhancement
about: As a user, I want to request a New Feature on the product.
labels: type/feature-request
---

## Feature Request
Expand All @@ -16,4 +16,4 @@ labels: type/enhancement
<!-- A clear and concise description of any alternative solutions or features you've considered. -->

**Teachability, Documentation, Adoption, Migration Strategy:**
<!-- If you can, explain some scenarios how users might use this, situations it would be helpful in. Any API designs, mockups, or diagrams are also helpful. -->
<!-- If you can, explain some scenarios how users might use this, situations it would be helpful in. Any API designs, mockups, or diagrams are also helpful. -->
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/general-question.md

This file was deleted.

29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/performance-questions.md

This file was deleted.

19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
day: "friday"
time: "12:00"
timezone: "Asia/Shanghai"
allow:
- dependency-name: "golang.org/*"
- dependency-name: "github.com/golangci/golangci-lint"
- dependency-name: "github.com/prometheus/*"
- dependency-name: "go.uber.org/*"
open-pull-requests-limit: 2
- package-ecosystem: "gomod"
directory: "/parser"
schedule:
interval: "weekly"
28 changes: 0 additions & 28 deletions .github/labeler.yml

This file was deleted.

Loading

0 comments on commit d57ed11

Please sign in to comment.