Don't run with_transactions CI jobs in every pipeline
Problem
Currently, we run RSpec unit/integration/system/background_migration/migration specs twice. Once without Gitaly's transactions and once with transactions enabled in every pipeline (MR, master, maintenance). See !153597 (merged)
This was introduced to catch regressions.
Running these jobs twice does not impact pipeline duration because the CI jobs are run in parallel though it does increase the cost of running pipelines.
Proposed solution
Run only this set of specs only once per pipeline and test other configurations elsewhere.
For example:
- Run MR pipelines with transactions enabled. Run master/maintenance pipelines without transaction enabled.
- Run MR pipelines without transactions enabled. Run master/maintenance pipelines with transaction enabled.
- Any other combination
Edited by Peter Leitzen