Wolfgang Walther
868913d179
ci: Replace seed cachix workflow with new daemon mode
...
cachix-action v14 added a new daemon mode, which pushes new derivations to the store
as soon as they have been built. This replaces the seed cachix workflow nicely by just
pushing from all jobs directly.
2024-02-06 10:20:02 +01:00
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 and Wolfgang Walther
ea02729ebd
nix: Use -split-sections with pkgsStatic to make static executable smaller again
...
This works around https://github.com/NixOS/nixpkgs/issues/286285 to use -split-sections
in a cross-compiling scenario. This will reduce the size of the static executable and also
remove the remaining references to /nix/store/.. reducing closure size dramatically.
This also fixes the docker image blowing up in size since we switched to pkgsStatic.
2024-02-06 10:19:31 +01:00
Wolfgang Walther and Wolfgang Walther
9fe0f50709
ci: Add freebsd executable to releases
...
This was temporarily disabled, because of timeouts in Cirrus. This seems to work well again.
2024-02-06 10:19:31 +01:00
Wolfgang Walther and Wolfgang Walther
1c02e1e3a0
ci: Prevent creating artifact for dynamic ubuntu build
...
This is not used in the release process anyway, because we are using the static build.
2024-02-06 10:19:31 +01:00
Wolfgang Walther and Wolfgang Walther
7d096e5de5
ci: Update stack.yaml.lock
2024-02-06 10:19:31 +01:00
Wolfgang Walther and Wolfgang Walther
0eca2954b3
ci: Reduce file size of cabal and stack based builds
...
By passing -split-sections to all dependencies, GHC will link only the
modules we actually use and not the full package for each dependency.
This does neither work on MacOS nor Windows, thus we don't do it for
stack right now.
Stripping unused symbols in CI will further decrease the size of those files.
2024-02-06 10:19:31 +01:00
Wolfgang Walther and Wolfgang Walther
cc9b725005
nix: Remove libkrb5 references from static executable
2024-02-06 10:19:31 +01:00
Wolfgang Walther and Wolfgang Walther
4a1b9a4609
nix: Remove libpq reference from static executable
2024-02-06 10:19:31 +01:00
Wolfgang Walther and Wolfgang Walther
f51090f3d1
nix: Check static executable for /nix/store references
...
This makes the static build fail in case any references to the nix store
are left over. Those will increase the closure size of the nix derivation
massively and lead to a huge docker image.
At the same time, those references will not be functional on non-nix systems,
to which the static executable is distributed, anyway.
2024-02-06 10:19:31 +01:00
Ivan Kasatenko and GitHub
71887e4b78
feat: dump config through Admin API
2024-02-05 19:16:05 -05:00
Andrei Dziahel and Wolfgang Walther
a45058ba02
ci: reuse more previous caches (Nix & Stack)
2024-02-05 21:51:32 +01:00
Wolfgang Walther
310d04065e
test: Make failing loadtest fixtures pass again
...
PR #2358 added a bulk insert to the loadtest. However this broke the regular insert test,
which just returned 400 Bad Request because of a missing PK value since. Adding the new
id column in the payload to the ?columns= argument fixes that.
2024-02-05 21:40:21 +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
steve-chavez
45cabacdcc
fix: wrong subquery error returning as 400 status
2024-02-02 22:08:56 -05:00
dependabot[bot] and GitHub
bbc0bda6f5
build(deps): bump LouisBrunner/checks-action from 1.6.2 to 2.0.0 ( #3195 )
2024-01-29 09:35:22 -05:00
dependabot[bot] and GitHub
c1b46ffa1b
build(deps): bump codecov/codecov-action from 3.1.4 to 3.1.5 ( #3196 )
2024-01-29 09:34:33 -05:00
Laurence Isla and GitHub
439db880dd
Simplify htmx how-to functions using Pico CSS and Ionicons
2024-01-26 20:28:58 -05:00
Wolfgang Walther and Wolfgang Walther
43f552dbab
ci: Improve caching for static and dynamic postgrest nix packages
2024-01-26 23:24:12 +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
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
Wolfgang Walther
071a3d436f
ci: Fix Seed-Cachix jobs on linux
2024-01-26 18:10:38 +01:00
Wolfgang Walther and Wolfgang Walther
c94aa9ccd9
fix: Build static postgrest with GSSAPI support
...
Resolves #2815
2024-01-26 17:17:05 +01:00
Wolfgang Walther and Wolfgang Walther
dcb6c5bb13
nix: Bump libpq version to link against v16
2024-01-26 17:17:05 +01:00
Wolfgang Walther and Wolfgang Walther
85fbb233a7
nix: Build only libpq instead of full postgresql package
2024-01-26 17:17:05 +01:00
Wolfgang Walther and Wolfgang Walther
259d97acee
nix: Build static postgrest executable via pkgsStatic
...
This replaces the build via static-haskell-nix and will hopefully make
it possible to cross compile in the future.
2024-01-26 17:17:05 +01:00
Wolfgang Walther and Wolfgang Walther
3a639c7172
ci: Fix FreeBSD build on cirrus
2024-01-25 21:27:17 +01:00
Wolfgang Walther and Wolfgang Walther
d75be243ac
ci: Build with GHC 9.8.1 via Cabal
2024-01-25 21:27:17 +01:00
Wolfgang Walther and Wolfgang Walther
2ffb97991d
ci: Build with GHC 9.6.4 via Cabal
...
This confirms that building with GHC 9.6.x works already, even if we can't
switch to it for the nix and stack builds, yet.
2024-01-25 21:27:17 +01:00
Wolfgang Walther and Wolfgang Walther
2e298824d6
deps: Replace postgresql-libpq fork with upstream v0.10
...
Our changes to reduce memory usage have been merged and released
upstream, so no need for the fork anymore.
2024-01-25 21:27:17 +01:00
steve-chavez
76b1c00935
docs: fix link to op modifiers
2024-01-22 23:49:59 -05: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
dependabot[bot] and Steve Chavez
820917bcb6
build(deps): bump nix-community/cache-nix-action
...
Bumps [nix-community/cache-nix-action](https://github.com/nix-community/cache-nix-action ) from 4.0.3 to 5.0.1.
- [Release notes](https://github.com/nix-community/cache-nix-action/releases )
- [Changelog](https://github.com/nix-community/cache-nix-action/blob/main/RELEASES.md )
- [Commits](https://github.com/nix-community/cache-nix-action/compare/v4.0.3...v5.0.1 )
---
updated-dependencies:
- dependency-name: nix-community/cache-nix-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-22 11:28:41 -05:00
dependabot[bot] and GitHub
02312804f0
build(deps): bump actions/cache from 3 to 4 ( #3179 )
2024-01-22 09:13:30 -05: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
Steve Chavez and GitHub
c070cb9502
Revert "build(deps): bump nix-community/cache-nix-action from 4.0.3 to 5.0.1 in /.github/actions/setup-nix" ( #3167 )
2024-01-17 17:55:38 -05:00
dependabot[bot] and GitHub
a8165a89a0
build(deps): bump nix-community/cache-nix-action ( #3135 )
2024-01-17 17:25:10 -05:00
Laurence Isla and GitHub
9ef0e677e0
Use -g to prevent globbing in some curl examples
2024-01-17 12:39:42 -05:00
Laurence Isla and GitHub
cb5d80aff8
Remove HTTP Snippets
2024-01-17 09:07:37 -05:00
Laurence Isla and GitHub
be2778edb5
Replace the term 'password' with 'secret' to clarify the Tutorial 1
2024-01-17 09:06:20 -05:00
Parashoe and Laurence Isla
0e7d507e5e
Spelling correction ( #740 )
...
Spell correct "callounter" to "callcounter"
2024-01-15 20:22:42 -05:00
Laurence Isla and GitHub
74a3217bee
Update sponsor logo
2024-01-15 20:17:55 -05:00
Laurence Isla and GitHub
e063a29212
Fix Sphinx version error in RTD ( #739 )
2024-01-15 20:09:54 -05:00
Laurence Isla and GitHub
f5fca59b2e
chore: update sponsor logo ( #3161 )
2024-01-15 20:09:42 -05:00
dependabot[bot] and GitHub
740fcdf5ab
build(deps): bump cachix/cachix-action in /.github/actions/setup-nix ( #3159 )
2024-01-15 14:54:44 -05:00
dependabot[bot] and GitHub
f864437055
Bump cachix/install-nix-action from 24 to 25 ( #737 )
2024-01-15 14:38:23 -05:00