steve-chavez
781fa592ca
refactor: delete QueryCost, instead use PlanSpec
2022-12-12 13:31:02 -05:00
Wolfgang Walther
425ab70ec7
fix: Make UPSERT work with PostgreSQL 15
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-28 16:18:42 +02:00
Wolfgang Walther and Wolfgang Walther
772d3c4e01
chore: Update cachix actions
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-10-27 21:54:30 +02:00
dependabot[bot] and Steve Chavez
df538bfd98
build(deps): bump LouisBrunner/checks-action from 1.3.1 to 1.5.0
...
Bumps [LouisBrunner/checks-action](https://github.com/LouisBrunner/checks-action ) from 1.3.1 to 1.5.0.
- [Release notes](https://github.com/LouisBrunner/checks-action/releases )
- [Commits](https://github.com/LouisBrunner/checks-action/compare/v1.3.1...v1.5.0 )
---
updated-dependencies:
- dependency-name: LouisBrunner/checks-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-24 09:37:56 -05:00
dependabot[bot] and Steve Chavez
e564ed6e3e
build(deps): bump codecov/codecov-action from 3.1.0 to 3.1.1
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3.1.0...v3.1.1 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-26 12:12:12 -05:00
dependabot[bot] and Steve Chavez
bb52fb9b0e
build(deps): bump LouisBrunner/checks-action from 1.2.0 to 1.3.1
...
Bumps [LouisBrunner/checks-action](https://github.com/LouisBrunner/checks-action ) from 1.2.0 to 1.3.1.
- [Release notes](https://github.com/LouisBrunner/checks-action/releases )
- [Commits](https://github.com/LouisBrunner/checks-action/compare/v1.2.0...v1.3.1 )
---
updated-dependencies:
- dependency-name: LouisBrunner/checks-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-09-07 11:02:48 -05:00
Robert Vollmert
74ee6cd674
fix naming of stack builds (they don't test)
2022-09-05 23:27:41 +02:00
Robert Vollmert
90eaaefe12
upgrade to fork of hasql-pool 0.7.2 ( fixes #2401 )
...
This version of hasql-pool is a simplified rewrite that doesn't use
the resource-pool package. The major API changes are that idle
connections are no longer timed out (and the corresponding setting
is gone), and that `release` makes the pool unusable, where it used
to remain usable and only flushed idle connections.
We depend on a PostgREST fork of 0.7.2 that gives us reliable
flushing, compare https://github.com/PostgREST/hasql-pool/pull/1
- hasql-pool 0.7 removes timing out of idle connections, so
this change removes the db-pool-timeout option.
Given that we were typically running with very high
timeout settings, I don't anticipate the lack of timeout
to introduce new issues, though we might want to consider
introducing some retry-logic down the line when we
encounter connection failures.
- See https://github.com/PostgREST/postgrest/issues/2422 for a
discussion on depending on a forked dependency. Besides adding
the dependency to the nix overlay, we're also adding it to
stack.yaml and a new cabal.project to allow stack/cabal users
to build the project.
2022-08-29 14:55:09 +02:00
Robert Vollmert
3b290d524c
Add a CI check for building with Cabal
...
The idea is that this ensures
1. that it's easy for contributers to hack on PostgREST without
getting nix set up
2. we see things break more easily outside the very controlled nix
environment (e.g. it would be easy to add a GHC 9.4.2 build here)
2022-08-24 23:50:00 +02:00
Robert Vollmert
906fac2dd6
Consistently use the same checkout action
2022-08-24 23:50:00 +02: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
e4cdb8c491
ci: run on branches starting with "rel-"
2022-05-30 22:38:05 -05:00
Laurence Isla and Steve Chavez
c812a3fe3e
ci: Run ARM builds on releases
2022-05-16 18:10:36 -05:00
Laurence Isla and GitHub
867f2569a0
ci: Fix Windows build using Stack
...
Added PostgreSQL binaries to the PATH and removed the use of msys2-keyring
2022-05-05 00:06:00 -05:00
dependabot[bot] and Steve Chavez
b191431530
build(deps): bump codecov/codecov-action from 3.0.0 to 3.1.0
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3.0.0...v3.1.0 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-25 12:24:38 -05:00
Laurence Isla and GitHub
9bdb4e5c4f
ci: remove armv7 architectures for ARM builds
...
Now only builds aarch64 on the remote server without Docker
2022-04-23 20:30:07 +02:00
Laurence Isla and GitHub
bc7d54c7d2
Add CI for ARM architectures ( #2127 )
2022-04-18 17:40:32 +02:00
dependabot[bot] and Wolfgang Walther
a768bcbf20
build(deps): bump codecov/codecov-action from 2.1.0 to 3.0.0
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 2.1.0 to 3.0.0.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v2.1.0...v3.0.0 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-04-11 08:23:26 +02:00
dependabot[bot] and Wolfgang Walther
cb145271ac
build(deps): bump actions/cache from 2.1.7 to 3
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2.1.7 to 3.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.7...v3 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-03-28 07:45:07 +02:00
Laurence Isla and GitHub
9124dfd427
Bypass FreeBSD builds due to timeouts
2022-03-26 15:14:54 -05:00
dependabot[bot] and GitHub
c803c4d0b6
build(deps): bump actions/checkout from 2.4.0 to 3 ( #2186 )
2022-03-08 01:56:58 +01:00
dependabot[bot] and GitHub
8aef09574c
build(deps): bump actions/upload-artifact from 2.3.1 to 3 ( #2187 )
2022-03-08 01:46:30 +01:00
dependabot[bot] and GitHub
efcc93ad89
build(deps): bump actions/download-artifact from 2.1.0 to 3 ( #2185 )
2022-03-07 22:54:47 +01:00
Wolfgang Walther and Wolfgang Walther
0ea36fc039
ci: Fix windows build failing because of outdated keyring
...
Signed-off-by: Wolfgang Walther <walther@technowledgy.de >
2022-01-28 17:12:32 +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
1e9031573c
test: Move io-tests SQL fixtures to a separate file
2022-01-04 09:36:22 +01:00
dependabot[bot] and GitHub
cc8a7ef0c2
build(deps): bump actions/upload-artifact from 2.3.0 to 2.3.1 ( #2094 )
2021-12-20 10:54:13 -05:00
dependabot[bot] and Steve Chavez
1c7ca51308
build(deps): bump actions/upload-artifact from 2.2.4 to 2.3.0
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 2.2.4 to 2.3.0.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](https://github.com/actions/upload-artifact/compare/v2.2.4...v2.3.0 )
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-13 12:43:16 -05:00
dependabot[bot] and Steve Chavez
6a3f8ca828
build(deps): bump actions/download-artifact from 2.0.10 to 2.1.0
...
Bumps [actions/download-artifact](https://github.com/actions/download-artifact ) from 2.0.10 to 2.1.0.
- [Release notes](https://github.com/actions/download-artifact/releases )
- [Commits](https://github.com/actions/download-artifact/compare/v2.0.10...v2.1.0 )
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-13 12:42:53 -05:00
Wolfgang Walther and Steve Chavez
9c6597c351
ci: Use matrix strategy to test against postgres versions
2021-11-27 13:15:42 -05:00
Wolfgang Walther and Steve Chavez
defdcb85ef
ci: Run IO tests against all postgres versions
...
Resolves #1820 .
2021-11-27 13:15:42 -05:00
Wolfgang Walther and Steve Chavez
94115ff134
ci: Disable update of dockerhub description on release
...
This is not allowed via personal access token right now and could be re-enabled in the future, once solved by docker hub.
2021-11-27 13:11:30 -05:00
Wolfgang Walther and Wolfgang Walther
32ff9dfb48
nix(feat): Add postgrest-loadtest
2021-11-27 10:57:29 +01:00
Wolfgang Walther
19c3ee2143
ci: Fix target commit for report workflow
2021-11-26 08:01:00 +01:00
Wolfgang Walther
81f9bf290c
ci: Fix permissions for report workflow
2021-11-24 23:01:33 +01:00
Wolfgang Walther and Wolfgang Walther
dbef11869c
ci: Add report workflow ahead of #1812
2021-11-24 21:23:57 +01:00
Wolfgang Walther and Wolfgang Walther
a65ac9b0f6
feat: drop support for pg 9.5
2021-11-24 19:42:53 +01:00
dependabot[bot] and Wolfgang Walther
2f239b9048
build(deps): bump actions/cache from 2.1.6 to 2.1.7
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v2.1.7 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-24 18:55:38 +01:00
Wolfgang Walther and Wolfgang Walther
c3854e7c74
ci: Add dependabot config for auto updates of github actions
2021-11-24 18:41:32 +01:00
Wolfgang Walther and Wolfgang Walther
1981160536
ci: Use include in stack build matrix
2021-11-21 21:53:24 +01:00
Wolfgang Walther and Wolfgang Walther
f3eb8a317d
ci: Disable fail-fast in stack matrix to keep other builds alive on failure
2021-11-21 21:53:24 +01:00
Wolfgang Walther and Wolfgang Walther
7aedebecee
ci: Visually separate jobs in workflow file
2021-11-21 18:40:42 +01:00
Wolfgang Walther and Wolfgang Walther
d5afdc7c53
ci: Use matrix strategy to build with stack
2021-11-21 18:40:42 +01:00
Wolfgang Walther and Wolfgang Walther
b7c261f520
ci: Update actions
2021-11-21 18:40:42 +01:00
Wolfgang Walther and Wolfgang Walther
f333305491
ci: Add setup-nix action to reuse nix-related code
2021-11-21 18:40:42 +01:00
Wolfgang Walther and Wolfgang Walther
88283801cb
ci: Limit release job permissions to minimum required
2021-11-21 18:40:42 +01:00
monacoremo
43c8bde8ce
refactor: Add doctests
2021-11-13 04:07:46 +01:00
laurenceisla and GitHub
627c3c34b7
feat: Make GUC names for headers, cookies and jwt claims compatible with PostgreSQL v14
...
Getting the value for a header GUC on PostgreSQL v14 is done using `current_setting('request.headers')::json->>'name-of-header'` and in a similar way for `request.cookies` and `request.jwt.claims`
PostgreSQL versions below 14 can opt in to the new JSON GUCs by setting the `db-use-legacy-gucs` config option to false (true by default)
2021-10-12 12:58:52 -05:00
monacoremo
add95c32ca
ci: Fix triggering events and release actions
...
* Run CI only on pull requests, push to main and push
to tags matching v*. This avoids running the CI more than
once for a single user action
* Change pre-releases, which are now identified by a version
number with 4 components (e.g., 1.1.1.1)
* Change how release artifacts are packaged, ensuring they
are executable and compressed with xz
2021-09-23 22:36:58 +02:00