Add a way to bypass the version check on deb installations in deployments
Problem
When deploying 16.0.0-rc42
to pre
, several jobs failed with messages like:
TASK [*pre 16.0.0-rc42.ee.0* Stat the cached deb /var/cache/deploy-tooling/deb/gitlab-ee_16.0.0-rc42.ee.0_amd64.deb to determine install method] ***
ok: [deploy-01-sv-pre]
Wednesday 17 May 2023 17:46:02 +0000 (0:00:11.908) 0:00:49.587 *********
FAILED - RETRYING: *pre 16.0.0-rc42.ee.0* Install gitlab-ee package from deb file (3 retries left).
FAILED - RETRYING: *pre 16.0.0-rc42.ee.0* Install gitlab-ee package from deb file (2 retries left).
FAILED - RETRYING: *pre 16.0.0-rc42.ee.0* Install gitlab-ee package from deb file (1 retries left).
TASK [*pre 16.0.0-rc42.ee.0* Install gitlab-ee package from deb file] **********
fatal: [deploy-01-sv-pre]: FAILED! => changed=false
attempts: 3
msg: A later version is already installed
Previously, an auto-deploy version was deployed to pre
: 16.0.202305160805-4e860c046f2.b3511eb83a9
16.0.2023... was read as a higher version than 16.0.0, triggering these failures. More information is included in production#14421 (closed).
Proposal
Add a way to bypass or override this version check so we can force a specific version to pre
and any other environments that may have the same check