From 5c8112f9dd98da149e75a849f86b762e9d193683 Mon Sep 17 00:00:00 2001 From: Harsh Vardhan <184601513+harshvardhan178251@users.noreply.github.com> Date: Sat, 14 Nov 2026 20:44:50 +0530 Subject: [PATCH 1/6] ci: Remove the bullseye (Debian 11) Zulip server CI job. Bullseye is EOL: its packages were removed from deb.debian.org (apt 404) and bullseye-pgdg is likewise gone from apt.postgresql.org, so this job fails in the dependency-install step before any code is built or tested. Every recent PR in this repository has failed this job regardless of content. Re-add it (or a replacement based on the oldest supported Zulip server release) once the ci:bullseye image can be rebuilt against archive.debian.org and a PGDG replacement, or a suitable oldest-supported-server job exists. --- .github/workflows/zulip-ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml index 175d4a308..1344fad9e 100644 --- a/.github/workflows/zulip-ci.yml +++ b/.github/workflows/zulip-ci.yml @@ -20,12 +20,15 @@ jobs: fail-fast: false matrix: include: - # Bullseye ships with Python 3.9.2. - - docker_image: zulip/ci:bullseye - name: Debian 11 (Python 3.9, backend) - os: bullseye - legacy_client_interface: "4" - server_version: refs/tags/4.0 + # NOTE: the Debian 11 (bullseye) Zulip 4.0 job was removed in + # this workflow because bullseye is EOL: its packages were + # removed from deb.debian.org (apt 404) and bullseye-pgdg is + # likewise gone from apt.postgresql.org, so the job fails in the + # dependency-install step before any code is built or tested. + # Every recent PR failed this job regardless of content. Re-add + # it if the ci:bullseye image is rebuilt against + # archive.debian.org and a PGDG replacement, or replace it with + # the oldest supported Zulip server release. # Ubuntu 22.04 ships with Python 3.10.6. - docker_image: zulip/ci:jammy name: Ubuntu 22.04 (Python 3.10, backend) From b9e4c2bebe4ba96e48a1e67b1dbebbe4581eacd8 Mon Sep 17 00:00:00 2001 From: Harsh Vardhan <184601513+harshvardhan178251@users.noreply.github.com> Date: Sat, 14 Nov 2026 21:32:09 +0530 Subject: [PATCH 2/6] ci: Replace unavailable Python 3.9 with 3.10/3.13. GitHub's ubuntu-latest runner (Ubuntu 26.04) no longer provides Python 3.9 through setup-python@v6, so the static-analysis job fails at the setup step and the 3.9 matrix leg fails before any code is built or tested. Windows remains covered for 3.9-era compatibility via existing runners; Ubuntu coverage now starts at 3.10 and adds 3.13. --- .github/workflows/zulip-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/zulip-tests.yml b/.github/workflows/zulip-tests.yml index 5e3c46353..f919c6c31 100644 --- a/.github/workflows/zulip-tests.yml +++ b/.github/workflows/zulip-tests.yml @@ -16,10 +16,10 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Set up Python 3.9 + - name: Set up Python 3.10 uses: actions/setup-python@v6 with: - python-version: "3.9" + python-version: "3.10" - name: Install dependencies run: tools/provision --force @@ -35,7 +35,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v6 From f391feec670e126005d53056acc9045b1c853c2f Mon Sep 17 00:00:00 2001 From: Harsh Vardhan <184601513+harshvardhan178251@users.noreply.github.com> Date: Sat, 14 Nov 2026 21:35:36 +0530 Subject: [PATCH 3/6] requirements: Drop invalid egg fragment on the zulint dependency. Current pip rejects the '#egg=zulint==1.0.0' fragment (requires a plain requirement name without a version specifier after it), so provisioning fails in newer build environments, including the 3.13 job. The zulint package is pinned by commit hash, which is sufficient. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 3c2af8284..f243afaea 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ ruff~=0.2.2 -e ./zulip -e ./zulip_bots -e ./zulip_botserver -git+https://github.com/zulip/zulint@417b4e4971fdd5ca8e84847f1391b657b188631a#egg=zulint==1.0.0 +git+https://github.com/zulip/zulint@417b4e4971fdd5ca8e84847f1391b657b188631a mypy==1.8.0 types-httplib2 types-python-dateutil From 373a0c0c744bb2276f2bc059bdf683073e876605 Mon Sep 17 00:00:00 2001 From: Harsh Vardhan <184601513+harshvardhan178251@users.noreply.github.com> Date: Sat, 14 Nov 2026 22:03:50 +0530 Subject: [PATCH 4/6] ci: Resurrect the bullseye Zulip server CI job via archive mirrors. Bullseye is EOL and deb.debian.org pruned its pool, so the job failed in setup before any test ran; bullseye-pgdg likewise no longer exists on apt.postgresql.org. Debian's archive (archive.debian.org) still carries bullseye, bullseye-updates, and bullseye-security, and the PGDG archive (apt-archive.postgresql.org) still carries bullseye-pgdg. Point apt and the server provision script at those archives so the legacy Zulip 4.0 client-interface leg can run again instead of dropping it. --- .github/workflows/zulip-ci.yml | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml index 1344fad9e..877d076bc 100644 --- a/.github/workflows/zulip-ci.yml +++ b/.github/workflows/zulip-ci.yml @@ -20,15 +20,14 @@ jobs: fail-fast: false matrix: include: - # NOTE: the Debian 11 (bullseye) Zulip 4.0 job was removed in - # this workflow because bullseye is EOL: its packages were - # removed from deb.debian.org (apt 404) and bullseye-pgdg is - # likewise gone from apt.postgresql.org, so the job fails in the - # dependency-install step before any code is built or tested. - # Every recent PR failed this job regardless of content. Re-add - # it if the ci:bullseye image is rebuilt against - # archive.debian.org and a PGDG replacement, or replace it with - # the oldest supported Zulip server release. + # Bullseye ships with Python 3.9.2. Bullseye is EOL and its + # packages were removed from deb.debian.org, so we point apt at + # the Debian archive (see the archive-mirror setup step below). + - docker_image: zulip/ci:bullseye + name: Debian 11 (Python 3.9, backend) + os: bullseye + legacy_client_interface: "4" + server_version: refs/tags/4.0 # Ubuntu 22.04 ships with Python 3.10.6. - docker_image: zulip/ci:jammy name: Ubuntu 22.04 (Python 3.10, backend) @@ -73,6 +72,18 @@ jobs: ref: ${{ matrix.server_version }} path: server + - name: "Rewrite apt sources to the Debian and PGDG archives (bullseye is EOL)" + if: matrix.os == 'bullseye' + run: | + sed -i \ + -e 's|deb.debian.org/debian-security|archive.debian.org/debian-security|g' \ + -e 's|security.debian.org/debian-security|archive.debian.org/debian-security|g' \ + -e 's|deb.debian.org/debian|archive.debian.org/debian|g' \ + /etc/apt/sources.list + # Point the server's provision script at the archived PGDG repo; + # bullseye-pgdg no longer exists on apt.postgresql.org. + sed -i 's|apt.postgresql.org|apt-archive.postgresql.org|' server/scripts/lib/setup-apt-repo + - name: Install dependencies run: | cd server From 7c3a25003352a4196ece2d1428aa7043107b6c7b Mon Sep 17 00:00:00 2001 From: Harsh Vardhan <184601513+harshvardhan178251@users.noreply.github.com> Date: Sat, 14 Nov 2026 22:12:56 +0530 Subject: [PATCH 5/6] ci: Use sudo to rewrite apt sources in the bullseye job. The bullseye container runs its build steps as a non-root user, so sed on /etc/apt/sources.list failed with Permission denied; sudo exists in the image (the server provision uses it too). --- .github/workflows/zulip-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml index 877d076bc..bdba35d69 100644 --- a/.github/workflows/zulip-ci.yml +++ b/.github/workflows/zulip-ci.yml @@ -75,7 +75,7 @@ jobs: - name: "Rewrite apt sources to the Debian and PGDG archives (bullseye is EOL)" if: matrix.os == 'bullseye' run: | - sed -i \ + sudo sed -i \ -e 's|deb.debian.org/debian-security|archive.debian.org/debian-security|g' \ -e 's|security.debian.org/debian-security|archive.debian.org/debian-security|g' \ -e 's|deb.debian.org/debian|archive.debian.org/debian|g' \ From c9d99498877169996138221f5eb30165e20bb473 Mon Sep 17 00:00:00 2001 From: Harsh Vardhan <184601513+harshvardhan178251@users.noreply.github.com> Date: Sat, 14 Nov 2026 22:25:51 +0530 Subject: [PATCH 6/6] ci: Drop semgrep==0.50.1 from the Zulip 4.0 server checkout in the bullseye job. semgrep 0.50.1 was removed from PyPI, so provisioning the legacy Zulip 4.0 server fails at the dev requirements install step before any test runs. semgrep is a lint-only tool and is not needed for the documentation/API compatibility tests. --- .github/workflows/zulip-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml index bdba35d69..2c2ca8807 100644 --- a/.github/workflows/zulip-ci.yml +++ b/.github/workflows/zulip-ci.yml @@ -83,6 +83,9 @@ jobs: # Point the server's provision script at the archived PGDG repo; # bullseye-pgdg no longer exists on apt.postgresql.org. sed -i 's|apt.postgresql.org|apt-archive.postgresql.org|' server/scripts/lib/setup-apt-repo + # semgrep==0.50.1 was removed from PyPI; it is a lint-only + # dependency and is not needed to run the API tests. + sed -i '/^semgrep==/,/^ # via/d' server/requirements/dev.txt - name: Install dependencies run: |