-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split integration tests(IT) and unit tests(UT) in TiDB repo #45961
Labels
type/enhancement
The issue or PR belongs to an enhancement.
Comments
Defined2014
added
the
type/enhancement
The issue or PR belongs to an enhancement.
label
Aug 10, 2023
12 tasks
This was referenced Aug 23, 2023
Use a shell script to get all should_exclude_dir() {
local dir="$1"
if [[ "$dir" == "bazel"* ]]; then
return 0
fi
return 1
}
count_files() {
local dir="$1"
local count=0
while IFS= read -r file; do
if [ -f "$file" ]; then
if [[ "$file" == *"/main_test.go" ]]; then
continue
fi
if [[ $count == 0 ]]; then
echo "Dir:$dir"
fi
count=$((count + 1))
echo "File:$file"
fi
done < <(find "$dir" -type f -name "*_test.go")
if [[ $count -eq 0 ]]; then
return 1
fi
echo "count:$count"
echo ""
}
for dir in */; do
if should_exclude_dir "$dir"; then
continue
fi
if ! count_files "$dir"; then
continue
fi
done |
12 tasks
12 tasks
12 tasks
12 tasks
13 tasks
5 tasks
This was referenced Sep 27, 2023
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
13 tasks
ti-chi-bot
pushed a commit
to ti-chi-bot/tidb
that referenced
this issue
Dec 5, 2023
13 tasks
wuhuizuo
pushed a commit
to wuhuizuo/tidb
that referenced
this issue
Apr 2, 2024
13 tasks
terry1purcell
pushed a commit
to terry1purcell/tidb
that referenced
this issue
May 17, 2024
RidRisR
pushed a commit
to RidRisR/tidb
that referenced
this issue
May 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Goals:
*_test.go
totests/integrationtest
tidb/blob/master/cmd/explaintest/main.go
withmysql-tester
mysql-tester
for native concurrency support, eliminating the need for scripts or CI pipeline controlrun-tests.sh
for integrationtest #49160*test.go
.Current Status of
cmd/explaintest
:check_dev
: Runs tidb + unistore (use 34s, 08/23)check_dev2
: Runs tidb + tikv (use 39s, 08/23)Optional:
planner/core/casetest
directorySub Tasks
autoid_service/
to explaintest, files number 1bindinfo/
totests/integrationtest
, files number 7 #47124br/
to explaintest, files number 147, only 5 cases relatedCreateMockStore
, skip it now.config/
to explaintest, files number 2ddl/
to explaintest, files number 80 #47429distsql/
to explaintest, files number 4disttask/
to explaintest, files number 8domain/
to explaintest, files number 13dumpling/
to explaintest, files number 15errno/
to explaintest, files number 1executor/
totests/integrationtest
#47076expression/
to explaintest, files number 65 #46679extension/
to explaintest, files number 4infoschema/
to explaintest, files number 6 #47237keyspace/
to explaintest, files number 1kv/
to explaintest, files number 10meta/
to explaintest, files number 5metrics/
to explaintest, files number 1owner/
to explaintest, files number 2parser/
to explaintest, files number 34planner/
to explaintest, files number 81 #47173plugin/
to explaintest, files number 6privilege/
to explaintest, files number 4 #47149resourcemanager/
to explaintest, files number 4server/
to explaintest, files number 18session/
to explaintest, files number 11 #47287sessionctx/
to explaintest, files number 12 #47211sessiontxn/
to explaintest, files number 10 #47213statistics/
to integrationtest, files number 19 #47222store/
to explaintest, files number 29structure/
to explaintest, files number 1table/
to explaintest, files number 12 #47160tablecodec/
to explaintest, files number 3telemetry/
to explaintest, files number 6testkit/
to explaintest, files number 2tests/
to explaintest, files number 30, not include inmake ut
tidb-binlog/
to explaintest, files number 4timer/
to explaintest, files number 9ttl/
to explaintest, files number 18types/
to explaintest, files number 24 #46513util/
to integrationtest, files number 147 #47177The text was updated successfully, but these errors were encountered: