| 3 Aug 2025 |
Rutile (Commentator2.0) feel free to ping | ok its starting to build now | 19:16:50 |
Rutile (Commentator2.0) feel free to ping | uhhhh i guess it works on the build machine?! | 19:28:02 |
ma27 | 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 |
Rutile (Commentator2.0) feel free to ping | are you using darwin? otherwise do a just clean & just setup & just install | 20:04:42 |
ma27 | ah and I misread the buildlog from the previous nix build of my checkout, it's not reproducible from within. | 20:05:08 |
ma27 | 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 | same result for me. | 20:14:10 |
Rutile (Commentator2.0) feel free to ping | can you check if it is a code/implementation issue and one from the functional2 framework? | 20:16:11 |
Rutile (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 | 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 | 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 | functional-sandbox-certificate-authorities has broken | 20:23:35 |
Rutile (Commentator2.0) feel free to ping | .... thanks, that could also be the way to stupidly fix the darwin crash... | 20:24:42 |
Rutile (Commentator2.0) feel free to ping | still curious though why the urls mismatch in the narstore test... | 20:25:35 |
Rutile (Commentator2.0) feel free to ping | at least locally for me | 20:25:46 |
WeetHet | 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 | this is the test | 22:03:28 |
raitobezarius | ah | 22:03:30 |
raitobezarius | well the last one very probably which returns 0? | 22:03:39 |
raitobezarius | * well the last one very probably which returns nonzero 0? | 22:03:43 |
raitobezarius | * well the last one very probably which returns nonzero? | 22:03:45 |
WeetHet | The last statement in the log is return 0 | 22:05:14 |
raitobezarius | sounds like the grepQuiet failed then | 22:08:19 |
raitobezarius | and that the expectation that the cert present is in the sandbox is wrong for the fixed-output case | 22:08:31 |
raitobezarius | yep it's CERT_missing_IN_SANDBOX | 22:09:07 |
raitobezarius | (cannot be seen, you need to run the test suite manually and remove the grepQuiet) | 22:09:17 |
| 4 Aug 2025 |
| @quantenzitrone:matrix.org left the room. | 02:31:24 |
Lunaphied | Has anyone tried much to get distcc working with Lix? | 23:18:00 |
raitobezarius | afaik no | 23:29:09 |
raitobezarius | ccache maybe | 23:29:12 |