Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Pin CI tooling to restore build, lint, and image loading (#5602)

Kamran Abdul Aziz2affe8932a62
diff --git a/.github/actions/load-img/action.yml b/.github/actions/load-img/action.yml
index 7a1e52d01..75430022a 100644
--- a/.github/actions/load-img/action.yml
+++ b/.github/actions/load-img/action.yml
@@ -27,7 +27,9 @@ runs:
- name: Install `@actions/artifact`
shell: bash
run: |
- pnpm install @actions/artifact -w
+ # Pinned: v6 is ESM-only and its exports map has no CommonJS entry, so
+ # the `require()` in the script below fails with ERR_PACKAGE_PATH_NOT_EXPORTED.
+ pnpm install @actions/[email protected] -w
- name: Download images
uses: actions/github-script@v7
diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml
index ac6f92e40..658b4167a 100644
--- a/.github/actions/setup-env/action.yml
+++ b/.github/actions/setup-env/action.yml
@@ -49,8 +49,9 @@ runs:
- name: Setup pnpm
if: inputs.setup_nodejs == 'true'
shell: bash
- # Fix for https://github.com/nodejs/corepack/issues/612
- run: npm install -g [email protected] && corepack enable pnpm
+ # Pinned so pnpm downloads are verified with current npm registry
+ # signing keys (https://github.com/nodejs/corepack/issues/612).
+ run: npm install -g [email protected] && corepack enable pnpm
- name: Setup Node.js
if: inputs.setup_nodejs == 'true'
diff --git a/api/Dockerfile b/api/Dockerfile
index 0722ea24d..f927b582a 100644
--- a/api/Dockerfile
+++ b/api/Dockerfile
@@ -8,7 +8,9 @@ ARG API_PY_VERSION
# Python builder #
##################
-FROM docker.io/python:${API_PY_VERSION} AS builder
+# Pin the Debian release: the audiowaveform .deb below is built for
+# Debian 12 (bookworm) and silently fails to install on newer releases.
+FROM docker.io/python:${API_PY_VERSION}-bookworm AS builder
# Get the version from the main justfile
ARG OV_PDM_VERSION
@@ -45,7 +47,7 @@ RUN pdm install --check --frozen-lockfile $PDM_INSTALL_ARGS
# API #
#######
-FROM docker.io/python:${API_PY_VERSION}-slim AS api
+FROM docker.io/python:${API_PY_VERSION}-slim-bookworm AS api
LABEL org.opencontainers.image.source="https://github.com/WordPress/openverse"
diff --git a/catalog/compose.yml b/catalog/compose.yml
index 224d3ff79..ee99785ac 100644
--- a/catalog/compose.yml
+++ b/catalog/compose.yml
@@ -67,7 +67,7 @@ services:
profiles:
- catalog_dependencies
- catalog
- image: docker.io/minio/minio:latest
+ image: docker.io/minio/minio:RELEASE.2025-09-07T16-13-09Z
ports:
- "5010:5000"
- "5011:5001"
@@ -86,7 +86,7 @@ services:
profiles:
- catalog_dependencies
- catalog
- image: docker.io/minio/mc:latest
+ image: docker.io/minio/mc:RELEASE.2025-08-13T08-35-41Z
env_file:
- .env
- ../docker/minio/.env
diff --git a/docker/minio/load_to_s3_entrypoint.sh b/docker/minio/load_to_s3_entrypoint.sh
index 00bb07d91..41606c0ce 100755
--- a/docker/minio/load_to_s3_entrypoint.sh
+++ b/docker/minio/load_to_s3_entrypoint.sh
@@ -11,7 +11,7 @@ set -euxo pipefail
# Wait for minio to be ready
sleep 5
-/usr/bin/mc config host add s3 http://s3:5000 "${MINIO_ROOT_USER}" "${MINIO_ROOT_PASSWORD}"
+/usr/bin/mc alias set s3 http://s3:5000 "${MINIO_ROOT_USER}" "${MINIO_ROOT_PASSWORD}"
cd /data
for b in */; do
echo "Loading bucket $b"
diff --git a/ingestion_server/Dockerfile b/ingestion_server/Dockerfile
index 2d4630954..6d607ea94 100644
--- a/ingestion_server/Dockerfile
+++ b/ingestion_server/Dockerfile
@@ -27,7 +27,8 @@ RUN apt-get update \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& python -m venv /venv \
- && pip install --upgrade pipenv
+ # pipenv >= 2026.4.0 rejects the existing Pipfile.lock hash (see #4658)
+ && pip install pipenv==2026.2.2
# Copy the Pipenv files into the container
COPY Pipfile Pipfile.lock /