Skip to content
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

chore: make bazel running without nogo #54170

Merged
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -624,12 +624,13 @@ bazel_coverage_test: failpoint-enable bazel_ci_simple_prepare
-//tests/globalkilltest/... -//tests/readonlytest/... -//br/pkg/task:task_test -//tests/realtikvtest/...

.PHONY: bazel_build
NOGO_FLAG=true
lance6716 marked this conversation as resolved.
Show resolved Hide resolved
bazel_build:
mkdir -p bin
bazel $(BAZEL_GLOBAL_CONFIG) build $(BAZEL_CMD_CONFIG) \
//... --//build:with_nogo_flag=true
//... --//build:with_nogo_flag=$(NOGO_FLAG)
bazel $(BAZEL_GLOBAL_CONFIG) build $(BAZEL_CMD_CONFIG) \
//cmd/importer:importer //cmd/tidb-server:tidb-server //cmd/tidb-server:tidb-server-check --//build:with_nogo_flag=true
//cmd/importer:importer //cmd/tidb-server:tidb-server //cmd/tidb-server:tidb-server-check --//build:with_nogo_flag=$(NOGO_FLAG)
cp bazel-out/k8-fastbuild/bin/cmd/tidb-server/tidb-server_/tidb-server ./bin
cp bazel-out/k8-fastbuild/bin/cmd/importer/importer_/importer ./bin
cp bazel-out/k8-fastbuild/bin/cmd/tidb-server/tidb-server-check_/tidb-server-check ./bin
Expand Down Expand Up @@ -778,8 +779,9 @@ bazel_flashbacktest: failpoint-enable bazel_ci_simple_prepare
./build/jenkins_collect_coverage.sh

.PHONY: bazel_lint
NOGO_FLAG=true
bazel_lint: bazel_prepare
bazel build //... --//build:with_nogo_flag=true
bazel build //... --//build:with_nogo_flag=$(NOGO_FLAG)

.PHONY: docker
docker:
Expand Down