how can we run the test in CI
just wanted to start a discussion on how we will run the tests in CI, because to me it is not clear how, when and where.
Here are some issues that we need to resolve:
- the tests depend on iapi-hack and there is no pinning of the iapi-hack version needed
- iapi-hack needs containers to be started
- the tests depend on the socket client from https://code.immerda.ch/immerda/ibox/puppet-modules/-/tree/master/ib_iapi/files, again no pinning
for 1 and 3, my solution would be to hard-code a commit hash in .gitlab-ci.yaml, I find that simpler and better for this usecase than submodules or such.
but 2 I am not sure how to deal with... I guess we could use the container config of iapi in iapi-hack as the base, then start a postgres container as service, then have a modified setup.rb
which just fills in the db and creates the config for the iapi, then we can start iapi and run the tests. is there an easier/cleaner way which does not require yet another mode of setting up the environment?