From f4385807f178b0fbaffe14da2a46dec1a3d19d43 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 11 Dec 2025 12:45:04 +0100 Subject: [PATCH] e2e: disable Nix sandbox for cross-distro flake build test - Update test_nix_build_pkgmgr.py to invoke nix --option sandbox false build .#pkgmgr -L to avoid sandbox/permission issues in Debian and Ubuntu containers. - Keeps the test logic identical across all distros while ensuring consistent flake build behaviour during E2E runs. https://chatgpt.com/share/693aa33f-4e3c-800f-86ec-99c38a07eacb --- tests/e2e/test_nix_build_pkgmgr.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/e2e/test_nix_build_pkgmgr.py b/tests/e2e/test_nix_build_pkgmgr.py index 472d278..75db3be 100644 --- a/tests/e2e/test_nix_build_pkgmgr.py +++ b/tests/e2e/test_nix_build_pkgmgr.py @@ -69,8 +69,13 @@ class TestNixBuildPkgmgrAllDistros(unittest.TestCase): _run_cmd(["id"]) # --- nix build .#pkgmgr -L --- - proc = _run_cmd(["nix", "build", ".#pkgmgr", "-L"]) - + proc = _run_cmd([ + "nix", + "--option", "sandbox", "false", + "build", ".#pkgmgr", + "-L", + ]) + if proc.returncode != 0: raise AssertionError( "nix build .#pkgmgr -L failed inside the test container.\n"