Allow to run CI systemtest skipping previous stages
Problem to solve
When working directly on system tests, without changing CTA's code itself, it would be nice to be able to run the CI for the tests in the branch we are working on directly without executing all the previous steps that do not provide any advantage. This will also free some resources from the shared ci runners infrastructure.
This implementation is simple and only fetches an image generated by one of the pipelines from the latest commit on main. An improvement could be to check if the current branch has any pipeline that was successfully run the build stage and use that one, if not use the one from main.
Stakeholders
- CTA Dev team
Proposal
Modify the gitlab yaml files to allow setting a CI option when pushing (or when triggering a manual run of a pipeline) so that only the system tests are executed.
The push command: git push -o ci.variable="SYSTEMTESTS_ONLY=TRUE"