Testing gitlab with Clusterwide connection, but with same database as `main`, in CI-Pipelines
To enable us to test the integration of gitlab-org/gitlab
with the current work on cells, we need to:
- Add a new label called, for example:
pipeline:run-clusterwide
- When this label exists, we need to run the unit/integration/feature tests using a new setup, which includes the
clusterwide-main
database - To implement (2), the
database.yml
file should containmain_clusterwide
in addition tomain
andci
. This possible could be done by adding a new file likeconfig/database.yml.decomposed-clusterwide-postgresql
that contains this database connection, and using it to run the tests. We should follow a2 different connections, but pointing to same database
approach here, since there are cross-join issues. Thedatabase:
ofmain_clusterwide
connection should point to the same database as that ofmain
connection. See this code
See reference MRs for hints on how to bring the change to the CI Pipelines:
Edited by Manoj M J