-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fix all performance test flows and set group thresholds
Signed-off-by: David Poltorak <david.poltorak@iohk.io>
- Loading branch information
1 parent
a579aa9
commit ca0592b
Showing
17 changed files
with
230 additions
and
261 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
31 changes: 31 additions & 0 deletions
31
tests/performance-tests/atala-performance-tests-k6/src/scenarios/default.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/*global __ENV*/ | ||
|
||
import { Options } from "k6/options"; | ||
|
||
export const defaultOptions: Options = { | ||
setupTimeout: '120s', | ||
scenarios: { | ||
smoke: { | ||
// a simple test to ensure performance tests work and requests don't fail | ||
executor: "shared-iterations", | ||
vus: 1, | ||
iterations: 1, | ||
tags: { scenario_label: __ENV.SCENARIO_LABEL || "defaultScenarioLabel" }, // add label for filtering in observability platform | ||
}, | ||
}, | ||
thresholds: { | ||
http_req_failed: [ | ||
// fail if any requests fail during smoke test | ||
{ | ||
threshold: "rate==0", | ||
abortOnFail: true, | ||
}, | ||
], | ||
http_req_duration: [ | ||
{ threshold: "p(95)<2000", abortOnFail: true }, // 95% of requests should complete within 2 seconds | ||
{ threshold: "p(99)<5000", abortOnFail: true }, // 99% of requests should complete within 5 seconds | ||
], | ||
checks: [{ threshold: "rate==1", abortOnFail: true }], // fail if any checks fail (the checks are defined in test code which is executed) | ||
|
||
} | ||
} |
This file contains 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
Oops, something went wrong.