-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into issue48741
- Loading branch information
Showing
1,274 changed files
with
68,506 additions
and
51,008 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -267,7 +267,7 @@ tools/bin/gotestsum: | |
GOBIN=$(shell pwd)/tools/bin $(GO) install gotest.tools/[email protected] | ||
|
||
tools/bin/mockgen: | ||
GOBIN=$(shell pwd)/tools/bin $(GO) install go.uber.org/mock/mockgen@v0.2.0 | ||
GOBIN=$(shell pwd)/tools/bin $(GO) install go.uber.org/mock/mockgen@v0.3.0 | ||
|
||
# Usage: | ||
# | ||
|
@@ -301,6 +301,7 @@ bench-daily: | |
go test -tags intest github.com/pingcap/tidb/pkg/util/rowcodec -run TestBenchDaily -bench Ignore --outfile bench_daily.json | ||
go test -tags intest github.com/pingcap/tidb/pkg/util/codec -run TestBenchDaily -bench Ignore --outfile bench_daily.json | ||
go test -tags intest github.com/pingcap/tidb/pkg/distsql -run TestBenchDaily -bench Ignore --outfile bench_daily.json | ||
go test -tags intest github.com/pingcap/tidb/pkg/statistics -run TestBenchDaily -bench Ignore --outfile bench_daily.json | ||
go test -tags intest github.com/pingcap/tidb/pkg/util/benchdaily -run TestBenchDaily -bench Ignore \ | ||
-date `git log -n1 --date=unix --pretty=format:%cd` \ | ||
-commit `git log -n1 --pretty=format:%h` \ | ||
|
@@ -312,16 +313,16 @@ br_web: | |
@cd br/web && npm install && npm run build | ||
|
||
build_br: | ||
CGO_ENABLED=1 $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS) $(CHECK_FLAG)' -o $(BR_BIN) br/cmd/br/*.go | ||
CGO_ENABLED=1 $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS) $(CHECK_FLAG)' -o $(BR_BIN) ./br/cmd/br | ||
|
||
build_lightning_for_web: | ||
CGO_ENABLED=1 $(GOBUILD) -tags dev $(RACE_FLAG) -ldflags '$(LDFLAGS) $(CHECK_FLAG)' -o $(LIGHTNING_BIN) br/cmd/tidb-lightning/main.go | ||
|
||
build_lightning: | ||
CGO_ENABLED=1 $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS) $(CHECK_FLAG)' -o $(LIGHTNING_BIN) br/cmd/tidb-lightning/main.go | ||
CGO_ENABLED=1 $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS) $(CHECK_FLAG)' -o $(LIGHTNING_BIN) ./br/cmd/tidb-lightning | ||
|
||
build_lightning-ctl: | ||
CGO_ENABLED=1 $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS) $(CHECK_FLAG)' -o $(LIGHTNING_CTL_BIN) br/cmd/tidb-lightning-ctl/main.go | ||
CGO_ENABLED=1 $(GOBUILD) $(RACE_FLAG) -ldflags '$(LDFLAGS) $(CHECK_FLAG)' -o $(LIGHTNING_CTL_BIN) ./br/cmd/tidb-lightning-ctl | ||
|
||
build_for_br_integration_test: | ||
@make failpoint-enable | ||
|
@@ -386,6 +387,7 @@ mock_lightning: tools/bin/mockgen | |
gen_mock: tools/bin/mockgen | ||
tools/bin/mockgen -package mock github.com/pingcap/tidb/pkg/disttask/framework/scheduler TaskTable,Pool,Scheduler,Extension > pkg/disttask/framework/mock/scheduler_mock.go | ||
tools/bin/mockgen -package mock github.com/pingcap/tidb/pkg/disttask/framework/dispatcher Dispatcher,CleanUpRoutine,TaskManager > pkg/disttask/framework/mock/dispatcher_mock.go | ||
tools/bin/mockgen -package mock github.com/pingcap/tidb/pkg/disttask/framework/dispatcher Extension > pkg/disttask/framework/dispatcher/mock/dispatcher_mock.go | ||
tools/bin/mockgen -package execute github.com/pingcap/tidb/pkg/disttask/framework/scheduler/execute SubtaskExecutor > pkg/disttask/framework/mock/execute/execute_mock.go | ||
tools/bin/mockgen -package mock github.com/pingcap/tidb/pkg/disttask/importinto MiniTaskExecutor > pkg/disttask/importinto/mock/import_mock.go | ||
tools/bin/mockgen -package mock github.com/pingcap/tidb/pkg/disttask/framework/planner LogicalPlan,PipelineSpec > pkg/disttask/framework/mock/plan_mock.go | ||
|
@@ -496,7 +498,7 @@ bazel_test: failpoint-enable bazel_prepare | |
|
||
|
||
bazel_coverage_test: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) --nohome_rc coverage $(BAZEL_CMD_CONFIG) --jobs=35 --build_tests_only --test_keep_going=false \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) --nohome_rc coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --jobs=35 --build_tests_only --test_keep_going=false \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover --define gotags=deadlock,intest \ | ||
-- //... -//cmd/... -//tests/graceshutdown/... \ | ||
-//tests/globalkilltest/... -//tests/readonlytest/... -//br/pkg/task:task_test -//tests/realtikvtest/... | ||
|
@@ -533,89 +535,89 @@ bazel_golangcilinter: | |
-- run $$($(PACKAGE_DIRECTORIES)) --config ./.golangci.yaml | ||
|
||
bazel_brietest: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/brietest/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
bazel_pessimistictest: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/pessimistictest/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
bazel_sessiontest: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/sessiontest/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
bazel_statisticstest: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/statisticstest/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
bazel_txntest: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/txntest/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
bazel_addindextest: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/addindextest/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
bazel_addindextest1: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/addindextest1/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
bazel_addindextest2: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/addindextest2/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
bazel_addindextest3: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/addindextest3/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
bazel_addindextest4: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/addindextest4/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
# on timeout, bazel won't print log sometimes, so we use --test_output=all to print log always | ||
bazel_importintotest: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/importintotest/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
# on timeout, bazel won't print log sometimes, so we use --test_output=all to print log always | ||
bazel_importintotest2: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/importintotest2/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
# on timeout, bazel won't print log sometimes, so we use --test_output=all to print log always | ||
bazel_importintotest3: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/importintotest3/... | ||
./build/jenkins_collect_coverage.sh | ||
|
||
# on timeout, bazel won't print log sometimes, so we use --test_output=all to print log always | ||
bazel_importintotest4: failpoint-enable bazel_ci_simple_prepare | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
bazel $(BAZEL_GLOBAL_CONFIG) coverage $(BAZEL_CMD_CONFIG) $(BAZEL_INSTRUMENTATION_FILTER) --test_output=all --test_arg=-with-real-tikv --define gotags=deadlock,intest \ | ||
--@io_bazel_rules_go//go/config:cover_format=go_cover \ | ||
-- //tests/realtikvtest/importintotest4/... | ||
./build/jenkins_collect_coverage.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2023 PingCAP, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
//go:build boringcrypto | ||
// +build boringcrypto | ||
|
||
package main | ||
|
||
import ( | ||
_ "crypto/tls/fipsonly" | ||
|
||
"github.com/pingcap/tidb/br/pkg/version/build" | ||
) | ||
|
||
func init() { | ||
build.ReleaseVersion += "-fips" | ||
} |
Oops, something went wrong.