Skip to content

rbtest: fail a refused load gate under -perf.run - #5

Merged
tannevaled merged 1 commit into
mainfrom
rbtest-fail-closed-gate
Nov 8, 2026
Merged

tannevaled merged 1 commit into
mainfrom
rbtest-fail-closed-gate

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Fixes #4.

With -perf.run, rbtest.Perf now fails (Fatalf, non-zero exit) when the load gate does not open, whether refused or still closed after -perf.wait. A gate that opens within the wait is unchanged. Without -perf.run nothing changes (CI unaffected).

Tests: refuse mode fails and writes nothing; wait opening measures; wait timing out fails; -perf.record and plain mode pass under a busy load. rbtest coverage 100%. No flag change: PATCH.

🤖 Generated with Claude Code

An explicit timing request that measured nothing must not read as ok.
Plain go test (no -perf.run) is unchanged. Fixes #4.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 2c9f4a5 into main Nov 8, 2026
5 checks passed
@tannevaled
tannevaled deleted the rbtest-fail-closed-gate branch November 8, 2026 08:32
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.

rbtest: a refused load gate under -perf.run skips silently instead of failing

1 participant