From f9310d55187e99e68c1c7b6128867dfb6e2d0356 Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Mon, 22 Sep 2025 12:03:44 -0700 Subject: [PATCH 1/2] Fix github actions runner failures due to debian buster packages only being available on archive. --- .github/workflows/check_migrations_sqlite.yml | 3 +++ .github/workflows/tox.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/check_migrations_sqlite.yml b/.github/workflows/check_migrations_sqlite.yml index 0ee1c1c7..090c8163 100644 --- a/.github/workflows/check_migrations_sqlite.yml +++ b/.github/workflows/check_migrations_sqlite.yml @@ -24,6 +24,9 @@ jobs: - name: Install build dependencies if: ${{ needs.pre_job.outputs.should_skip != 'true' }} run: | + echo "deb http://archive.debian.org/debian-archive/debian/ buster main" > /etc/apt/sources.list + echo "deb http://archive.debian.org/debian-archive/debian-security/ buster/updates main" >> /etc/apt/sources.list + echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf.d/99archive apt-get -y -qq update apt-get install -y build-essential tcl - name: Build SQLite 3.25.3 diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index ad893ec9..09d66222 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -121,6 +121,9 @@ jobs: - name: Install system dependencies if: ${{ needs.pre_job.outputs.should_skip != 'true' }} run: | + echo "deb http://archive.debian.org/debian-archive/debian/ buster main" > /etc/apt/sources.list + echo "deb http://archive.debian.org/debian-archive/debian-security/ buster/updates main" >> /etc/apt/sources.list + echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf.d/99archive apt-get -y -qq update apt-get install -y openssl libssl-dev - name: Install tox From 74b48b868ffb027a497ef302ac772a9c09c7307e Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Mon, 22 Sep 2025 12:25:08 -0700 Subject: [PATCH 2/2] Update SQLite workflow to use locally committed tarball to avoid browser verification issues during wget. --- .gitattributes | 1 + .github/workflows/check_migrations_sqlite.yml | 9 +++++---- tests/SQLite-89e099fb.tar.gz | 3 +++ 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 .gitattributes create mode 100644 tests/SQLite-89e099fb.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..38f3a830 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +tests/SQLite-89e099fb.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/check_migrations_sqlite.yml b/.github/workflows/check_migrations_sqlite.yml index 090c8163..3674c15b 100644 --- a/.github/workflows/check_migrations_sqlite.yml +++ b/.github/workflows/check_migrations_sqlite.yml @@ -20,7 +20,6 @@ jobs: container: image: python:3.7-buster steps: - - uses: actions/checkout@v4 - name: Install build dependencies if: ${{ needs.pre_job.outputs.should_skip != 'true' }} run: | @@ -28,14 +27,16 @@ jobs: echo "deb http://archive.debian.org/debian-archive/debian-security/ buster/updates main" >> /etc/apt/sources.list echo "Acquire::Check-Valid-Until \"false\";" > /etc/apt/apt.conf.d/99archive apt-get -y -qq update - apt-get install -y build-essential tcl + apt-get install -y build-essential tcl git-lfs + - uses: actions/checkout@v4 + with: + lfs: true - name: Build SQLite 3.25.3 if: ${{ needs.pre_job.outputs.should_skip != 'true' }} run: | # Following the instructions from https://til.simonwillison.net/sqlite/ld-preload # to build SQLite from source, using version 3.25.3 - wget https://www.sqlite.org/src/tarball/89e099fb/SQLite-89e099fb.tar.gz - tar -xzvf SQLite-89e099fb.tar.gz + tar -xzvf tests/SQLite-89e099fb.tar.gz cd SQLite-89e099fb CPPFLAGS="-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_RTREE=1" ./configure make diff --git a/tests/SQLite-89e099fb.tar.gz b/tests/SQLite-89e099fb.tar.gz new file mode 100644 index 00000000..9acd3b8a --- /dev/null +++ b/tests/SQLite-89e099fb.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:645b0ae19827ad5aeba6a324f110b7a54a2d1c4a083d231f24618a2a64a201df +size 10004433