!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
14 Aug 2025
@jade_:matrix.orgjade_oh yes, you're right. i hate implicit conversions (code style issue in this code imo)17:30:55
@emilazy:matrix.orgemilyI'm just saying, missing things in code review is a general phenomena :p17:31:54
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)
In reply to @jade_:matrix.org
for example, i found straight up wrong code in here (in addition to error messages that refer to concepts that only exist in C++ and not in user facing places) i am still happy to port the fix, but it's going to experience some rewrites
FWIW we are running UBSAN in CI for some time now, so signed overflow should be caught (modulo compiler quirks)
17:51:49
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Test coverage is another matter though17:52:56
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Does Lix track code coverage in CI?17:54:32
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)(Not a panacea but quite useful)17:55:05
@jade_:matrix.orgjade_ I don't think we have tracking of it per se because our tests run in nix, but we probably could, in principle. 18:13:31
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)I've recently added clang-based source coverage to CI for nix.18:13:54
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)(And the tests run in nix as well)18:14:08
@jade_:matrix.orgjade_it probably needs to consider coverage of the functional tests as well, so that's a little bit fun18:14:25
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)Yup, functional tests are included as well. The only thing that's missing is the nixos tests18:14:45
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)It's a bit undercooked at the moment with some rough edges, but at least it works and enough to track the metrics and push html to hydra18:15:44
@xokdvium:matrix.orgSergei Zimmerman (xokdvium)https://github.com/NixOS/nix/blob/58eabe7479177dc63cf3c704230a45b9260b3fec/ci/gha/tests/default.nix#L17218:16:22
@jade_:matrix.orgjade_so umm. they seem to have defined this as "throws .. sometimes .. if certain int to float conversions fail .. sometimes"18:17:01
@jade_:matrix.orgjade_surely these should just passthrough integers entirely unmodified18:17:12
@jade_:matrix.orgjade_right?18:17:18
@emilazy:matrix.orgemily I assume the conservative throw is for the same reason you did one in fromJSON 18:17:40
@emilazy:matrix.orgemilykeeps options open18:17:47
@jade_:matrix.orgjade_I also rewrote the float to int conversion to use the correct function18:17:51
@emilazy:matrix.orgemilybut yeah it's hard to imagine a different sensible behaviour to use here18:17:56
@emilazy:matrix.orgemilybut I think if you pass through integers the practical value you get is different to what it was historically18:18:18
@jade_:matrix.orgjade_yeah idk, i think converting it to a float first is just .. weird and hard to ensure it behaves consistently, comparatively18:18:19
@emilazy:matrix.orgemilybecause of how the UB would be compiled in practice18:18:21
@jade_:matrix.orgjade_oh18:18:24
@jade_:matrix.orgjade_ugh18:18:26
@jade_:matrix.orgjade_yeah18:18:27
@jade_:matrix.orgjade_okay18:18:28
@emilazy:matrix.orgemilyso having a deprecation period where it errors seems sensible18:18:34
@emilazy:matrix.orgemily put up a whole bunch of changes for the TOML stuff (both the port of the Nix change for stable branches and the dropping of the experimental feature for main), NUL bytes in JSON/TOML, and overflowing JSON literals 19:11:24
@commentator2.0:elia.gardenRutile (Commentator2.0) feel free to pinghttps://gerrit.lix.systems/c/lix/+/3333/47 can someone punch besadii?19:39:52

Show newer messages


Back to Room ListRoom Version: 10