Wolfgang Walther
74d8ddec36
nix: Make postgrest-push-cachix more efficient by passing each derivation only once
2024-02-06 10:20:02 +01:00
Wolfgang Walther
63ff6d1f15
nix: Fix postgrest-loadtest after vegeta update
...
The recent nixpkgs update gave us a new version of vegeta. This version includes a new
DNS cache features - which unfortunately doesn't play well with unix sockets. Disabling
the DNS cache makes requests succeed again.
2024-02-05 21:38:23 +01:00
Wolfgang Walther and Wolfgang Walther
c43696c9a6
nix: Move postgrest-check-static inside derivation of static package
...
This will make the static build fail if we're not producing a static binary.
2024-01-26 23:24:12 +01:00
Steve Chavez and GitHub
7a387c7a30
nix: add parallel-curl wrapper ( #3172 )
...
stock curl doesn't make it easy to make many parallel requests to a
single endpoint. The endpoint has to be repeated N times.
```
curl --parallel https://example.com https://example.com ..
```
This provides a wrapper for parallel curl. It's useful for testing
scenarios like pool timeouts.
```
parallel-curl N https://example.com
```
2024-01-18 20:03:01 -05:00
Wolfgang Walther and Wolfgang Walther
6682baebd2
nix: Update nixpkgs and build with GHC 9.4.8
2024-01-18 18:54:33 +01:00
Wolfgang Walther and Wolfgang Walther
e4c60889ee
nix: Make postgrest-nixpkgs-upgrade take the latest stable version
...
Previously this command upgraded to the latest unstable version of nixpkgs,
but this was often broken. Taking the latest stable branch should give
better results.
2024-01-18 18:54:33 +01:00
Laurence Isla and GitHub
f5fca59b2e
chore: update sponsor logo ( #3161 )
2024-01-15 20:09:42 -05:00
Laurence Isla and GitHub
4a1dee453b
chore: add new sponsor
2023-12-18 12:14:01 -05:00
Laurence Isla and Steve Chavez
e31363a325
chore: add new sponsor
2023-12-12 10:38:09 -05:00
Taimoor Zaeem and GitHub
3c1a7f2641
feat: add timezone in Prefer header ( #3024 )
...
* increase reloading timeout in io-tests
* increase memory test by 1M
2023-11-13 14:16:27 -05:00
omahs and GitHub
f10d4139fe
nix: fix typos in README
2023-11-08 11:43:42 -05:00
Laurence Isla and Steve Chavez
99b705d44f
chore: remove former sponsors
2023-11-07 16:25:47 -05:00
Laurence Isla and GitHub
379d9d6298
chore: add Neon as sponsor
2023-11-06 20:02:58 -05:00
Wolfgang Walther
6920a88dc0
nix: Fix postgrest-release on rel-branches pushing to the right branch
2023-10-25 19:09:21 +02:00
Wolfgang Walther
98bd1de1cd
nix: Allow running postgrest-release on rel- branches
2023-10-25 16:29:03 +02:00
Andrei Dziahel and Steve Chavez
fca039a54d
nix:postgrest-loadtest-against multiple branches
...
Improve postgrest-loadtest-against script to accept multiple refs
to perform loadtests against *all* of them
2023-09-21 14:08:53 -03:00
Laurence Isla and GitHub
2888f351d1
Remove former sponsor
2023-09-12 22:41:39 -05:00
steve-chavez
531a183b44
nix: postgrest-coverage notice
2023-08-17 13:43:48 -05:00
steve-chavez
739f056b0a
nix: add postgrest-repl command
2023-08-17 13:43:48 -05:00
steve-chavez
4f6c466031
nix: postgrest-run uses similar config to tests
...
Otherwise manual tests can be deceiving
2023-06-02 17:45:25 -05:00
steve-chavez
38ad8c04e1
nix: withTmpDb set search_path to test
...
It gets repetitive to set the search_path every time you go in the test
db with psql.
2023-05-22 13:46:24 -03:00
steve-chavez
a867d79c42
nix: withTmpDb psql notice can't mutate the db
...
Use the postgres role instead of the authenticator on the notice
2023-05-05 20:03:09 -03:00
steve-chavez
4fe696dd96
nix: PGRST_DB_ANON_ROLE default for postgrest-run
...
Makes manually testing a feature easier
2023-04-27 19:27:09 -05:00
steve-chavez
b0e395f495
nix: no SUPERUSER for connection role
...
Change :USER to :PGUSER in SQL scripts
2023-04-27 19:27:09 -05:00
Robert Vollmert
e731241b97
test: optionally build postgrest with cabal in postgrest-loadtest
...
By default, postgrest-with-pgrst builds postgrest as a nix package,
which means that source changes cause a full rebuild. With this
change, running the loadtest as
PGRST_BUILD_CABAL=1 postgrest-loadtest
rebuilds directly using cabal, like postgrest-build. Note that
results between nix and cabal builds aren't necessarily comparable
due to differing build parameters.
2023-03-20 15:00:11 +01:00
Robert Vollmert
216dc833fd
test: add optional latency to postgrest-loadtest
...
This pipes data between client/postgrest and between
postgrest/database through a proxy that adds delay
(github.com/robx/slocat).
2023-03-20 15:00:11 +01:00
Steve Chavez and GitHub
b05ea14122
nix: add notices for postgrest-with-* commands ( #2697 )
...
For knowing where to connect and how to get logs
2023-03-07 12:42:41 -05:00
steve-chavez
2a2889020a
nix: fix PGTZ on postgrest-with-* commands
2023-02-20 17:23:11 -05:00
steve-chavez
c49932d3a8
nix: UTC by default for postgrest-with-postgresql
2023-02-14 21:30:45 -05:00
steve-chavez
f4135bb3ff
nix: correct postgrest-release pre
2023-02-09 16:46:27 -05:00
steve-chavez
52ba757ebe
nix: postgrest-release bumps pre minor
2023-01-31 19:11:45 -05:00
Robert and GitHub
12ad7d0585
test: fix result path for load test ( #2628 )
2023-01-25 08:56:52 +01:00
Tuan Le and Steve Chavez
8aa79086d2
fix: consider authentication failure as a fatal error
2023-01-20 13:51:28 -05:00
Robert and GitHub
8f80cd1469
Update nixpkgs, dependencies ( #2612 )
...
* relax upper bounds on HTTP, hspec, lens-aeson, optparse-applicative (fixes #2580 )
* upgrade stackage snapshot to latest LTS, with GHC 9.2.5
* bump nixpkgs to 2023-01-12
* fix complaints due to updated linters
2023-01-16 17:12:54 +01:00
Robert and GitHub
5fd6b3956e
ci: Add workflow to seed cachix ( #2615 )
...
Fixes #2609 .
2023-01-16 16:56:48 +01:00
steve-chavez
781fa592ca
refactor: delete QueryCost, instead use PlanSpec
2022-12-12 13:31:02 -05:00
steve-chavez
0b1f8358c6
nix: postgrest-release modifies CHANGELOG
2022-10-28 17:52:58 -05:00
Robert Vollmert and Wolfgang Walther
b702c5fbe4
pytest_xdist -> pytest-xdist
2022-10-28 10:49:04 +02:00
Robert Vollmert and Wolfgang Walther
39959fa330
fix nixpkgs-ugprade to use correct /bin/date
2022-10-28 10:49:04 +02:00
Wolfgang Walther and Wolfgang Walther
88b5966a44
nix: Remove deprecation warning for dockerTools.buildImage { contents }
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 19:29:26 +02:00
Steve Chavez and GitHub
0fbb116dd2
add basic ARCHITECTURE.md ( #2503 )
...
* refactor: move ApiRequest a top-level module
* refactor: rename DbStructure to SchemaCache
* refactor: GucHeader inside Response
* refactor: admin app to Workers
2022-10-10 11:24:45 -05:00
Wolfgang Walther and Steve Chavez
9d3bbc736b
nix: Add hint how to derive docker image
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-09-20 16:39:37 -05:00
Robert Vollmert
bfacec3a67
ci: check python file formatting
...
Previously, postgrest-style would reformat python files, but their
formatting wasn't enforced.
2022-08-02 09:24:14 +02:00
Steve Chavez and GitHub
8911afd079
feat: Allow getting the EXPLAIN plan of a request
2022-07-27 19:33:34 -05:00
steve-chavez
df49f482dc
test: no empty tx started for invalid path/method
2022-07-15 22:23:33 -05:00
Robert Vollmert
9252ec2509
ci: verify that static executable is static
2022-07-12 23:25:06 +02:00
steve-chavez
86c40e8df9
test: don't run spec tests with stack
...
We cannot handle postgis and other postgresql dependencies with
stack.
Also delete test/with_tmp_db since it's no longer used.
2022-06-22 22:16:44 -05:00
Laurence Isla and GitHub
7088e9d510
nix: Add command to remove old hie files in postgrest-clean
2022-06-16 19:16:15 -05:00
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