-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[v15] Benchmarks Will Now Be Tested During CI #45867
Conversation
* Adding flags for benchmarks in unit test CI * Upping timeout for unit tests to accomodate benchmarks * Fixing a typo * Run benchmarks once * Adding a makefile target for ci bench test * Removing a stray quotation * Compacting workflow * Benchmarks now with nicer output * Benchmarks back to their own step * With error messages * Adding pipefail to preserve exit code * Using bash * Simpler command and including e * Separating benchmarks into its own workflow * Fixing benchmarks workflow name * Ignoring benchmarks that require root * Updating to account for root and nonroot bench * Cleaning up the benchmark workflows * Bench requires test log dir to be created * Excluding all BenchmarkRoot benchmarks from running * Bumping benchGetNodes timeout duration to account for some jitter * Fixing multiplexer benchmark by mirroring unit tests * Remembered that skip exists * Skipping BenchmarkGetMaxNodes due to flake * Fixing formatting of summary * Actually fixing summary * Adding another newline * Simplifying setup for mux listener * Excluding BenchmarkRootExecCommand
The PR changelog entry failed validation: Changelog entry not found in the PR body. Please add a "no-changelog" label to the PR, or changelog lines starting with |
Makefile
Outdated
test-go-bench: BENCHMARK_SKIP_PATTERN = "^BenchmarkRoot|^BenchmarkGetMaxNodes$$" | ||
test-go-bench: | $(TEST_LOG_DIR) | ||
go test -run ^$$ -bench . -skip $(BENCHMARK_SKIP_PATTERN) -benchtime 1x $(PACKAGES) \ | ||
| tee $(TEST_LOG_DIR)/bench.txt | ||
|
||
test-go-bench-root: PACKAGES = $(shell grep --exclude-dir api --include "*_test.go" -lr BenchmarkRoot . | xargs dirname | xargs go list | sort -u) | ||
test-go-bench-root: BENCHMARK_PATTERN = "^BenchmarkRoot" | ||
test-go-bench-root: BENCHMARK_SKIP_PATTERN = "^BenchmarkRootExecCommand$$" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know that the exclusions for BenchmarkGetMaxNodes and BenchmarkRootExecCommand are required anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm once Tim's comment is addressed
Backport #44486 to branch/v15