From 0b2a961fbd0710c744938b53dd429f8c654d933c Mon Sep 17 00:00:00 2001 From: Svetlana Perekrestova <32782746+SPerekrestova@users.noreply.github.com> Date: Sat, 23 May 2026 15:12:39 +0200 Subject: [PATCH] Fix HF Space DDInter build defaults --- Dockerfile | 6 +++--- tests/test_tier1_benchmark_workflow.py | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9e50331..7b28895 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,9 +20,9 @@ FROM python:3.12-slim AS db-downloader WORKDIR /app/data # Download a pinned DDInter SQLite DB from the project's release source. -ARG INTERACTION_DB_REPO -ARG INTERACTION_DB_TAG -ARG INTERACTION_DB_SHA256 +ARG INTERACTION_DB_REPO=SPerekrestova/pillchecker-api +ARG INTERACTION_DB_TAG=ddinter-2026-05-16 +ARG INTERACTION_DB_SHA256=ebdd0640949ca551c0d669ee1161b00e5d868ef067c857852a8afc380e51d4fb COPY scripts/download_interaction_db.py /tmp/download_interaction_db.py RUN --mount=type=secret,id=github_token,required=false \ INTERACTION_DB_REPO="$(printf '%s' "${INTERACTION_DB_REPO}" | tr -d "\r\n")"; \ diff --git a/tests/test_tier1_benchmark_workflow.py b/tests/test_tier1_benchmark_workflow.py index 5c9e46a..e724460 100644 --- a/tests/test_tier1_benchmark_workflow.py +++ b/tests/test_tier1_benchmark_workflow.py @@ -53,6 +53,9 @@ def test_dockerfile_has_separate_runtime_and_benchmark_targets(): assert "FROM app-base AS runtime" in dockerfile assert "COPY eval/ /app/eval/" in dockerfile assert 'ENTRYPOINT ["python", "-m", "eval.run_benchmark"]' in dockerfile + assert "ARG INTERACTION_DB_REPO=SPerekrestova/pillchecker-api" in dockerfile + assert "ARG INTERACTION_DB_TAG=ddinter-2026-05-16" in dockerfile + assert "ARG INTERACTION_DB_SHA256=ebdd0640949ca551c0d669ee1161b00e5d868ef067c857852a8afc380e51d4fb" in dockerfile assert 'INTERACTION_DB_REPO="$(printf' in dockerfile assert 'INTERACTION_DB_TAG="$(printf' in dockerfile assert 'tr -d "\\r\\n"' in dockerfile