graphql-engine/scripts
Samir Talwar 07328fd9fc server: Automate generation and verification of Cabal files from hpack.
We currently use `hpack` to generate the Cabal files from _package.yaml_
files for the two small libraries in _server/lib_. While this is more
convenient, we also check the Cabal files into the repository to avoid
needing an extra step upon pulling changes.

In order to ensure that the Cabal files do not get out of sync with the
hpack files, this introduces a few improvements:

1.  Makefile targets to automatically generate the Cabal files without
    needing to know the correct incantation. These targets are a
    dependency of all build targets, so you can simply run
    `make build-all` and it will work.
2.  An extra comment at the top of all generated Cabal files that
    explains how to regenerate it.
3.  A `lint-hpack` Makefile target that verifies that the Cabal files
    are up-to-date.
4.  A CI job that runs `make lint-hpack`, to stop inconsistencies
    getting merged into trunk.

Most of these changes are ported from #4794.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5217
GitOrigin-RevId: d3dfbe19ec00528368d357b6d0215a7ba4062f68
2022-07-29 16:22:12 +00:00
..
coalesce_run_sql [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
containers Run both integration test suites against PostgresSQL v14 with Postgis. 2022-07-25 16:37:54 +00:00
edit-pg-dump Merge oss/master onto mono/main 2020-11-12 22:37:19 +05:30
ekg server: add support for tagged and dynamic metrics 2021-08-05 21:08:17 +00:00
make server: Automate generation and verification of Cabal files from hpack. 2022-07-29 16:22:12 +00:00
bigquery.sh server/tests: unify HASURA_BIGQUERY_SERVICE_KEY and HASURA_BIGQUERY_SERVICE_ACCOUNT env vars 2022-03-14 07:50:35 +00:00
cabal-freeze-update.sh Fix up for scripts/cabal-freeze-update.sh 2022-06-09 19:52:38 +00:00
cabal-run.sh multitenant tests: reduce reliance on env vars, use fake cabal run 2022-01-24 18:15:25 +00:00
data-sources-util.sh server: migrate to aeson-2 in preparation for ghc 9.2 upgrade 2022-06-08 15:32:27 +00:00
dev.sh Nix: Upgrade Python to the latest version. 2022-07-26 16:47:18 +00:00
dump-remote-schema.js Remote Joins: Create relationships across database and remote schemas (#2392) 2020-05-27 20:32:58 +05:30
extract-notes.sh Stable sort of extracted notes 2022-02-03 13:33:09 +00:00
generate_brand_assets_readme.sh update brand assets (#2062) 2019-04-26 10:05:52 +05:30
get-version.sh Data-Connectors SDK 2022-06-27 09:32:12 +00:00
hoogle.sh server/gardening: move local hoogle setup from Makefile to bash script 2022-03-16 10:44:01 +00:00
hpack.sh server: Automate generation and verification of Cabal files from hpack. 2022-07-29 16:22:12 +00:00
parse-pytest-backend server/tests: unify HASURA_BIGQUERY_SERVICE_KEY and HASURA_BIGQUERY_SERVICE_ACCOUNT env vars 2022-03-14 07:50:35 +00:00
performance_report.sh utils: fix scripts/performance_report.sh 2021-12-20 12:03:33 +00:00
post-release.sh ci: fix bugs faced during v2.2.0 release 2022-02-16 08:21:35 +00:00
tag-release.sh ci: fix bugs faced during v2.2.0 release 2022-02-16 08:21:35 +00:00
verify-bigquery-creds.sh server: Fix up the instructions on testing against BigQuery. 2022-06-15 09:45:19 +00:00