!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

907 Members
For people hacking on the Nix package manager itself192 Servers

Load older messages


SenderMessageTime
17 Jul 2024
@jade_:matrix.orgjade_
In reply to @qyriad:katesiria.org
we haven't enabled clang-format in our pre-commit yet, so if you want to clang-format some code then you can just run clang-format yourself
uh wrong channel qyriad lol
23:11:54
@qyriad:katesiria.orgQyriadOOPS23:36:21
@qyriad:katesiria.orgQyriadasdgjkalshgja23:36:23
@Las:matrix.orgLas I found out, I just have to remove my file from maintainers/flake-module.nix 23:46:13
18 Jul 2024
@fzakaria:one.ems.hostfzakariatotally should clang-format it03:54:42
@emilazy:matrix.orgemily really hope the team can take another look at this PR that I discovered recently after talking about trying to balance cores vs. jobs for large builds in the macOS room and discovering that the functionality that made it pleasant in the past was gone from Nixpkgs https://github.com/NixOS/nix/pull/6855#issuecomment-2212554612 10:45:49
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @emilazy:matrix.org
really hope the team can take another look at this PR that I discovered recently after talking about trying to balance cores vs. jobs for large builds in the macOS room and discovering that the functionality that made it pleasant in the past was gone from Nixpkgs https://github.com/NixOS/nix/pull/6855#issuecomment-2212554612
Oh yes, I had looked at it when prompted, and wanted to merge my suggestions and fix the conflicts because it's obviously a good thing, but then something got in the way and I never returned. If you happen to have the keyboard hands to do that, I'd merge.
10:55:51
@fricklerhandwerk:matrix.orgfricklerhandwerkAnd otherwise it's still in my queue, it's just that the queue constantly gets reshuffled10:59:38
@stick:matrix.orgstick left the room.11:00:13
@emilazy:matrix.orgemilythank you! I'll happily fix the conflicts and open a new PR :)11:00:24
@emilazy:matrix.orgemilyjust wasn't sure if it was blocked on waiting for a more long-term solution, but I've seen a lot of people ask for it so getting this merged and used in Nixpkgs would be great11:00:55
@emilazy:matrix.orgemily(would it be acceptable to backport to older release branches too since it's just setting a single environment variable btw? it would be nice for the out-of-the-box experience with the default Nixpkgs-supplied Nix version to be better, and https://github.com/NixOS/nix/issues/11098 unfortunately makes new versions quite painful on macOS right now)11:16:14
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @emilazy:matrix.org
(would it be acceptable to backport to older release branches too since it's just setting a single environment variable btw? it would be nice for the out-of-the-box experience with the default Nixpkgs-supplied Nix version to be better, and https://github.com/NixOS/nix/issues/11098 unfortunately makes new versions quite painful on macOS right now)
Sounds reasonable
11:53:41
@emilazy:matrix.orgemily what's the deal with the cores default being different from cores = 0? it seems like Settings::getDefaultCores() will never return 0? is it just a legacy holdover from before that was implemented? or related to remote builders or something? 12:51:55
@fricklerhandwerk:matrix.orgfricklerhandwerk
In reply to @emilazy:matrix.org
what's the deal with the cores default being different from cores = 0? it seems like Settings::getDefaultCores() will never return 0? is it just a legacy holdover from before that was implemented? or related to remote builders or something?
In this context, 0 has no special meaning for Nix. It just happens that make --jobs 0 runs all available cores, but so does make --jobs foo, but that Make is ever called is entirely Nixpkgs business. I don't like that example very much, because these Nixpkgs specifics may change. I don't even like the make -j example particularly, but the feature seems to have been pretty much built for Make, so it doesn't make much sense to show anything else.
13:29:49
@emilazy:matrix.orgemily pkgs/stdenv/generic/setup.sh actually specially handles 0 (it calls out to ncpus etc.) 13:30:12
@emilazy:matrix.orgemilyand yeah, I'm adjusting the examples etc.13:30:23
@emilazy:matrix.orgemily but, in the distributed builds setting, Settings::getDefaultCores() doesn't actually make sense, right? it yields the number of cores on the evaluating machine. so I think supporting cores = 0 (and load-limit = 0) is actually important. 13:31:02
@emilazy:matrix.orgemily it makes me question the default, though – but maybe I'm mixing things up? maybe -j on the evaluating machine is ignored for distributed builds and it'll just be using the cores from the daemons? 13:31:27
@emilazy:matrix.orgemily did anyone notice the test suite getting a lot slower on x86_64-darwin recently? I can't tell if it's just frozen or what 19:22:39
@emilazy:matrix.orgemily a run with --cores 1 suggests to me that either tests/functional/flakes/flakes.sh somehow became incredibly slow (although I don't see any commits to it since the last time I was making a PR?), or it no longer terminates at all. the build also didn't even go through until I added a missing #include (but the macOS CI seems fine?). is there anyone on x86_64-darwin who can actually succeed at building the current HEAD? 22:06:07
@emilazy:matrix.orgemilyokay, doing another run with just the header fix suggests that I'm the one who broke the tests :)22:26:00
19 Jul 2024
@codeboy:matrix.orgC0deboy joined the room.04:19:22
@easel:matrix.orgeasel changed their profile picture.14:17:20
20 Jul 2024
@phileas:asra.gr@phileas:asra.gr left the room.16:53:17
@felixfahrbahn:matrix.org@felixfahrbahn:matrix.org left the room.17:51:26
@abathur:matrix.orgabathurA question I saw on fediverse this morning reminded me I have an issue that might merit a re-triage: https://github.com/NixOS/nix/issues/8192 Théophane did query for more detail after an initial triage attempt last year; I provided some, but it may be worth gut-checking my response(s) in case there's something I need to address before it goes back on the full team's plate.18:26:22
@Las:matrix.orgLas
In reply to @abathur:matrix.org
A question I saw on fediverse this morning reminded me I have an issue that might merit a re-triage: https://github.com/NixOS/nix/issues/8192

Théophane did query for more detail after an initial triage attempt last year; I provided some, but it may be worth gut-checking my response(s) in case there's something I need to address before it goes back on the full team's plate.
I don’t think this is in the realm of what Nix should do IMHO
19:52:09
@Las:matrix.orgLasjust wrap it in bubblewrap19:52:25
@emilazy:matrix.orgemilyI don't think abathur is asking for runtime sandboxing19:53:04

Show newer messages


Back to Room ListRoom Version: 6