From 66a2f33fa989c788fb0a4673394b5e4994b3b1f0 Mon Sep 17 00:00:00 2001 From: Vamshi Surabhi <0x777@users.noreply.github.com> Date: Fri, 12 Jul 2019 10:55:15 +0530 Subject: [PATCH] use all available cpu cores by default (#2511) Use all available cores by default. sets -N rts flag by default. Can be disabled by setting the `GHCRTS` env variable to `-N1`. --- .circleci/config.yml | 3 +++ server/graphql-engine.cabal | 1 + 2 files changed, 4 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3abddf85e9d..34ba13f93b2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -118,6 +118,8 @@ refs: - run: name: Run Python tests environment: + # hpc report seems to fail with the default -N + GHCRTS: -N1 HASURA_GRAPHQL_DATABASE_URL: 'postgres://gql_test:@localhost:5432/gql_test' HASURA_GRAPHQL_DATABASE_URL_2: 'postgres://gql_test:@localhost:5432/gql_test2' GRAPHQL_ENGINE: '/build/_server_output/graphql-engine' @@ -399,6 +401,7 @@ jobs: - image: hasura/graphql-engine-console-builder:v0.3 environment: CYPRESS_KEY: 983be0db-0f19-40cc-bfc4-194fcacd85e1 + GHCRTS: -N1 - image: circleci/postgres:10-alpine-postgis environment: POSTGRES_USER: gql_test diff --git a/server/graphql-engine.cabal b/server/graphql-engine.cabal index bfd692ae03a..f44c5a28f98 100644 --- a/server/graphql-engine.cabal +++ b/server/graphql-engine.cabal @@ -364,3 +364,4 @@ executable graphql-engine -Wincomplete-uni-patterns -Wredundant-constraints -threaded -rtsopts + -with-rtsopts=-N