Skip to content

Commit

Permalink
debug failing loadtest
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther committed Jan 1, 2022
1 parent 750da05 commit 8c4bf37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/loadtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
run: |
postgrest-loadtest-against main
postgrest-loadtest-report > loadtest/loadtest.md
- name: Setup upterm session
uses: lhotari/action-upterm@v1
if: always()
- name: Upload report
uses: actions/[email protected]
with:
Expand Down
3 changes: 1 addition & 2 deletions nix/tools/loadtest.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ let
${withTools.withPg} --fixtures "$_arg_testdir"/fixtures.sql \
${withTools.withPgrst} \
sh -c "cd \"$_arg_testdir\" && ${runner} -targets targets.http \"''${_arg_leftovers[@]}\"" \
| tee "$_arg_output" \
| ${vegeta}/bin/vegeta report -type=text
| tee "$_arg_output"
'';

loadtestAgainst =
Expand Down
5 changes: 1 addition & 4 deletions test/io-tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,10 +799,7 @@ def test_admin_not_found(defaultenv):
def test_log_level(level, has_output, defaultenv):
"log_level should filter request logging"

env = {
**defaultenv,
"PGRST_LOG_LEVEL": level
}
env = {**defaultenv, "PGRST_LOG_LEVEL": level}

with run(env=env) as postgrest:
response = postgrest.session.get("/")
Expand Down

0 comments on commit 8c4bf37

Please sign in to comment.