Repository navigation
fix(loadtest): let a run override a scenario threshold - #1374
Open
TheMeinerLP wants to merge 1 commit into
Open
TheMeinerLP wants to merge 1 commit into
TheMeinerLP wants to merge 1 commit into
Conversation
A plateau step passes only under the p95 limit of its scenario. Those limits stay provisional until the first measured run sets them, and changing one meant editing the shared file, which then changed every later run too. A run now takes --threshold <scenario>=<ms> and uses that limit for its own scenario only, while the other limits keep their declared values. Input that would silently do the wrong thing is refused before any load is sent: a value that is not a positive whole number of milliseconds, an unknown scenario, deploy (its limit depends on the artifact size) and a scenario other than the one the run uses.
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.
Description
Someone who runs the capacity tests wants to ask a narrower question than the default limit allows: "does resolve still hold at 200 ms?" Until now the answer meant editing the shared threshold file, which would then change every run that came after it, not only the one being looked at.
With this change a run takes
--threshold <scenario>=<ms>and uses that limit for its own scenario only. The other limits keep their declared values, and the result stays comparable with the runs that used the default. A value that does not make sense is refused before any load is sent, so a typo cannot quietly produce a run with the wrong limit.The flag is documented next to the other runner options in the load test guide. Closes no issue; it implements the threshold override of the
add-load-testschange.Type of change
fix- bug fixfeat- new featurerefactor- internal change without behaviour changeperf- performance improvementdocs- documentation onlytest- tests onlybuild/ci/chore- tooling, dependencies, pipelinesHow was this tested?
Unit tests first, written red and then made green. They cover that the override applies to the named scenario only, that the plateau verdicts and the breakpoint abort use it, and that a value that is not a positive whole number of milliseconds, an unknown scenario, deploy, a second flag or a scenario other than the run's is refused.
No cluster run was started. The Gradle build is not involved, because
loadtest/is a separate TypeScript project.Checklist
CLAUDE.md(English, imperative, one offeat,fix,docs,refactor,test,build,ci,chore,perf)./gradlew buildpasses locally (not applicable:loadtest/does not use Gradle; the TypeScript checks are listed above)