mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	ci: Remove bullseye hack.
base-files 11.1 marked bullseye as Debian 11 in /etc/os-release. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							bf361e9951
						
					
				
				
					commit
					3b60b25446
				
			@@ -24,8 +24,6 @@ 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',
 | 
			
		||||
 
 | 
			
		||||
@@ -220,8 +220,8 @@ case "$os_id$os_version_id" in
 | 
			
		||||
Unsupported OS release: $os_id $os_version_id
 | 
			
		||||
 | 
			
		||||
Zulip in production is supported only on:
 | 
			
		||||
 - Debian 11 "bullseye" (beta)
 | 
			
		||||
 - Debian 10 "buster"
 | 
			
		||||
 - Debian 11 "bullseye" (beta)
 | 
			
		||||
 - Ubuntu 18.04 LTS "bionic"
 | 
			
		||||
 - Ubuntu 20.04 LTS "focal"
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -426,11 +426,6 @@ def parse_os_release() -> Dict[str, str]:
 | 
			
		||||
                continue
 | 
			
		||||
            k, v = line.split("=", 1)
 | 
			
		||||
            [distro_info[k]] = shlex.split(v)
 | 
			
		||||
    if distro_info["PRETTY_NAME"] == "Debian GNU/Linux bullseye/sid":
 | 
			
		||||
        # This hack can be removed once bullseye releases and reports
 | 
			
		||||
        # its VERSION_ID in /etc/os-release.
 | 
			
		||||
        distro_info["VERSION_CODENAME"] = "bullseye"
 | 
			
		||||
        distro_info["VERSION_ID"] = "11"
 | 
			
		||||
    return distro_info
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -47,21 +47,10 @@ tar -xf /tmp/zulip-server-test.tar.gz -C "$ZULIP_PATH" --strip-components=1
 | 
			
		||||
APT_OPTIONS=(-o 'Dpkg::Options::=--force-confdef' -o 'Dpkg::Options::=--force-confold')
 | 
			
		||||
apt-get update
 | 
			
		||||
 | 
			
		||||
if [ -f /etc/os-release ]; then
 | 
			
		||||
    # This is a temporary hack to test Debian Bullseye systems as
 | 
			
		||||
    # though Bullseye was already released, so we don't need to
 | 
			
		||||
    # change all of our scripts to parse bullseye/sid.
 | 
			
		||||
    check_pretty_name="$(
 | 
			
		||||
        . /etc/os-release
 | 
			
		||||
        printf '%s\n' "$PRETTY_NAME"
 | 
			
		||||
    )"
 | 
			
		||||
    { read -r pretty_name; } <<<"$check_pretty_name"
 | 
			
		||||
 | 
			
		||||
    if [ "$pretty_name" = "Debian GNU/Linux bullseye/sid" ]; then
 | 
			
		||||
        echo "VERSION_CODENAME=bullseye" | tee -a >>/etc/os-release
 | 
			
		||||
        echo "VERSION_ID=\"11\"" | tee -a >>/etc/os-release
 | 
			
		||||
if ! apt-get dist-upgrade -y "${APT_OPTIONS[@]}"; then
 | 
			
		||||
    echo "\`apt-get dist-upgrade\`: Failure occurred while trying to perform distribution upgrade, Retrying..."
 | 
			
		||||
    apt-get dist-upgrade -y "${APT_OPTIONS[@]}"
 | 
			
		||||
fi
 | 
			
		||||
    # End hack
 | 
			
		||||
 | 
			
		||||
os_info="$(
 | 
			
		||||
    . /etc/os-release
 | 
			
		||||
@@ -71,12 +60,6 @@ if [ -f /etc/os-release ]; then
 | 
			
		||||
    read -r os_id
 | 
			
		||||
    read -r os_version_id
 | 
			
		||||
} <<<"$os_info"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if ! apt-get dist-upgrade -y "${APT_OPTIONS[@]}"; then
 | 
			
		||||
    echo "\`apt-get dist-upgrade\`: Failure occurred while trying to perform distribution upgrade, Retrying..."
 | 
			
		||||
    apt-get dist-upgrade -y "${APT_OPTIONS[@]}"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Pin to PostgreSQL 10 on Bionic, so we can test upgrading it
 | 
			
		||||
if [ "$os_id $os_version_id" = 'ubuntu 18.04' ]; then
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user