Draft: Skip image compression depending on commit message
What does this MR do?
Make it possible to skip compression (mostly tar
commands) when building the Docker of the analyzer. To be used when working on a MR. Authors write [skip compression]
in the git commit message, compression is skipped, and the job that check the image size is allowed to fail.
Reviewers are responsible for checking whether compression has been skipped, and they shouldn't merge if that's the case.
The analyzer projects are responsible for skipping compression when the custom CI variable is set.
The goal is to iterate faster when working on a MR in the gemnasium-maven project. Right now this project runs tar
to compress asdf, and takes about 8 minutes. Now only is the Docker image available faster for ad-hoc tests, but the QA jobs also start earlier.
A bigger image has no significant negative impact on the execution of the QA jobs (downstream pipelines), and the check scan duration
jobs pass without changing the time limit. See https://gitlab.com/gitlab-org/security-products/analyzers/gemnasium-maven/-/pipelines/251535392
What are the relevant issue numbers?
None