| 16 Oct 2025 |
Vladimír Čunát | narinfo is per derivation. nar is per derivation output. Am I wrong? | 12:01:57 |
BMG | 🤔 | 12:02:09 |
Vladimír Čunát | We do use multi-output derivations pretty commonly, at least in the more-core packages. | 12:02:26 |
BMG | That would make sense | 12:02:44 |
BMG | But woudl that mean more nars than narinfos? | 12:03:17 |
BMG | * But wouldn't that mean more nars than narinfos? | 12:03:25 |
hexa | yes | 12:03:31 |
BMG | We're seeing the opposite | 12:03:45 |
BMG | If my clickhouse skills are to be believed | 12:03:51 |
raitobezarius | <confusion intensifies> | 12:04:02 |
Vladimír Čunát | Ah, I misread that. OK. | 12:04:20 |
Vladimír Čunát | It does happen commonly on Hydra that we build the same-hashed derivation twice in parallel. | 12:06:02 |
Vladimír Čunát | * It does happen commonly on Hydra that we build the same-hashed derivation twice in parallel (and both succeed). | 12:06:09 |
Vladimír Čunát | I'm not sure what exactly happens in that case. But even so. | 12:06:26 |
BMG | which would account for same nar but multiple narinfos? | 12:06:29 |
BMG | assuming the build output was bit-wise reproducible | 12:06:48 |
Vladimír Čunát | They often are not, but I'm not sure that really affects the count of re-uploads. | 12:07:23 |
Vladimír Čunát | It doesn't affect the (S3/URL) paths. | 12:07:39 |
BMG | Happy to jump on a call a bit later and poke through this dataset together | 12:15:23 |
| ·☽•Nameless☆•777 · ± joined the room. | 13:40:10 |
·☽•Nameless☆•777 · ± | Hi o/ | 13:41:21 |
Mic92 | In reply to @brian:bmcgee.ie But wouldn't that mean more nars than narinfos? You can end up with more narinfos if you produce the very same build-output. | 15:13:26 |
Mic92 | Ah vcunat said this already | 15:13:48 |
dramforever | i am pretty sure this is wrong | 15:14:38 |
dramforever | narinfo is per path, nar is whatever | 15:14:44 |
dramforever | so you'll have one narinfo per output | 15:15:15 |
dramforever | protocol-wise the nars doesn't matter, you just need to point the URL in narinfo to something | 15:16:15 |
dramforever | i think it just happens that nix defaults to using a hash of the nar contents | 15:16:29 |
dramforever | or something like that | 15:16:33 |
dramforever | i wonder if we have a bunch of test derivations that just create an empty file at $out and that's why we have way more narinfo than nar | 15:17:37 |