Wolfgang Walther
73199127bb
chore: Remove cabal.project.non-nix
...
We don't have any source-repository-package stanzas in there anymore, so there's no
need to keep it around anymore.
2024-02-26 22:06:01 +01:00
Wolfgang Walther
a090f28cea
ci: Install only the required nix tools
...
A previous commit allowed to select each tool separately on the toolbox.
This commit makes use of that for CI to possibly speed up loading from cachix
a little bit. It will also cause fewer cache misses when nix code is changed.
Resolves #3183
2024-02-26 22:06:01 +01:00
Wolfgang Walther
c7eb4036a1
nix: Export all tools on each toolbox
...
This allows targeting each tool separately for installs.
2024-02-26 22:06:01 +01:00
Wolfgang Walther
08901323a3
nix: Move parallelCurl to devTools
...
This is not a with-tool, because it doesn't wrap another command.
2024-02-26 22:06:01 +01:00
Wolfgang Walther
1db6c04a28
ci: Remove unused .github/release script
2024-02-26 22:06:01 +01:00
Wolfgang Walther
e70f001cfc
ci: Remove matrix build for GHC 9.4.8 via Cabal on Linux
...
This is to reduce storage requirements for GitHub Actions cache. We already build with GHC 9.4.x
via Nix on Linux x64, via stack on FreeBSD, MacOS and Windows and via Cabal on Linux ARM. That
should cover 9.4.x enough.
2024-02-26 22:06:01 +01:00
Wolfgang Walther
3b497a5db4
ci: Remove useless cache- prefix for cache names
...
This just makes the name longer than needed.
2024-02-26 22:06:01 +01:00
renovate[bot] and Wolfgang Walther
5bf0b9ca14
chore(deps): update codecov/codecov-action action to v4.1.0
2024-02-26 22:00:48 +01:00
Wolfgang Walther
e5aee49891
ci: Prevent Upload Reports job from running on release branches
...
This won't work, since the workflows on the backbranches are structured differently
and thus the job can't find the loadtest.md file anywhere.
2024-02-24 23:33:25 +01:00
renovate[bot] and Wolfgang Walther
873ac6221e
chore(deps): pin dependencies
2024-02-24 21:15:38 +01:00
renovate[bot] and Wolfgang Walther
f97c6e3db3
chore(deps): update dependency urllib3 to v2.2.1
2024-02-24 20:38:43 +01:00
Wolfgang Walther and Wolfgang Walther
d6153be67a
ci: Split Lint & Style from Test workflow
...
The Lint & Style job needs to run on all PRs, not only when something "test" related
changes. Otherwise not all workflow, nix or other files are style-checked and linted.
2024-02-24 20:38:25 +01:00
renovate[bot] and Wolfgang Walther
e6cde92f11
chore(deps): update dependency sphinxext-opengraph to v0.9.1
2024-02-24 20:01:04 +01:00
renovate[bot] and Wolfgang Walther
f7879bd4b1
chore(deps): update dependency docutils to v0.20.1
2024-02-24 20:00:51 +01:00
Wolfgang Walther and Wolfgang Walther
11accb760a
ci: Pass cachix token to all nix jobs
2024-02-24 19:59:46 +01:00
Wolfgang Walther and Wolfgang Walther
44e041282c
ci: Switch action-get-latest-tag to github-action-get-previous-tag
...
The former is not maintained anymore and produces deprecation warnings in CI.
2024-02-24 19:59:46 +01:00
renovate[bot] and Wolfgang Walther
f2483dc722
chore(deps): update codecov/codecov-action action to v4
2024-02-24 18:41:06 +01:00
renovate[bot] and Wolfgang Walther
c18ccf5232
chore: Switch from dependabot to renovate
...
This allows much better configuration and customization and will keep our
release branches up2date, too.
2024-02-24 18:10:30 +01:00
Wolfgang Walther and Wolfgang Walther
79e172a65c
ci: Fix failing Upload Reports job
2024-02-24 17:27:01 +01:00
Wolfgang Walther and Wolfgang Walther
b49e3b1e5b
ci: Only run ARM-related jobs if related settings are present
...
This allows CI to properly run through in a fork, which doesn't have the SSH_ARM_xxx settings.
2024-02-24 17:27:01 +01:00
Wolfgang Walther
6caaee777b
nix: Simplify static.nix
...
The enable-executable-static flag is set by default, so doesn't make a difference.
The pkg-config improvement for libpq was merged upstream, so we can use the same
here already.
2024-02-24 15:38:02 +01:00
Wolfgang Walther
86b2e59f6f
chore: Add tested-with field to postgrest.cabal
...
This documents supported GHC versions. GHC 9.8.1 is currently commented
out to reflect the fact that PostgREST can't currently be built with it
straight from hackage - we still require some overrides in cabal.project
for that.
2024-02-24 14:07:55 +01:00
Wolfgang Walther
0738785d72
test: Improve dump-schema snapshot test formatting
...
Splitting the output into separate files and adding top-level newlines makes this
much better to read and understand when looking at diffs.
Inspired by #1699
2024-02-24 14:01:19 +01:00
Wolfgang Walther and Wolfgang Walther
2c2513b9cd
deps: Use libpq v16 for freebsd build
2024-02-24 13:46:05 +01:00
Wolfgang Walther and Wolfgang Walther
9314dede2d
ci: Build with GHC 9.8.2
2024-02-24 13:37:24 +01:00
Wolfgang Walther
ccc386cf38
nix: Add deadnix to postgrest-lint and remove dead nix code
2024-02-24 13:08:04 +01:00
Wolfgang Walther
caf0a70171
nix: Clarify pkg-config usage in static.nix a bit
...
This will make it easier to make the switch from pkgsCross.libpq to pkgsStatic.libpq,
once that is possible to build upstream - if ever.
2024-02-24 12:08:40 +01:00
Wolfgang Walther
22e8906c40
nix: Run faster tasks first in postgrest-lint
...
This avoid long waiting times when waiting for the result of shellcheck or actionlint.
2024-02-23 14:02:05 +01:00
Wolfgang Walther and Wolfgang Walther
0b3f6de015
ci: Merge docs-spellcheck and docs-dictcheck jobs
...
Both jobs run really quick, running them separate is just a waste of resources. Plus,
they are semantically closely related anyway.
2024-02-22 20:12:18 +01:00
Wolfgang Walther and Wolfgang Walther
c59736b902
ci: Rename release jobs for consistency
2024-02-22 20:12:18 +01:00
Wolfgang Walther and Wolfgang Walther
19423b0c0a
ci: Only run PR workflows when files have changed
2024-02-22 20:12:18 +01:00
Wolfgang Walther and Wolfgang Walther
e9abb64fc0
ci: Split Build workflow from CI workflow
2024-02-22 20:12:18 +01:00
Wolfgang Walther and Wolfgang Walther
57ef98a316
ci: Split Test workflow from CI workflow
2024-02-22 20:12:18 +01:00
Wolfgang Walther and Wolfgang Walther
31a3864f85
ci: Remove files from arm server immediately on non-release push
...
While this duplicates code a little bit, it makes it much simpler to refactor later on.
2024-02-22 20:12:18 +01:00
Wolfgang Walther and Wolfgang Walther
073280ad32
ci: Require docs job to pass before making a release
2024-02-22 20:12:18 +01:00
Wolfgang Walther and Wolfgang Walther
333f8cf592
ci: Cancel all workflows consistently in pull requests without blocking main
...
The previous setup would cause multiple commits on main to be stuck in a pending
state, waiting for the previous run to be finished.
The new group specification is taken from:
https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
This also adds the same settings for the docs workflow.
2024-02-22 20:12:18 +01:00
Wolfgang Walther and Wolfgang Walther
f9fdf666ad
ci: Use if without ${{ }} where possible
2024-02-22 20:12:18 +01:00
Wolfgang Walther and Wolfgang Walther
c54e0d3353
ci: Use actions/download-artifact instead of dawidd6/action-download-artifact
...
The "default" action now supports downloading from different workflow runs, too, so
we might as well use it.
2024-02-22 20:12:18 +01:00
steve-chavez
3a3601cbeb
feat: log schema cache load time
2024-02-21 18:16:37 -05:00
Wolfgang Walther and Wolfgang Walther
1a141c19df
nix: Add postgrest-docs-render to render latex documents
2024-02-21 09:40:11 +01:00
Wolfgang Walther and Wolfgang Walther
b8f35d880f
docs: Fix broken redirects in api.rst
2024-02-21 09:40:11 +01:00
Wolfgang Walther and Wolfgang Walther
791b86cbf6
docs: Add note about not support Stored Procedures
...
Resolves https://github.com/PostgREST/postgrest-docs/issues/147
2024-02-21 09:40:11 +01:00
Wolfgang Walther and Wolfgang Walther
944b02fbb8
docs: Rename Stored Procedures to Functions consistently
...
This avoids confusing our RPCs with actual CREATE PROCEDURE, which we don't
support.
References https://github.com/PostgREST/postgrest-docs/issues/147
2024-02-21 09:40:11 +01:00
Wolfgang Walther and Wolfgang Walther
95b8751496
docs: Simplify SQL for user management how-tos
...
All those DROP IF EXISTS and CREATE IF NOT EXISTS etc. just give a lot more text to
read and understand. If in fact a user creates the same thing twice, they should be
able to understand the error message from postgres.
2024-02-21 09:40:11 +01:00
Wolfgang Walther and Wolfgang Walther
9b1ff2235a
docs: Simplify auth examples with OUT parameter
...
The jwt_token type was not created consistently in all examples, which can
be confusing when following those. To return an object with a single key
named token, it's enough to have an OUT parameter to the function.
Resolves https://github.com/PostgREST/postgrest-docs/issues/280
2024-02-21 09:40:11 +01:00
Steve Chavez and GitHub
7c6c056e92
refactor: make observation messages pure ( #3250 )
...
removes the observation messages from the Logger
2024-02-20 18:42:38 -05:00
Laurence Isla and GitHub
229bc77886
docs: using or across embedded resources
2024-02-20 17:15:42 -05:00
Wolfgang Walther and Wolfgang Walther
8a21a9c34e
fix: Dump media handlers and timezones with --dump-schema
...
Those were left out of the schema dump when the features were introduced, probably
because ByteString doesn't have a toJSON instance. Changing the type to Text solves
this easily.
Resolves #3237
2024-02-20 18:44:17 +01:00
Steve Chavez and GitHub
6d506df6f3
refactor: add observation module ( #3232 )
2024-02-20 12:29:33 -05:00
Taimoor Zaeem and GitHub
32e1900370
feat: dump schema cache through admin API ( #3233 )
2024-02-19 21:20:29 -05:00