Andrei Dziahel and Steve Chavez
b7ad217cd3
fix: unbreaks postgrest-profiled-run
...
* replaces v2-build -> v2-run (which should be v2-exec)
with one-shot v2-run
* fixes empty postgrest.prof file by sending SIGINT to the profiled
postgrest process to trigger writing it explicitly
2025-10-17 15:43:41 -05:00
Andrei Dziahel and Wolfgang Walther
c2513c8861
ci: drop directories from windows release
...
Puts windows release in line with others which have the executable on the top level
2024-09-11 19:22:37 +02:00
Andrei Dziahel and GitHub
46537879ae
feat: Add resolved host to "Listening on ..." messages ( #3560 )
...
This adds resolved host's IP to "Listening on ..." messages emitted when
app and admin servers start.
2024-08-01 11:31:35 -05:00
Andrei Dziahel and GitHub
06cbc4be36
config forbid same server-port and admin-server-port ( #3559 )
...
* fix: forbid same server-port and admin-server-port
Forbids server-port and admin-server-port from being equal altogether,
despite they might not conflict at all in case admin and app are bound
to different addresses. Implemented as per the discussion at
https://github.com/PostgREST/postgrest/issues/3508#issuecomment-2125123633
2024-07-03 13:02:02 -05:00
Andrei Dziahel and GitHub
9d7e87b3e0
feat: add the "admin-server-host" config to set the host for the admin server
2024-06-24 14:47:19 -05:00
Andrei Dziahel and Wolfgang Walther
3026c1f308
fix: Parse accept header case-insensitively
...
The Accept header is parsed case-insensitively now, introducing proper
handling of media types specified in upper- and/or mixed-case.
Fixes #3478
2024-05-09 19:30:42 +02:00
Andrei Dziahel and GitHub
3432f75ed4
fix: fixes server timings' precision ( #3227 )
...
* test: fix test_io accordingly
2024-02-14 12:26:34 -05:00
Andrei Dziahel and Wolfgang Walther
a45058ba02
ci: reuse more previous caches (Nix & Stack)
2024-02-05 21:51:32 +01:00
Andrei Dziahel and Wolfgang Walther
411cf430ad
ci: revert cache-nix-action to v4
...
Upgrading c-n-action seems to break restoring Nix store rendering the cache useless (nix-community/cache-nix-action#27 ). This rolls the change back.
2024-01-26 18:40:45 +01:00
Andrei Dziahel and Wolfgang Walther
d7246b4851
ci: nix-store --realise to tools:
...
Since we're building only tools now, we can just specify them directly
in the `tools:` parameter of `setup-nix` action.
2024-01-22 18:17:38 +01:00
Andrei Dziahel and Wolfgang Walther
286103daf2
ci: do not rebuild postgrest
...
specify outputs to cache excluding postgrest
2024-01-22 18:17:38 +01:00
Andrei Dziahel and Steve Chavez
9c78751871
ci: fix c-n-a input names
2024-01-22 11:28:41 -05:00
Andrei Dziahel and GitHub
cbfff2804d
fix: replace json parser error with generic msg ( #3090 )
2023-12-07 18:04:51 -05:00
Andrei Dziahel and Steve Chavez
41ea4e6db6
ci: cancel in-progress loadtests for PRs as well
2023-12-07 16:01:32 -05:00
Andrei Dziahel and Steve Chavez
f9294c5e43
ci: test only head of branch
2023-12-07 16:01:32 -05:00
Andrei Dziahel and GitHub
72083361bc
ci: similar jobs use a single cache for Nix stores
...
Jobs that use the setup-nix action will share a single cache, which is created by a previous warm up Job.
2023-12-05 13:57:18 -05:00
Andrei Dziahel and Steve Chavez
31ce39ba36
ci: cabal+GHC: tweak caching
...
Makes it to cache only relevant directories, adds `dist-newstyle` to prevent needless rebuilding even harder and shortens cache key name by supplying `hashFiles`multiple arguments
2023-11-28 12:48:57 -05:00
Andrei Dziahel and Steve Chavez
a72241ad4e
ci: fixes job caches not producing after recent cabal upgrade
...
Recent cabal adopted XDG guidelines and stores data
across multiple directories under $HOME.
Creating ~/.cabal manually returns old behavior and allows caching single directory again.
2023-11-28 11:52:52 -05:00
Andrei Dziahel and GitHub
7b5c2f03fc
introducing server-timing-header config parameter ( #700 )
2023-11-24 16:50:28 -05:00
Andrei Dziahel and Steve Chavez
9eda78eda5
server-port can be 0
...
Introduces special value of 0 for port to be assigned randomy
2023-11-23 22:35:28 -05:00
Andrei Dziahel and GitHub
df97a5071f
Display an actual TCP port app is bound to ( #3034 )
2023-11-23 18:17:16 -05:00
Andrei Dziahel and GitHub
c3301a1653
feat: implement server-timing-enabled config parameter ( #3064 )
2023-11-22 17:57:50 -05:00
Andrei Dziahel and GitHub
abcb21c69a
ci: cache Nix store with cache-nix-action ( #2992 )
...
* ci: try nix-community/cache-nix-action
* ci: add cache-id param to setup-nix action
* ci: tidy up cache keys for non-nix jobs
* ci: merge-nix-caches-linux job
* ci: merge caches other way around
* ci: reduce number of caches
Should prevent disk overflow
* ci: change cache id prefix for merge
* ci: comment out cache merging job
* ci: revert cache id prefix
* ci: setup-nix: use latest cache-nix-action
Among others, makes action logs look more tidy (see https://github.com/nix-community/cache-nix-action/commit/17d19d3d8be918757589635bc1a6830be0b129d2 )
* ci: use test-pg cache key for loadtest
2023-11-21 18:56:23 -05:00
Andrei Dziahel and GitHub
e977032847
build: add cabal.project.freeze ( #3004 )
2023-10-19 09:26:46 -05:00
Andrei Dziahel and GitHub
dc01c748ae
feat: add more perf counters to Server-Timing ( #2983 )
2023-10-12 09:55:30 -03:00
Andrei Dziahel and Steve Chavez
4c44782d15
refactor: complete purifying Response module
2023-09-30 09:35:50 -03:00
Andrei Dziahel and Steve Chavez
add4dfeed5
ci: loadtest PRs against latest releases
...
Leveraging the previously-improved postgrest-loadtest-against
introduces loadtesting PRS against latest release as well.
2023-09-21 14:08:53 -03: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
Andrei Dziahel and Steve Chavez
c3169b7dc2
ci: less strict conditions for loadtest inmain
2023-09-15 16:35:20 -03:00
Andrei Dziahel and Steve Chavez
30474c424c
ci: loadtest commits to main against latest release
...
Introduces loadtest job for main branch
that runs loadtest against latest release
2023-09-14 17:10:48 -03:00