Skip to content

review: one scheme builder and one namespace helper for the bench harnesses - #14

Merged
CMGS merged 1 commit into
masterfrom
review/bench-harness-helpers
Sep 4, 2026
Merged

review: one scheme builder and one namespace helper for the bench harnesses#14
CMGS merged 1 commit into
masterfrom
review/bench-harness-helpers

Conversation

@CMGS

@CMGS CMGS commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

What

test/benchutil gains NewScheme(extra ...func(*runtime.Scheme) error) and EnsureNamespace(ctx, cl, name, labels); l2bench/scalebench drop their private newScheme, e2ebench/scalestress/poolbench drop their private ensureNS. Net −11 lines, harness code only (every harness is build-tagged; nothing under pkg/, controllers/ or internal/ changes).

Evidence

  • GOWORK=off go build -tags <tag> ./test/<tag>/ for l2bench, scalebench, e2ebench, scalestress, poolbench: all build.
  • make lint GOOS=darwin and GOOS=linux: 0 issues; make fmt-check: clean; asl ./... both GOOS: clean.
  • go test -race ./test/benchutil/ ./internal/...: ok.
  • Comment lines: +0 −0.

…nesses

l2bench and scalebench each built the same scheme; e2ebench, scalestress
and poolbench each created their run namespace the same way. Both move
into test/benchutil, which the harnesses already import.
@CMGS
CMGS merged commit 5eb160c into master Sep 4, 2026
2 checks passed
@CMGS
CMGS deleted the review/bench-harness-helpers branch September 4, 2026 14:26
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.

1 participant