Skip to content

CI: Pin shellcheck on bookworm to a different version

Peter Leitzen requested to merge pl-shellcheck-bookworm into master

What does this MR do and why?

This MR pin shellcheck to 0.9.0 for Debian bookworm and to 0.7.1 on bullseye to workaround gitlab-org/quality/engineering-productivity/master-broken-incidents#5270 (closed).

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

$ docker run --rm -it debian:bookworm bash
root@c11e68e4e70a:/# apt update && apt install -y shellcheck=0.7.1-1+deb11u1 || apt install -y shellcheck=0.9.0-1
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8786 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [12.7 kB]
Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [137 kB]
Fetched 9187 kB in 1s (6441 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package shellcheck is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Version '0.7.1-1+deb11u1' for 'shellcheck' was not found
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  shellcheck
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2621 kB of archives.
After this operation, 19.4 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 shellcheck amd64 0.9.0-1 [2621 kB]
Fetched 2621 kB in 0s (10.1 MB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package shellcheck.
(Reading database ... 6098 files and directories currently installed.)
Preparing to unpack .../shellcheck_0.9.0-1_amd64.deb ...
Unpacking shellcheck (0.9.0-1) ...
Setting up shellcheck (0.9.0-1) ...
root@c11e68e4e70a:/# shellcheck -V
ShellCheck - shell script analysis tool
version: 0.9.0
license: GNU General Public License, version 3
website: https://www.shellcheck.net
root@c11e68e4e70a:/#
exit
peter@happy ~/devel/gitlab/gdk/gitlab on (master ?M)
$ docker run --rm -it debian:bullseye bash
root@ae11837daf4b:/# apt update && apt install -y shellcheck=0.7.1-1+deb11u1 || apt install -y shellcheck=0.9.0-1
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 Packages [8068 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages [267 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [18.8 kB]
Fetched 8562 kB in 1s (5979 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  shellcheck
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2049 kB of archives.
After this operation, 15.4 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 shellcheck amd64 0.7.1-1+deb11u1 [2049 kB]
Fetched 2049 kB in 0s (9629 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package shellcheck.
(Reading database ... 6670 files and directories currently installed.)
Preparing to unpack .../shellcheck_0.7.1-1+deb11u1_amd64.deb ...
Unpacking shellcheck (0.7.1-1+deb11u1) ...
Setting up shellcheck (0.7.1-1+deb11u1) ...
root@ae11837daf4b:/#
Edited by Peter Leitzen

Merge request reports