From 1fc98716fd8740af7c46847dbad8d7b94231ab66 Mon Sep 17 00:00:00 2001 From: Dmitry Kropachev Date: Mon, 5 Oct 2026 09:19:17 -0400 Subject: [PATCH] Fix: install LZ4 headers in matrix image The 3.29.12 Scylla driver requires lz4.h when building its C extensions. Add the headers to the runner image, switch archived Debian Buster sources to archive.debian.org, and update the packaging pin so the image builds with pytest 9.0.3. --- scripts/Dockerfile | 11 ++++++++--- scripts/image | 2 +- scripts/requirements.txt | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/Dockerfile b/scripts/Dockerfile index 6c631bf..2481da6 100644 --- a/scripts/Dockerfile +++ b/scripts/Dockerfile @@ -1,6 +1,11 @@ FROM python:3.10-slim-buster -RUN apt-get update \ +# Debian Buster packages have moved from deb.debian.org to the archive. +RUN sed -i \ + -e 's@deb.debian.org/debian-security@archive.debian.org/debian-security@' \ + -e 's@deb.debian.org/debian@archive.debian.org/debian@' \ + -e '/buster-updates/d' /etc/apt/sources.list \ + && apt-get -o Acquire::Check-Valid-Until=false update \ && apt-get -y install \ ca-certificates \ curl \ @@ -13,8 +18,8 @@ RUN apt-get update \ $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \ && rm -rf /var/lib/apt/lists/* -RUN apt-get -y update \ - && apt-get -y install openjdk-11-jdk-headless libev4 libev-dev patch gcc git procps python2 docker-ce-cli \ +RUN apt-get -o Acquire::Check-Valid-Until=false -y update \ + && apt-get -y install openjdk-11-jdk-headless libev4 libev-dev liblz4-dev patch gcc git procps python2 docker-ce-cli \ && pip install --upgrade pip \ && rm -rf /var/lib/apt/lists/* diff --git a/scripts/image b/scripts/image index d00774e..42385b7 100644 --- a/scripts/image +++ b/scripts/image @@ -1 +1 @@ -scylladb/scylla-python-driver-matrix:python3.10-20260330 +scylladb/scylla-python-driver-matrix:python3.10-20261005 diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 3d27fa9..cbe06de 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -1,7 +1,7 @@ six>=1.6 pytest==9.0.3 PyYAML==6.0.1 -packaging==19.0 +packaging==25.0 scales==1.0.9 mock==4.0.3 pytz==2019.1