Use configured abxpkg library for queued binaries

This commit is contained in:
Nick Sweeting 2026-08-14 18:56:25 -07:00
parent 99e863f997
commit 2b194c48cd
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View File

@ -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)

View File

@ -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"