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

[prototype] *: branch to run buildkite on #4

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all 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
5 changes: 2 additions & 3 deletions build/bazelbuilder/bazelbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

set -xeuo pipefail

bazel build //pkg/cmd/cockroach-short
# Stage artifacts.
cp $(bazel info bazel-bin)/pkg/cmd/cockroach-short/cockroach-short_/cockroach-short /artifacts
bazel build //pkg/cmd/cockroach-short --remote_cache='http://localhost:9090'
bazel test //pkg:small_tests --remote_cache='http://localhost:9090'
8 changes: 8 additions & 0 deletions build/buildkite-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -xeuo pipefail

bazel build //pkg/cmd/cockroach-short --remote_cache='http://localhost:9090'
bazel test //pkg:small_tests --remote_cache='http://localhost:9090'
bazel test //pkg:medium_tests --remote_cache='http://localhost:9090'
bazel test //pkg:large_tests --remote_cache='http://localhost:9090'
15 changes: 15 additions & 0 deletions build/buildkite.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

set -euo pipefail

# root is the absolute path to the root directory of the repository.
root=$(cd "$(dirname "$0")/.." && pwd)

# Bazel configuration for CI.
cp $root/.bazelrc.ci $root/.bazelrc.user

docker run -i ${tty-} --rm --init \
--workdir="/go/src/github.com/cockroachdb/cockroach" \
--network=host \
--volume "$root:/go/src/github.com/cockroachdb/cockroach" \
cockroachdb/bazel:20210201-174432 /bin/bash < $root/build/buildkite-ci.sh
1 change: 1 addition & 0 deletions pkg/base/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ go_library(
go_test(
name = "base_test",
size = "small",
tags = ["broken_in_bazel"],
srcs = [
"addr_validation_test.go",
"cluster_id_test.go",
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/cockroach-oss/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ go_binary(
go_test(
name = "cockroach-oss_test",
size = "medium",
tags = ["broken_in_bazel"],
srcs = ["dep_test.go"],
embed = [":cockroach-oss_lib"],
deps = [
Expand Down
1 change: 1 addition & 0 deletions pkg/internal/codeowners/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ go_test(
size = "small",
srcs = ["codeowners_test.go"],
embed = [":codeowners"],
tags = ["broken_in_bazel"],
deps = [
"//pkg/internal/team",
"@com_github_stretchr_testify//require",
Expand Down
1 change: 1 addition & 0 deletions pkg/internal/team/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ go_test(
size = "small",
srcs = ["team_test.go"],
embed = [":team"],
tags = ["broken_in_bazel"],
deps = ["@com_github_stretchr_testify//require"],
)