Repository navigation
Build pulsar-perf with a plain cargo build --release - #46
Merged
Merged
Conversation
The end-to-end benchmark tool in tools/perf is now the pulsar-perf package, and a default member of the workspace, so that a bare `cargo build --release` leaves target/release/pulsar-perf next to the client, under the name Java's tool goes by. - tools/perf/Cargo.toml: the package is pulsar-perf, and so is its binary and the name its usage line prints. The directory stays tools/perf. - Cargo.toml: tools/perf joins default-members. - coverage.yml: the job measures the default members, so tools/perf is left out of the report with the generated protobuf code, instead of arriving at 20% and failing the gate for a change that adds no client code. - baseline.sh builds -p pulsar-perf and runs /perf/pulsar-perf. - Where both tools are named, baseline.sh, the module docs and docs/8-quality.md §6 say this client's or Java's pulsar-perf. A bare `cargo test` and `cargo clippy` now also build pulsar-perf, and with it clap and hdrhistogram.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The end-to-end benchmark tool in
tools/perfwas a workspace member namedperf, but not a default one. A plaincargo build --releasedidn't build it, so finding it meant knowing to build it with-p perf.Example
cargo build --release ls target/release/perf # no such file: only -p perf builds itChange
The tool is now the
pulsar-perfpackage, under the name Java's tool goes by, and a default member of the workspace:tools/perf/Cargo.toml: the package ispulsar-perf, and so is its binary and the name its usage line prints. Thedirectory stays
tools/perf.Cargo.toml:tools/perfjoinsdefault-members.coverage.yml: the job measures the default members, sotools/perfis left out of the report with the generatedprotobuf code, instead of arriving at 20% and failing the gate for a change that adds no client code.
baseline.shbuilds-p pulsar-perfand runs/perf/pulsar-perf.baseline.sh, the module docs anddocs/8-quality.md§6 say this client's or Java'spulsar-perf.A plain
cargo testandcargo clippynow also buildpulsar-perf, and with itclapandhdrhistogram. The MSRVand package jobs name their crates with
-p, so they don't take it.Testing
cargo build --release --lockedleavestarget/release/pulsar-perf, whose--helpprintsUsage: pulsar-perf <COMMAND>.cargo fmt --all --check,cargo clippy --workspace --all-targets -- -D warnings, andbash -nonbaseline.sh.cargo llvm-cov -p pulsar-perf --json:tools/perf/src/main.rsis in the report without the new pattern, and gonewith it.
baseline.sh's Docker runs were not run.