graphql-engine/scripts
Samir Talwar 80c977da85 server: Split the integration tests out into their own directories.
We currently have a fairly intricate way of running our PostgreSQL and MSSQL integration tests (not the API tests). By splitting them out, we can simplify this a lot. Most prominently, we can rely on Cabal to be our argument parser instead of writing our own.

We can also simplify how they're run in CI. They are currently (weirdly) run alongside the Python integration tests. This breaks them out into their own jobs for better visibility, and to avoid conflating the two.

The changes are as follows:

- The "unit" tests that rely on a running PostgreSQL database are extracted out to a new test directory so they can be run separately.
  - Most of the `Main` module comes with them.
  - We now refer to these as "integration" tests instead.
- Likewise for the "unit" tests that rely on a running MS SQL Server database. These are a little simpler and we can use `hspec-discover`, with a `SpecHook` to extract the connection string from an environment variable.
  - Henceforth, these are the MS SQL Server integration tests.
- New CI jobs have been added for each of these.
  - There wasn't actually a job for the MS SQL Server integration tests. It's pretty amazing they still run well.
- The "haskell-tests" CI job, which used to run the PostgreSQL integration tests, has been removed.
- The makefiles and contributing guide have been updated to run these.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6912
GitOrigin-RevId: 67bbe2941bba31793f63d04a9a693779d4463ee1
2022-11-17 12:56:26 +00:00
..
coalesce_run_sql [server] coalesce multiple run_sql calls in tests (#270) 2021-01-06 16:07:22 +00:00
containers Install and use ODBC Driver 18 for SQL Server (msodbcsql18). 2022-10-21 16:25:04 +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: Split the integration tests out into their own directories. 2022-11-17 12:56:26 +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 ghc 9.2.5 2022-11-15 11:26:42 +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 Demand Python 3.9 to run the server's Python integration tests. 2022-09-13 20:20:19 +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
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
probe-pg-compatibility.sh server/tests: Integrated tool to probe pg compatibility 2022-11-14 22:01:37 +00:00
tag-release.sh ci: tag release v2.11.2 and v2.12.0 2022-09-12 07:19:23 +00:00
verify-bigquery-creds.sh Extract the test harness from the Hspec tests 2022-10-04 08:31:26 +00:00