!jtzdZrQSXtEpeGtzAn:nixos.org

Testing with Nix

86 Members
23 Servers

Load older messages


SenderMessageTime
23 Jan 2025
@tfc:matrix.orgtfcthe shell_interact thingy is quite a shaky thing.14:55:01
@tfc:matrix.orgtfc are you aware that you can easily set SSH port forwards via the interactive.nodes.... settings that are only enabled in interactive mode? 14:55:34
@frederic:scs.ems.hostFrédéric Christ Hi tfc ! I am. If I can, I use this. However, sometimes I'm debugging existing tests in nixpkgs with a custom networking setup. In this case, the SSH port forwarding doesn't work and I'm left with the QEMU framebuffers or shell_interact(). 16:52:23
30 Jan 2025
@lunarix:matrix.orgLunarix joined the room.14:35:57
@lunarix:matrix.orgLunarix

Hello, I hope you're all doing well, and that its okay that I ask a question regarding nixos.

https://github.com/NixOS/nixpkgs/blob/nixos-24.11/nixos/lib/testing/driver.nix#L18

vms = map (m: m.system.build.vm) (lib.attrValues config.nodes);

https://github.com/NixOS/nixpkgs/blob/nixos-24.11/nixos/modules/virtualisation/build-vm.nix

system.build.vm = lib.mkDefault config.virtualisation.vmVariant.system.build.vm;

https://github.com/NixOS/nixpkgs/blob/nixos-24.11/nixos/modules/virtualisation/qemu-vm.nix#L1332-L1342

system.build.vm = hostPkgs.runCommand "nixos-vm" ...

can anyone help me understand why when i use runTest/evalTest, and it uses system.build.vm, without applying the extendModules [in build-vm.nix], but when i use nixpkgs.lib.nixosSystem, it does apply extendModules [in build-vm.nix]

testers.runNixOSTest {
    name = "boot-${k}";
    node.pkgsReadOnly = false;
    nodes.machine.imports = v.modules ++ [
      { virtualisation.vmVariant.services.openssh.enable = lib.mkForce true; }
    ];
    node.specialArgs = prelude.mkSpecialArgs v;
    testScript =
      ''
        machine.start()
        machine.wait_for_unit("default.target")
        machine.wait_for_unit("sshd.service")
      '';
  })

My objective goal, (which may be silly, i'm happy for input aswell),
is that this should include openssh as part of the test env but not the production env.

Thank you for your time.

14:36:37
2 Feb 2025
@pederbs:pvv.ntnu.nopbsds changed their display name from pbsds to pbsds (FOSDEM).16:04:32
3 Feb 2025
@pederbs:pvv.ntnu.nopbsds changed their display name from pbsds (FOSDEM) to pbsds.16:25:03
6 Feb 2025
@tfc:matrix.orgtfc

Lunarix: sry don't see notifications in chat rooms as this would render the app unusable with all the chat rooms. ping me directly next time plz and i will be happy to help.

please let me reiterate on what you want: you want SSH only in test environments, does that mean in the interactive mode of the test driver, but not in the sandboxed tests? or do you want no ssh in tests at all?

09:12:21
7 Feb 2025
@roberthensing:matrix.orgRobert Hensing (roberth) Lunarix: vmVariant only applies to nixos-rebuild build-vm commands. You could omit virtualisation.vmVariant., or if you want to avoid repeating things between your build-vm config and your test config, you could do something like { virtualisation.vmVariant = { imports = [ ./my-vm-stuff.nix; ] }; } in your NixOS config and v.modules ++ [ ./my-vm-stuff.nix ] in the test. 13:20:04
@terrorjack:matrix.terrorjack.com@terrorjack:matrix.terrorjack.com left the room.22:28:05
8 Feb 2025
@terrorjack:matrix.orgterrorjack joined the room.01:56:41
@terrorjack:matrix.orgterrorjack set a profile picture.02:24:24
@terrorjack:matrix.orgterrorjack removed their profile picture.02:25:00
15 Feb 2025
@benjb83:matrix.orgBenjB83 joined the room.10:15:30
@benjb83:matrix.orgBenjB83 changed their display name from Benjamín Buske to BenjB83.10:43:32
16 Feb 2025
@kristijan.zic:matrix.orgKristijanZic joined the room.01:03:36
27 Feb 2025
@wjjunyor:matrix.orgw changed their display name from w to w - out for 🚬.18:34:26
@wjjunyor:matrix.orgw changed their display name from w - out for 🚬 to w.19:25:47
12 Mar 2025
@vidariondr:matrix.orgvidariondr joined the room.21:07:41
15 Mar 2025
@fufexan:matrix.orgfufexan joined the room.19:09:48
@fufexan:matrix.orgfufexan hey, does anyone know how to get xwayland running in a test vm? I'm making a test for hyprland and whenever any x window is launched, I get this log:

libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: NEEDS EXTENSION: falling back to kms_swrast
Refusing to try glamor on llvmpipe
XWAYLAND: Disabling GLAMOR support
EGL setup failed, disabling glamor
Failed to initialize glamor, falling back to sw
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Could not resolve keysym XF86RefreshRateToggle
> Warning:          Could not resolve keysym XF86Accessibility
> Warning:          Could not resolve keysym XF86DoNotDisturb
Errors from xkbcomp are not fatal to the X server

Relevant test definition is at https://github.com/hyprwm/Hyprland/pull/9297/files#diff-0d8379c3138bc72435c7f85338dd2c3d1ac41281c8dbec1373477edc38164187
19:16:57
@fufexan:matrix.orgfufexannevermind, looks like the problem was running as root21:07:07
4 Apr 2025
@ajazamag:matrix.orgajazamag joined the room.10:52:17
24 Apr 2025
@robinking623:matrix.orggebjgd joined the room.13:49:13
@i5heu:i5h.euMia joined the room.20:27:07
26 Apr 2025
@debaa:matrix.orgdebabrata pattnayak joined the room.16:12:33
1 May 2025
@mbkqrqj:matrix.orgmbkqrqj joined the room.01:55:00
@rosariopulella:matrix.orgRosuavio changed their display name from Rosario Pulella to Rosuavio.20:09:09
10 May 2025
@strutztm:strutztm.de@strutztm:strutztm.de left the room.19:50:28
11 May 2025
@dgrig:erethon.comdgrig joined the room.20:34:17

Show newer messages


Back to Room ListRoom Version: 9