Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ci: Add Debian bullseye to production test suite.
Gaurav Pandey303e7b9701ef
diff --git a/.github/workflows/production-suite.yml b/.github/workflows/production-suite.ymlindex 74c9df1a5aa..73076073b30 100644--- a/.github/workflows/production-suite.yml+++ b/.github/workflows/production-suite.yml@@ -127,6 +127,11 @@ jobs:is_buster: trueos: buster+ - docker_image: zulip/ci:bullseye+ name: Bullseye production install+ is_bullseye: true+ os: bullseye+name: ${{ matrix.name }}container: ${{ matrix.docker_image }}runs-on: ubuntu-latestdiff --git a/puppet/zulip/manifests/profile/base.pp b/puppet/zulip/manifests/profile/base.ppindex e9e903a6920..adbc5e4c3ad 100644--- a/puppet/zulip/manifests/profile/base.pp+++ b/puppet/zulip/manifests/profile/base.pp@@ -24,6 +24,8 @@ class zulip::profile::base {/^9\.[0-9]*$/ => 'stretch',/^10\.[0-9]*$/ => 'buster',/^11\.[0-9]*$/ => 'bullseye',+ # This next line is temporary until bullseye releases.+ /bullseye\/sid/ => 'bullseye',# Ubuntu releases'12.04' => 'precise','14.04' => 'trusty',diff --git a/tools/ci/Dockerfile.template b/tools/ci/Dockerfile.templateindex 734b988b5e3..3d111379499 100644--- a/tools/ci/Dockerfile.template+++ b/tools/ci/Dockerfile.template@@ -105,6 +105,14 @@ RUN export git_version=$(git --version | cut -d ' ' -f3 | cut -d 'v' -f2) && \sudo apt-get install -y git; \fi+# Remove systemd package as it is not required and hinders with install+RUN if [ ! "$(dpkg-query -f='$(Version)' --show systemd)" = "" ]; then \+ apt-get remove --purge --auto-remove systemd -y && \+ echo 'Package: systemd\nPin: release *\nPin-Priority: -1' | sudo tee -a /etc/apt/preferences.d/systemd && \+ echo '\n\nPackage: *systemd*\nPin: release *\nPin-Priority: -1' | sudo tee -a /etc/apt/preferences.d/systemd && \+ echo '\nPackage: systemd:amd64\nPin: release *\nPin-Priority: -1' | sudo tee -a /etc/apt/preferences.d/systemd; \+ fi+ARG USERNAME=githubRUN groupadd --gid 3434 $USERNAME \&& useradd --uid 3434 --gid $USERNAME --shell /bin/bash --create-home $USERNAME \diff --git a/tools/ci/images.yml b/tools/ci/images.ymlindex 6b3369b0488..7e4eb9b36f9 100644--- a/tools/ci/images.yml+++ b/tools/ci/images.yml@@ -6,3 +6,6 @@ focal:buster:base_image: buildpack-deps:buster-scm++bullseye:+ base_image: buildpack-deps:bullseye-scmdiff --git a/tools/ci/production-verify b/tools/ci/production-verifyindex b5cc57ea569..57ddac896f0 100755--- a/tools/ci/production-verify+++ b/tools/ci/production-verify@@ -71,7 +71,7 @@ nginx_version="$(nginx -v 2>&1 | awk '{print $3, $4}' | xargs)"# Simplify the diff by getting replacing 4-5 digit length numbers with <Length>.sed -i 's|Length: [0-9]\+\( [(][0-9]\+[.][0-9]K[)]\)\?|Length: <Length>|' /tmp/http-headers-processed-if [ "$os_version_codename" = "buster" ]; then+if [ "$os_version_codename" = "buster" ] || [ "$os_version_codename" = "bullseye" ]; thensuccess_header_file="/tmp/success-http-headers.template.debian.txt"check_headerelse