5 Oct 2024 |
puck | In reply to @noob_tea:matrix.org
https://devenv.sh/blog/2024/10/03/devenv-13-instant-developer-environments-with-nix-caching/ this seems interesting.
Do you think it's feasible (from a perf standpoint) to perform such caching and get an overall positive sum result in lix?
i don't think so. the output of these evals is always a single evaluatin, and you can't generalise this; you can't have a shared eval cache between e.g. nixpkgs.hello and nixpkgs.coreutils; unless you track which subset of files is necessary for each value; and that's unscalable | 20:29:01 |
samrose | Redacted or Malformed Event | 20:30:50 |
puck | In reply to @puck:puck.moe i don't think so. the output of these evals is always a single evaluatin, and you can't generalise this; you can't have a shared eval cache between e.g. nixpkgs.hello and nixpkgs.coreutils; unless you track which subset of files is necessary for each value; and that's unscalable (also, i think devenv doesn't handle certain import-from-derivation tricks properly? but eh) | 20:31:05 |
samrose | Redacted or Malformed Event | 20:36:22 |
samrose | Redacted or Malformed Event | 20:54:39 |
samrose | Redacted or Malformed Event | 20:55:02 |
6 Oct 2024 |
| accelbread joined the room. | 01:21:00 |
| @iooioio:matrix.org left the room. | 11:33:01 |
szlend | Somehow I'm getting this error user '_nixbld4' in the group 'nixbld' does not exist , right after running the installer, even though I'm not on Sequoia. I run a nix build in CI on a fresh MacOS VM every time, and it seems to happen sporadically. Any ideas how to debug this? This issue is not new, I've been running into it for as long as I remember. | 15:10:14 |
szlend | I don't get it because the _nixbld4 user exists and is part of nixbld . | 15:10:55 |
szlend | Re-running nix build doesn't solve the issue, which implies it's something to do with the state of the system | 15:11:37 |
szlend | This could only happen if getpwnam returns null here: https://git.lix.systems/lix-project/lix/src/commit/ed9b7f4f84fd60ad8618645cc1bae2d686ff0db6/src/libstore/lock.cc#L75 | 15:12:45 |
szlend | So it seems like getpwnam disagrees with dscacheutil (darwin cli for querying users and groups) | 15:13:36 |
szlend | I have no idea what could cause this. Maybe a bug in the MacOS user db (e.g. we're creating new users too quickly and something bad happens)? | 15:15:32 |
antifuchs | szlend: did you upgrade to macOS 15 recently? there was a change about group memberships / gids/ uids that requires a fixing-up of stuff | 15:29:58 |
antifuchs | you can re-run the nix installer and it'll adjust those (won't lose you any data / store contents) | 15:30:19 |
szlend | Nope, this has nothing to do with MacOS 15, it's a long standing issues with our MacOS builds in CI | 15:33:23 |
szlend | * Nope, this has nothing to do with MacOS 15, it's a long standing issue with our MacOS builds in CI | 15:33:25 |
szlend | We're on Ventura actually | 15:34:18 |
antifuchs | Ooooh oops | 16:27:04 |
szlend | It just seems like an OS bug to me... Maybe it's made worse because it's running in a VM where context switching is probably way more common | 16:34:51 |
| Lulu joined the room. | 20:23:41 |
Lulu | I don't know if this is the right place to ask, but I would like to contribute code to lix but I don't understand how pull requests work here. I tried doing it through Gerrit but couldn't figure it out. Do I need to be granted permissions for that? | 20:59:25 |
K900 | I don't think you need permission to open a CL | 20:59:51 |
K900 | But Gerrit is... an acquired taste | 20:59:58 |
K900 | git-gr from nixpkgs is a nice tool to make it easier | 21:00:10 |