这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@lexi-lambda
Copy link
Contributor

This PR modifies the CI configuration to always build graphql-engine with optimizations enabled, even in pull requests. I think we should do this for the following reasons:

  1. Haskell performance without optimizations can be very poor. Doing any performance-related testing against a non-optimized build is not very meaningful, and enabling optimizations could theoretically even make certain tests run faster (even if the compile times are slower).

  2. We push a Docker image with the built server that we encourage users to try, and it’s not good to encourage anyone to ever use non-optimized builds, even if they’re development versions.

  3. If we start doing automated benchmarking in CI, which we plan to, we’ll have to build an optimized version at some point anyway.

@lexi-lambda lexi-lambda added the c/server Related to server label Oct 25, 2019
@netlify
Copy link

netlify bot commented Oct 25, 2019

Deploy preview for hasura-docs ready!

Built with commit 0fe09cc

https://deploy-preview-3240--hasura-docs.netlify.com

@hasura-bot
Copy link
Contributor

Review app for commit a00e338 deployed to Heroku: https://hge-ci-pull-3240.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3240-a00e3388

@jberryman
Copy link
Collaborator

I wonder if it would be worthwhile to run the build first with -fno-code (or whatever it is), just to get a fast failure when things don't type-check?

@lexi-lambda
Copy link
Contributor Author

Don’t you think it’s pretty unlikely that people are going to be pushing code that doesn’t typecheck, anyway? Most of the value of CI is running the full test suite against all the different configurations in parallel, which is difficult to do on one’s workstation. The typechecking shouldn’t be any different in CI than it is on your machine.

@hasura-bot
Copy link
Contributor

Review app for commit 0fe09cc deployed to Heroku: https://hge-ci-pull-3240.herokuapp.com
Docker image for server: hasura/graphql-engine:pull3240-0fe09cc2

@lexi-lambda lexi-lambda merged commit d6a6490 into hasura:master Oct 30, 2019
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-3240.herokuapp.com is deleted

@lexi-lambda lexi-lambda deleted the build-server-with-optimizations branch October 30, 2019 16:08
polRk pushed a commit to polRk/graphql-engine that referenced this pull request Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/server Related to server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants