Jenkinsfile: test building Debian 11 "bullseye"#213
Conversation
f84a1f7 to
8d48596
Compare
8d48596 to
3b8aa3f
Compare
|
Hmm.. interesting failure; |
|
Looks like the failure is somewhere in this region; It's renaming it to Some other warnings; probably expected (as we're creating a "pseudo version", and that's before the latest entry in "changelog" Wondering if the "may not have a revision" is related This warning is harmless, but perhaps something we should fix to reduce noise (use |
|
Looking if the problem is in this area; containerd-packaging/scripts/build-deb Lines 51 to 61 in 1da2018 $ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux bullseye/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"$ apt-get update -q && apt-get install -q -y lsb-release
$ lsb_release -sc
bullseye
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: testing
Codename: bullseye |
|
Ok, confirmed that build passes without |
|
So I tried running reproduction steps$ docker run --rm -e DEBIAN_FRONTEND=noninteractive debian:bullseye sh -c 'apt-get update -qq && apt-get install -qq -y --no-install-recommends lsb-release > /dev/null && lsb_release -a && lsb_release -sc'
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: testing
Codename: bullseye
bullseye$ docker run --rm -e DEBIAN_FRONTEND=noninteractive debian:bullseye sh -c 'apt-get update -qq && apt-get install -qq -y --no-install-recommends lsb-release > /dev/null && apt-get clean && lsb_release -a && lsb_release -sc'
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: testing
Codename: bullseye
bullseye$ docker run --rm -e DEBIAN_FRONTEND=noninteractive debian:bullseye sh -c 'apt-get update -qq && apt-get install -qq -y --no-install-recommends lsb-release > /dev/null && rm -rf /var/cache/apt && lsb_release -a && lsb_release -sc'
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: testing
Codename: bullseye
bullseye$ docker run --rm -e DEBIAN_FRONTEND=noninteractive debian:bullseye sh -c 'apt-get update -qq && apt-get install -qq -y --no-install-recommends lsb-release > /dev/null && rm -rf /var/lib/apt/lists/* && lsb_release -a && lsb_release -sc'
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: testing/unstable
Codename: n/a
n/aInteresting! Looks like removing
|
|
Further testing to see what file is needed for this to work; $ docker run -it --rm -e DEBIAN_FRONTEND=noninteractive debian:bullseye
$ apt-get update -qq && apt-get install -qq -y --no-install-recommends lsb-release > /dev/null && apt-get clean && rm -rf /var/cache/apt
$ lsb_release -sc
bullseye
$ ls -l /var/lib/apt/lists/
total 17204
drwxr-xr-x 2 _apt root 4096 Feb 19 16:09 auxfiles
-rw-r--r-- 1 root root 40083 Feb 19 14:10 deb.debian.org_debian_dists_bullseye-updates_InRelease
-rw-r--r-- 1 root root 123326 Feb 19 14:10 deb.debian.org_debian_dists_bullseye_InRelease
-rw-r--r-- 1 root root 17380409 Feb 19 13:56 deb.debian.org_debian_dists_bullseye_main_binary-amd64_Packages.lz4
-rw-r----- 1 root root 0 Feb 19 16:09 lock
drwx------ 2 _apt root 4096 Feb 19 16:10 partial
-rw-r--r-- 1 root root 44114 Feb 19 15:41 security.debian.org_debian-security_dists_bullseye-security_InRelease
$ rm -rf /var/lib/apt/lists/auxfiles /var/lib/apt/lists/partial /var/lib/apt/lists/lock
$ lsb_release -sc
bullseye
$ rm /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye-updates_InRelease
$ lsb_release -sc
bullseye
$ rm /var/lib/apt/lists/security.debian.org_debian-security_dists_bullseye-security_InRelease
$ lsb_release -sc
bullseyeSo none of the above are needed; remaining two files: $ ls -l /var/lib/apt/lists/
total 17112
-rw-r--r-- 1 root root 123326 Feb 19 14:10 deb.debian.org_debian_dists_bullseye_InRelease
-rw-r--r-- 1 root root 17380409 Feb 19 13:56 deb.debian.org_debian_dists_bullseye_main_binary-amd64_Packages.lz4And removing either of these causes $ rm /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_InRelease
$ lsb_release -sc
n/a(in a separate try) $ rm /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-amd64_Packages.lz4
$ lsb_release -sc
n/aSteps to reproduce$ docker run -it --rm -e DEBIAN_FRONTEND=noninteractive debian:bullseye
$ apt-get update -qq && apt-get install -qq -y --no-install-recommends lsb-release > /dev/null && apt-get clean && rm -rf /var/cache/apt
$ lsb_release -sc
bullseye
$ rm /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_InRelease
$ lsb_release -sc
n/a$ docker run -it --rm -e DEBIAN_FRONTEND=noninteractive debian:bullseye
$ apt-get update -qq && apt-get install -qq -y --no-install-recommends lsb-release > /dev/null && apt-get clean && rm -rf /var/cache/apt
$ lsb_release -sc
bullseye
$ rm /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_main_binary-amd64_Packages.lz4
$ lsb_release -sc
n/a |
|
So yes, the $ docker run --rm -e DEBIAN_FRONTEND=noninteractive debian:bullseye sh -c 'apt-get update -qq && cat /var/lib/apt/lists/deb.debian.org_debian_dists_bullseye_InRelease | head -n 15'
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Origin: Debian
Label: Debian
Suite: testing
Codename: bullseye
Changelogs: https://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog
Date: Fri, 19 Feb 2021 14:09:29 UTC
Valid-Until: Fri, 26 Feb 2021 14:09:29 UTC
Acquire-By-Hash: yes
No-Support-for-Architecture-all: Packages
Architectures: all amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x
Components: main contrib non-free
Description: Debian x.y Testing distribution - Not Released |
|
possibly related discussion; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845651 |
|
Right, so following that thread, this is indeed "by design"; Debian "unstable" releases use apt caching information to get the codename see discussion on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845651:
|
3b8aa3f to
9056823
Compare
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
9056823 to
928df20
Compare
Depends on: