From 57c2c422b2b655e1b9baa698a4df5b6e8a31defd Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Fri, 20 Jun 2025 12:13:00 +0100 Subject: [PATCH] vectorcode: inherit `doCheck` from chromadb The tests need to import onnxruntime (a transitive of chromadb), however it has issues running in the build sandbox on aarch64-linux. It may work at runtime, so the package is not marked broken, however it will break tests, so the check phase is disabled when building on aarch64-linux. Since the issue comes via chromadb, we inherit its `doCheck` attribute. --- pkgs/by-name/ve/vectorcode/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/ve/vectorcode/package.nix b/pkgs/by-name/ve/vectorcode/package.nix index ca61d11be394..7ada551b10b0 100644 --- a/pkgs/by-name/ve/vectorcode/package.nix +++ b/pkgs/by-name/ve/vectorcode/package.nix @@ -127,6 +127,12 @@ python.pkgs.buildPythonApplication rec { }; ''; + # Test collection breaks on aarch64-linux, because the transitive onnxruntime + # tries to read /sys/devices/system/cpu, which does not exist in the sandbox. + # + # We inherit the issue from chromadb, so inherit its `doCheck` attribute. + inherit (python.pkgs.chromadb) doCheck; + pythonImportsCheck = [ "vectorcode" ]; nativeCheckInputs =