From 2b194c48cd97d91f2cd37812b9bbd489e5614730 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Fri, 14 Aug 2026 18:56:25 -0700 Subject: [PATCH] Use configured abxpkg library for queued binaries --- archivebox/services/runner.py | 2 +- archivebox/tests/test_crawl_runner.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/archivebox/services/runner.py b/archivebox/services/runner.py index 247561ac..5dcd6d92 100644 --- a/archivebox/services/runner.py +++ b/archivebox/services/runner.py @@ -1334,7 +1334,7 @@ async def _run_binary(binary_id: str) -> None: process_service = PersistedProcessService(bus) binary_process_service = ArchiveBoxBinaryService(bus) BinaryCacheService(bus, backend=ArchiveBoxDBBinaryCacheBackend()) - BinaryService(bus) + BinaryService(bus, lib_dir=Path(config["ABXPKG_LIB_DIR"])) TagService(bus) ArchiveResultService(bus) MachineService(bus) diff --git a/archivebox/tests/test_crawl_runner.py b/archivebox/tests/test_crawl_runner.py index bc22f991..fda6b86e 100644 --- a/archivebox/tests/test_crawl_runner.py +++ b/archivebox/tests/test_crawl_runner.py @@ -719,7 +719,8 @@ def test_run_pending_crawls_processes_queued_crawl_and_real_binary(tmp_path): assert Snapshot.objects.filter(crawl=crawl, status=Snapshot.StatusChoices.SEALED).count() == 1 assert binary.status == Binary.StatusChoices.INSTALLED assert binary.retry_at is None - assert Path(binary.abspath).is_symlink() + assert Path(binary.abspath).is_file() + assert binary.version assert binary.binprovider == "env" @@ -877,7 +878,8 @@ def test_run_pending_crawls_resolves_real_binary_through_abxpkg(tmp_path): assert result == 0 assert binary.status == Binary.StatusChoices.INSTALLED assert binary.retry_at is None - assert Path(binary.abspath).is_symlink() + assert Path(binary.abspath).is_file() + assert binary.version assert binary.binprovider == "env"