Skip to content

ci: add bazel bench job#69166

Merged
craig[bot] merged 1 commit into
cockroachdb:masterfrom
rickystewart:benchci
Aug 20, 2021
Merged

ci: add bazel bench job#69166
craig[bot] merged 1 commit into
cockroachdb:masterfrom
rickystewart:benchci

Conversation

@rickystewart

@rickystewart rickystewart commented Aug 19, 2021

Copy link
Copy Markdown
Contributor

Also tweak dev to pass some necessary flag for benches, and fix some
broken benchmarks.

Closes #67140.

Release note: None

@rickystewart rickystewart requested a review from a team as a code owner August 19, 2021 17:58
@cockroach-teamcity

Copy link
Copy Markdown
Member

This change is Reviewable

@rickystewart rickystewart force-pushed the benchci branch 4 times, most recently from e27f6a3 to 85d4218 Compare August 19, 2021 22:05
@rickystewart rickystewart requested a review from rail August 19, 2021 22:06
@rickystewart

Copy link
Copy Markdown
Contributor Author

@rail rail left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1, 2 of 2 files at r2, 6 of 6 files at r3, 2 of 2 files at r4, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @rickystewart)


build/teamcity/cockroach/ci/tests/bench_impl.sh, line 7 at r1 (raw file):

# Enumerate test targets that have benchmarks.
all_tests=$(bazel query 'kind(go_test, //pkg/...)' --output=label)
pkgs=$(git grep -l '^func Benchmark' -- 'pkg/*_test.go' | rev | cut -d/ -f2- | rev | sort | uniq)

A nit. sort -ru replaces rev and uniq. (I know, this is the same commit, but in multiple PRs. The UI doesn't make it easy to figure out which one is which).

Also tweak `dev` to pass some necessary flag for benches, and fix some
broken benchmarks.

Closes #67140.

Release note: None
@rickystewart

Copy link
Copy Markdown
Contributor Author

bors r=rail

@craig

craig Bot commented Aug 20, 2021

Copy link
Copy Markdown
Contributor

Build succeeded:

@craig craig Bot merged commit 0ab327c into cockroachdb:master Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: add bazel bench job for CI

3 participants