Robert Vollmert
0c5d2e553e
nix: build postgrest with nix in loadtest ( fixes #2308 )
...
This allows running the load test against main even if the
dependencies change.
2022-06-15 00:41:38 +02:00
Robert Vollmert
34d0f34620
nix: bashCompletion -> bash-completion
2022-06-13 13:25:54 +02:00
Robert Vollmert
4dfcb59f73
nix: more explicit logging in load test
...
* Write vegeta output to file explicitly.
The previous version using `tee` captured the standard
output of the `withPgrst` helper, too, causing weird
errors when those had unexpected output.
* Log and fail the postgrest build explicitly.
In situations such as changing nix dependencies, the
`cabal build` run could fail, but this wasn't visible
in CI.
With these changes, the load test now fails with a nice
error message when the build fails.
2022-06-09 14:56:50 +02:00
steve-chavez
c399b1f5f8
nix: log all statements in temp db
2022-04-18 15:48:03 -05:00
Wolfgang Walther
c3ade07ad6
feat: Make db-anon-role optional
...
Without db-anon-role, PostgREST will block any anonymous access without hitting the database.
Resolves #1689 , Ref #1823
2022-01-22 15:59:26 +01:00
Wolfgang Walther
9ed30c0ba4
feat: Make db-uri optional
...
The default is now "postgresql://" which falls back to LIBPQ environment variables.
Resolves #1991 , Ref #1823
2022-01-22 15:13:19 +01:00
Wolfgang Walther and Wolfgang Walther
8b63d928ae
test: Reorganize test/ folder into one subdirectory for each test type
2022-01-07 13:10:36 +01:00
Wolfgang Walther and Wolfgang Walther
5f43235370
nix: Fix nested postgrest-with-postgresql-x calls when -f is used
2022-01-04 09:36:22 +01:00
Wolfgang Walther and Wolfgang Walther
5a8d9b1246
nix(feat): Add bash completion for git references
2021-11-27 10:57:29 +01:00
Wolfgang Walther and Wolfgang Walther
ab90bd24e0
nix(feat): Add postgrest-with-git and postgrest-with-pgrst tools
2021-11-27 10:57:29 +01:00
Wolfgang Walther and Remo
b7dcc63e37
nix: Simplify with_tmp_db
2021-11-24 18:06:56 +01:00
Wolfgang Walther and Remo
5874482f03
nix(fix): Database cluster not cleaned up before artifact upload
2021-08-15 12:35:52 +02:00
Wolfgang Walther and Remo
0511e99dd4
nix(refactor): Add withPath to checkedShellScript
2021-08-15 12:35:52 +02:00
Wolfgang Walther and Wolfgang Walther
c691b37f76
nix(feat): Create all temporary directories with script name template
...
Temporary directories are now created in $TMPDIR/postgrest/script-name-XXX. This allows recognizing the origin of a single temporary directory and uploading the whole $TMPDIR/postgrest folder as an artifact in CI.
2021-04-24 15:07:13 +02:00
Wolfgang Walther and Wolfgang Walther
e5350d2d50
nix(refactor): Split cabalTools from devtools
...
This allows to use `postgrest-build` in CI without pulling in a lot of dependencies.
2021-04-24 15:07:13 +02:00