-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6170 from BacLuc/performance-measurement
Performance measurement
- Loading branch information
Showing
11 changed files
with
1,160 additions
and
1 deletion.
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
17 changes: 17 additions & 0 deletions
17
.helm/ecamp3/files/hook_db_restore/update-support-email.sh
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,17 @@ | ||
set -e | ||
|
||
tmpfile=$(mktemp) | ||
|
||
cat << 'EOF' | tee -a $tmpfile | ||
BEGIN; | ||
WITH profile as (SELECT id from profile WHERE email = '[email protected]'), | ||
update_password as (UPDATE "user" SET password = '$2y$13$KTCSklVQHNvbwJQ3Awl8Ee7t0wJB1gfRBXDANeQlBblqwJ4wgOEmC' WHERE profileid = (SELECT id FROM profile)), | ||
update_email as (UPDATE "profile" SET email = '[email protected]' WHERE id = (SELECT id FROM profile)) | ||
SELECT 1; | ||
COMMIT; | ||
EOF | ||
|
||
psql $DATABASE_URL -v ON_ERROR_STOP=1 < $tmpfile |
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 @@ | ||
/node_modules |
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,14 @@ | ||
# Performance tests | ||
|
||
Run tests | ||
|
||
```shell | ||
docker compose run --rm performance-test run --quiet script.js | jq --sort-keys > output.json | ||
``` | ||
|
||
Run tests once to debug | ||
|
||
|
||
```shell | ||
docker compose run --rm -e VUS=1 -e ITERATIONS=1 performance-test run script.js | ||
``` |
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,12 @@ | ||
services: | ||
performance-test: | ||
image: grafana/k6:0.53.0 | ||
volumes: | ||
- .:/app | ||
user: ${USER_ID:-1000} | ||
network_mode: host | ||
working_dir: /app | ||
# environment: | ||
# - K6_WEB_DASHBOARD=true | ||
ports: | ||
- '5665:5665' |
Oops, something went wrong.