Open nkaretnikov opened 6 months ago
Pinging @dcmcand and @peytondmurray as they have been looking into testing for conda-store
How does this align with other testing improvements planned?
I'll defer to @dcmcand on this as I don't yet have the context to know what the current experience is. It sounds like any time we release a new database migration we need to manually test that nothing breaks. If this is the case, I can definitely see how implementing a workflow to trigger on migrations would be useful.
Context
One thing that takes a lot of time right now is checking that existing installations are not broken. This is currently done by hand, which takes a lot of time and is error-prone.
The goal of this issue is to shift responsibility from the PR author to the testing infrastructure.
It needs to be done as part of CI instead. It could work something like this:
Value and/or benefit
Goals:
This will improve both the quality and the development/iteration speed, which will translate into getting more features in after this initial time investment.
Anything else?
Our unit-tests currently run only on SQLite. We need to add a Postgres DB that will execute the same tests.
conda-store can be configured to use postgres like this:
It first requires:
password
listed aboveconda-store
database to Postgres.Note that we do have API tests that use Docker/Postgres, but that's different because not everything can be tested via those APIs.
Both SQLite and Postgres need to be tested via unit tests because these DBs have some incompatibilities.
For example: