!jtzdZrQSXtEpeGtzAn:nixos.org

Testing with Nix

64 Members
22 Servers

Load older messages


SenderMessageTime
24 Oct 2023
@raitobezarius:matrix.orgraitobezariusThe issue is that you also introduced lib.lazyDerivation for the test itself01:00:59
@raitobezarius:matrix.orgraitobezarius So if I do something like testBuildFailure (runTest ./timeout.nix) I will be in trouble 01:01:12
@raitobezarius:matrix.orgraitobezarius * So if I do something like testBuildFailure (callTest (runTest ./timeout.nix)) I will be in trouble 01:01:20
@raitobezarius:matrix.orgraitobezariusBecause lazyDerivation never offers overrideAttrs I suppose01:01:29
@raitobezarius:matrix.orgraitobezariusand I'm not so sure about01:02:24
@raitobezarius:matrix.orgraitobezarius(a) adding overrideAttrs to lazyDerivation01:02:29
@raitobezarius:matrix.orgraitobezarius(b) making lazyDerivation overridable01:02:33
@raitobezarius:matrix.orgraitobezarius(c) removing lazyDerivation from test01:02:37
@raitobezarius:matrix.orgraitobezariusI feel like this defeat the whole purpose of lazyDerivation to override it01:03:31
@raitobezarius:matrix.orgraitobezariusMaybe I should hack a way to do "test build failure" inside of the test itself directly…01:03:54
@roberthensing:matrix.orgRobert Hensing (roberth) raitobezarius: lazyDerivation has a passthru argument where you can put more stuff if really needed, but I think it'd be cleaner to expose it through the config attribute. ie create a new option that contains the raw test driver without lazyDerivation 10:03:36
@roberthensing:matrix.orgRobert Hensing (roberth) that way we keep all the internals behind a single attribute, config 10:03:51
@raitobezarius:matrix.orgraitobezariusIn this instance I only need a drv that can have overrideAttrs for the test itself 10:05:11
@raitobezarius:matrix.orgraitobezariusSo should I do raw test to be the drv and test to be the lazy derivation?10:05:36
@roberthensing:matrix.orgRobert Hensing (roberth)https://github.com/hercules-ci/nixpkgs/commit/fbe79d17fb5fdea4777640f353a80b5f1196c1cc10:10:49
@roberthensing:matrix.orgRobert Hensing (roberth)is what I had in mind10:10:52
@roberthensing:matrix.orgRobert Hensing (roberth) that should give you <test>.config.rawTestDerivation to feed into testBuildFailure 10:11:11
@raitobezarius:matrix.orgraitobezariusOK this is also what I understood10:11:31
@raitobezarius:matrix.orgraitobezariusPerfect10:11:33
25 Oct 2023
@federicodschonborn:matrix.org@federicodschonborn:matrix.org changed their profile picture.00:13:16
@vengmark2:matrix.orgl0b0 What's the "Guest root shell did not produce any data yet..." message when running NixOS tests? I think I understand the basic principle (something is waiting for output), but Google wasn't helpful in figuring out what. 07:02:15
@raitobezarius:matrix.orgraitobezarius
In reply to @vengmark2:matrix.org
What's the "Guest root shell did not produce any data yet..." message when running NixOS tests? I think I understand the basic principle (something is waiting for output), but Google wasn't helpful in figuring out what.
it means that the test driver is waiting for bytes from the guest via the serial socket
11:45:11
@raitobezarius:matrix.orgraitobezariusthe spam was recently fixed11:45:27
@raitobezarius:matrix.orgraitobezariusit happens whenever the serial socket returns empty bytes11:45:33
@raitobezarius:matrix.orgraitobezariushm11:45:52
@raitobezarius:matrix.orgraitobezariusor maybe not11:45:54
@raitobezarius:matrix.orgraitobezariusit also happens when there is no output for a while11:45:58
@raitobezarius:matrix.orgraitobezariuse.g. long computations11:46:04
@vengmark2:matrix.orgl0b0Thanks, that leaves the question of why this has suddenly started happening. The obvious one would be OOM killed, but I don't see any mention in the logs of that triggering.19:09:18
26 Oct 2023
@roberthensing:matrix.orgRobert Hensing (roberth)don't kernel panics just hang, or do we configure the kernel not to do that and halt instead?15:10:46

Show newer messages


Back to Room ListRoom Version: 9