Skip to content
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

Speed up CI / test (api) step #2137

Open
zone117x opened this issue Oct 23, 2024 · 1 comment
Open

Speed up CI / test (api) step #2137

zone117x opened this issue Oct 23, 2024 · 1 comment

Comments

@zone117x
Copy link
Member

This CI step takes 10+ minutes now. It's slow because all the tests run in-band (serial rather than in parallel) so that they don't clobber each other's postgres db.

The tests could be made to ran in parallel by having them use their own temporary postgres schema (a container/namespace within a database).

One approach is to create a jest setupFilesAfterEnv script that configures PG_SCHEMA:

process.env.PG_SCHEMA = crypto.randomUUID();
@diwakergupta
Copy link
Member

Is it worth exploring something like https://pglite.dev/ ? It basically allows very light-weight in-memory postgres instances for CI.

@smcclellan smcclellan moved this from 🆕 New to 📋 Backlog in API Board Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants