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

bazel: add dev test-binaries command #98599

Merged

Conversation

herkolategan
Copy link
Collaborator

Add command roachprod-bench-wrapper to dev. The command will build all the test
binaries for a given set of packages, using Bazel. Any runfiles required by the
binaries will also be staged. Binaries and runfiles are added to a tar in
artifacts and can be optionally compressed. The output is portable without being
dependent on the repository.

Each package is supplied with a run script that will set up environment variables
for Bazel runfiles to be used by the test binary.

Additionally, this builds the binary for a sub command roachprod-bench that will
orchestrate the execution of the binaries. The sub command is also executed by
the roachprod-bench command with specified arguments passed to it.

Resolves: #90837
See also: #90958

Epic: CRDB-20903

Release justification: test-only change.
Release note: NoneBackport:

Please see individual PRs for details.

/cc @cockroachdb/release

Add command roachprod-bench-wrapper to dev. The command will build all the test
binaries for a given set of packages, using Bazel. Any runfiles required by the
binaries will also be staged. Binaries and runfiles are added to a tar in
artifacts and can be optionally compressed. The output is portable without being
dependent on the repository.

Each package is supplied with a run script that will set up environment variables
for Bazel runfiles to be used by the test binary.

Additionally, this builds the binary for a sub command roachprod-bench that will
orchestrate the execution of the binaries. The sub command is also executed by
the roachprod-bench command with specified arguments passed to it.

Resolves: cockroachdb#90837
See also: cockroachdb#90958

Epic: CRDB-20903

Release justification: test-only change.
Release note: None
This intends to decouple generating test binaries and running the roachprod
microbenchmarks command. Rather than having a strong coupling this command will
now just build and archive the portable test binaries that can then be used by
any other commands in the future.

The command also no longer builds the libraries or the roachprod microbenchmarks
binary (formerly roachprod-bench). After this change `dev test-binaries` will
only generate an archive of portable test binaries. This archive can then be
used with the roachprod microbenchmarks command, possibly amongst other things,
to run microbenchmarks.

See also: cockroachdb#90958

Release note: None
@blathers-crl
Copy link

blathers-crl bot commented Mar 14, 2023

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@herkolategan herkolategan marked this pull request as ready for review March 14, 2023 20:22
@herkolategan herkolategan requested a review from a team as a code owner March 14, 2023 20:22
@herkolategan herkolategan requested a review from smg260 March 14, 2023 20:23
Copy link
Contributor

@smg260 smg260 left a comment

Choose a reason for hiding this comment

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

Reviewed 4 of 4 files at r1, 1 of 3 files at r2, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @herkolategan)

@herkolategan herkolategan merged commit 6cc5c4d into cockroachdb:release-22.2 Apr 4, 2023
@herkolategan herkolategan deleted the backport22.2-91144-95353 branch April 4, 2023 19:23
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.

3 participants