-
-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: add server tests with Postgresql #1278
Conversation
Context: some server tests succeeded when using sqlite but failed with postgresql. This commit runs the same tests using a postgresql database to ensure both database types are supported for these tests.
7f53455
to
19e315f
Compare
When Paul has noticed this regression specific to Postgresql, we thought we may also run the tests with this database in github CI. Though it does not seem to be as easy as I first thought. We have understood from @berhalak comment that you already run server tests against this database in your internal CI. Is it possible you either open-source the tests, or share with us how you run them so we can add the same logic to the Github CI, if that makes sense to you? Or do you think this work is not worth the effort? |
This is what we have:
So we repeat the These tests weren't enough to catch the |
Thanks @fflorent for your work! I've done some investigation on the failing tests. Most of the failures are timeouts due to the worse performance of Postgres (compared to SQLite). A significant number of other failures are simply chain effect. I'm willing to take this forward if you'd like to hand it over to me. As @paulfitz discussed, the scope will be limited to |
@SleepyLeslie I would be very pleased and grateful if you complete this work. Thank you very much for your investigation and your proposal to take this over! |
Sounds very wise
Something to do with the #773? Jordi fixed that with |
@fflorent Thanks for the pointer! I was able to run unmodified
I looked into that and found the environment variable I don't have write access to your fork so cannot push commits to your PR. I created a branch with my changes in our repo: https://github.com/gristlabs/grist-core/tree/add-postgresql-ci |
Excellent news!
Please don't hesitate to open another PR. I'll close this one. |
Closing in favor of #1336 |
Context
See this comment: #1205 (comment)
Some server tests succeeded when using sqlite but failed with postgresql. This commit runs the same tests using a postgresql database to ensure both database types are supported for these tests.
Proposed solution
Make the CI run server tests with Postgresql
Related issues
Has this been tested?