!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

408 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.135 Servers

Load older messages


SenderMessageTime
3 Aug 2025
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingok its starting to build now19:16:50
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pinguhhhh i guess it works on the build machine?!19:28:02
@ma27:nicht-so.sexyma27

I repeatedly get now

>                   raise child_exception_type(errno_num, err_msg, err_filename)
E                   FileNotFoundError: [Errno 2] No such file or directory: 'chmod'

from

    def nix(tmp_path: Path, env: ManagedEnv) -> Generator[Nix, Any, None]:
        """
        Provides a rich way of calling `nix`.
        For pre-applied commands use `nix.nix_instantiate`, `nix.nix_build` etc.
        After configuring the command, use `.run()` to run it
        """
        yield Nix(env)
        # when things are done using the nix store, the permissions for the store are read only
        # after the test was executed, we set the permissions to rwx (write being the important part)
        # for pytest to be able to delete the files during cleanup
        cmd = Command(argv=["chmod", "-R", "+w", str(tmp_path.absolute())], _env=env)
>       cmd.run().ok()

(yes, there's a chmod in the shell available and I killed the entire temp dir before)

so something looks pretty off here

20:04:10
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to ping are you using darwin?
otherwise do a just clean & just setup & just install
20:04:42
@ma27:nicht-so.sexyma27 ah and I misread the buildlog from the previous nix build of my checkout, it's not reproducible from within. 20:05:08
@ma27:nicht-so.sexyma27
In reply to @commentator2.0:elia.garden
are you using darwin?
otherwise do a just clean & just setup & just install
nope, linux. let me try...
20:05:57
@ma27:nicht-so.sexyma27same result for me.20:14:10
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingcan you check if it is a code/implementation issue and one from the functional2 framework?20:16:11
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to ping* can you check if it is a code/implementation issue and not one from the functional2 framework?20:16:19
@ma27:nicht-so.sexyma27

so, the quickfix to make the test green again:

diff --git a/tests/functional2/testlib/fixtures/nix.py b/tests/functional2/testlib/fixtures/nix.py
index fa459c41a..9edb9a60b 100644
--- a/tests/functional2/testlib/fixtures/nix.py
+++ b/tests/functional2/testlib/fixtures/nix.py
@@ -132,5 +132,7 @@ def nix(tmp_path: Path, env: ManagedEnv) -> Generator[Nix, Any, None]:
     # when things are done using the nix store, the permissions for the store are read only
     # after the test was executed, we set the permissions to rwx (write being the important part)
     # for pytest to be able to delete the files during cleanup
+    import os
+    env.path.prepend(os.getenv("PATH"))
     cmd = Command(argv=["chmod", "-R", "+w", str(tmp_path.absolute())], _env=env)
     cmd.run().ok()

this is obviously not what we want, but this confirms that the Command/Env machinery is misbehaving here. No idea why I saw no complaints in the sandbox build though 🤷

20:22:49
@raitobezarius:matrix.orgraitobezarius
In reply to @weethet:catgirl.cloud
raitobezarius: how do i read this?
https://buildkite.com/lix-project/lix/builds/3673/steps/canvas?sid=01986f84-2c33-4e02-9c8e-6ad9e83250c9
you look at jobs rather
20:23:25
@raitobezarius:matrix.orgraitobezariusfunctional-sandbox-certificate-authorities has broken20:23:35
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to ping.... thanks, that could also be the way to stupidly fix the darwin crash...20:24:42
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingstill curious though why the urls mismatch in the narstore test...20:25:35
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pingat least locally for me20:25:46
@weethet:catgirl.cloudWeetHet
In reply to @raitobezarius:matrix.org
functional-sandbox-certificate-authorities has broken
I'm trying to understand which of the tests has
22:03:20
@raitobezarius:matrix.orgraitobezariusthis is the test22:03:28
@raitobezarius:matrix.orgraitobezariusah22:03:30
@raitobezarius:matrix.orgraitobezariuswell the last one very probably which returns 0?22:03:39
@raitobezarius:matrix.orgraitobezarius* well the last one very probably which returns nonzero 0?22:03:43
@raitobezarius:matrix.orgraitobezarius* well the last one very probably which returns nonzero?22:03:45
@weethet:catgirl.cloudWeetHet The last statement in the log is return 0 22:05:14
@raitobezarius:matrix.orgraitobezariussounds like the grepQuiet failed then22:08:19
@raitobezarius:matrix.orgraitobezariusand that the expectation that the cert present is in the sandbox is wrong for the fixed-output case22:08:31
@raitobezarius:matrix.orgraitobezariusyep it's CERT_missing_IN_SANDBOX22:09:07
@raitobezarius:matrix.orgraitobezarius(cannot be seen, you need to run the test suite manually and remove the grepQuiet)22:09:17
4 Aug 2025
@quantenzitrone:matrix.org@quantenzitrone:matrix.org left the room.02:31:24
@lunaphied:lunaphied.meLunaphiedHas anyone tried much to get distcc working with Lix?23:18:00
@raitobezarius:matrix.orgraitobezariusafaik no23:29:09
@raitobezarius:matrix.orgraitobezariusccache maybe23:29:12

Show newer messages


Back to Room ListRoom Version: 10