!sBfrWMVsLoSyFTCkNv:nixos.org

OfBorg

182 Members
Number of builds and evals in queue: <TBD>64 Servers

Load older messages


SenderMessageTime
24 May 2021
@skochen:matrix.orgStéphan joined the room.18:23:37
@0x4a6f:matrix.org[0x4A6F] joined the room.18:48:02
@7c6f434c:nitro.chat7c6f434cI have a feeling that /bin/sh in Nix sandbox works on OfBorg in general, but not always on aarch64-linux https://github.com/NixOS/nixpkgs/pull/124289/checks?check_run_id=2658877113 — is it a bug or a feature?19:46:47
25 May 2021
@7c6f434c:nitro.chat7c6f434c(rerunning ofborg build did not change the result)07:20:46
@lukegb:zxcvbnm.ninjalukegb (he/him) andi-: I think it's a matter of wording 10:47:44
@lukegb:zxcvbnm.ninjalukegb (he/him)e.g. apps/ in .gitignore matches the "apps" directory but not a file called "apps"10:47:55
@lukegb:zxcvbnm.ninjalukegb (he/him)so they're not really contradictory10:48:23
28 May 2021
@robin.gloster:matrix.mayflower.deglobin joined the room.17:04:59
31 May 2021
@0x4a6f:matrix.org[0x4A6F] changed their display name from [0x4A6F] to 0x4A6F.08:24:13
1 Jun 2021
@0x4a6f:matrix.org[0x4A6F] changed their display name from 0x4A6F to [0x4A6F].06:35:59
5 Jun 2021
@sandro:supersandro.deSandro 🐧Why does ofborg not build any packages on https://github.com/NixOS/nixpkgs/pull/125793 ?14:25:19
7 Jun 2021
@qyliss:fairydust.spaceAlyssa RossDoes OfBorg run unstable Nix? Would updating the Nix it uses be enough to make it catch https://github.com/NixOS/nixpkgs/pull/125772#issuecomment-855259547?10:36:42
@andi:kack.itandi-Iirc ofBorg doesn't run unstable nix11:14:07
@qyliss:fairydust.spaceAlyssa Rossah okay11:14:38
@qyliss:fairydust.spaceAlyssa Rossso we'd need a meta check11:14:41
@andi:kack.itandi-Apparently the rust ICE that I've been chasing for over a month now has been open since 2018: https://github.com/rust-lang/rust/issues/56935 :(17:38:53
10 Jun 2021
@leo:gaspard.ninjaEkleog joined the room.16:55:44
16 Jun 2021
@hexa:lossy.networkhexathe aarch64 builder has had crashing pytest runners during the home-assitant test suite for the last week or so16:29:57
@hexa:lossy.networkhexahttps://logs.nix.ci/?key=nixos/nixpkgs.127091&attempt_id=f0ef90c3-3a50-44be-b36c-eeb97f7ddd1f16:30:17
@hexa:lossy.networkhexafor example16:30:20
@sandro:supersandro.deSandro 🐧
In reply to @hexa:lossy.network
https://logs.nix.ci/?key=nixos/nixpkgs.127091&attempt_id=f0ef90c3-3a50-44be-b36c-eeb97f7ddd1f
Does this take forever to load for you, too?
16:50:05
@hexa:lossy.networkhexano17:35:10
@rosariopulella:matrix.orgRosario Pulella joined the room.18:52:15
@sandro:supersandro.deSandro 🐧only 15 seconds. I don't like my providers routing...21:45:32
@hexa:lossy.networkhexamaintainer review requests for teams are not working, are they? https://github.com/NixOS/nixpkgs/pull/125770/files22:54:42
@hexa:lossy.networkhexaor is this also about tests/modules in general?22:55:00
17 Jun 2021
@blaggacao:matrix.orgDavid Arnold (blaggacao) joined the room.18:28:11
@blaggacao:matrix.orgDavid Arnold (blaggacao)
def assemble_qemu_flags():
    flags = "-cpu max"
    flags += " -m 1024"
    return flags


qemu_flags = {"qemuFlags": assemble_qemu_flags()}

hd_flags = {
    "hdaInterface": "virtio",
    "hda": "vm-state-machine/machine.qcow2",
}

default_flags = {**hd_flags, **qemu_flags}


def create_machine_named(name):
    return create_machine({**default_flags, "name": name})


machine.start()

with subtest("Assert readiness of login prompt"):
    machine.succeed("echo hello")

with subtest("Wait for hard disks to appear in /dev"):
    machine.succeed("udevadm settle")

machine.succeed(
    "sgdisk -Z /dev/vda",
    "sgdisk -n 1:0:+1M -n 2:0:+1G -N 3 -t 1:ef02 -t 2:8200 -t 3:8300 -c 3:root /dev/vda",
    "mkswap /dev/vda2 -L swap",
    "swapon -L swap",
    "mkfs.btrfs -L root /dev/vda3",
    "btrfs device scan",
    "mount LABEL=root /mnt",
    "btrfs subvol create /mnt/boot",
    "btrfs subvol create /mnt/nixos",
    "btrfs subvol create /mnt/nixos/default",
    "umount /mnt",
    "mount -o defaults,subvol=nixos/default LABEL=root /mnt",
    "mkdir /mnt/boot",
    "mount -o defaults,subvol=boot LABEL=root /mnt/boot",
)


with subtest("Create the NixOS configuration"):
    machine.succeed("nixos-generate-config --root /mnt")
    machine.succeed("cat /mnt/etc/nixos/hardware-configuration.nix >&2")
    machine.copy_from_host(
        "/nix/store/jmypyz7q2ffcqg0dfa9xydz4wap04wsp-configuration.nix",
        "/mnt/etc/nixos/configuration.nix",
    )

with subtest("Perform the installation"):
    machine.succeed("nixos-install < /dev/null >&2")

with subtest("Do it again to make sure it's idempotent"):
    machine.succeed("nixos-install < /dev/null >&2")

with subtest("Shutdown system after installation"):
    machine.succeed("umount /mnt/boot || true")
    machine.succeed("umount /mnt")
    machine.succeed("sync")
    machine.shutdown()
# Now see if we can boot the installation.
machine = create_machine_named("boot-after-install")

# For example to enter LUKS passphrase.


with subtest("Assert that /boot get mounted"):
    machine.wait_for_unit("local-fs.target")
    machine.succeed("test -e /boot/grub")

with subtest("Check whether /root has correct permissions"):
    assert "700" in machine.succeed("stat -c '%a' /root")

with subtest("Assert swap device got activated"):
    # uncomment once https://bugs.freedesktop.org/show_bug.cgi?id=86930 is resolved
    machine.wait_for_unit("swap.target")
    machine.succeed("cat /proc/swaps | grep -q /dev")

with subtest("Check that the store is in good shape"):
    machine.succeed("nix-store --verify --check-contents >&2")

with subtest("Check whether the channel works"):
    machine.succeed("nix-env -iA nixos.procps >&2")
    assert ".nix-profile" in machine.succeed("type -tP ps | tee /dev/stderr")

with subtest(
    "Check that the daemon works, and that non-root users can run builds "
    "(this will build a new profile generation through the daemon)"
):
    machine.succeed("su alice -l -c 'nix-env -iA nixos.procps' >&2")

with subtest("Configure system with writable Nix store on next boot"):
    # we're not using copy_from_host here because the installer image
    # doesn't know about the host-guest sharing mechanism.
    machine.copy_from_host_via_shell(
        "/nix/store/6jcfa0im2sjsyhzbqgz51w6hwqhgd7x4-configuration.nix",
        "/etc/nixos/configuration.nix",
    )

with subtest("Check whether nixos-rebuild works"):
    machine.succeed("nixos-rebuild switch >&2")

with subtest("Test nixos-option"):
    kernel_modules = machine.succeed("nixos-option boot.initrd.kernelModules")
    assert "virtio_console" in kernel_modules
    assert "List of modules" in kernel_modules
    assert "qemu-guest.nix" in kernel_modules

machine.shutdown()

# Check whether a writable store build works
machine = create_machine_named("rebuild-switch")

machine.wait_for_unit("multi-user.target")

# we're not using copy_from_host here because the installer image
# doesn't know about the host-guest sharing mechanism.
machine.copy_from_host_via_shell(
    "/nix/store/v25vc36mamldkz4f067nyfy1z15r12g1-configuration.nix",
    "/etc/nixos/configuration.nix",
)
machine.succeed("nixos-rebuild boot >&2")
machine.shutdown()

# And just to be sure, check that the machine still boots after
# "nixos-rebuild switch".
machine = create_machine_named("boot-after-rebuild-switch")

machine.wait_for_unit("network.target")

machine.shutdown()

# Tests for validating clone configuration entries in grub menu


18:50:37
@blaggacao:matrix.orgDavid Arnold (blaggacao)

gives:

Traceback (most recent call last):
  File "/nix/store/rbdw7qvz9bga3k4h0p3awh5xkkh5p7ax-nixos-test-driver/bin/.nixos-test-driver-wrapped", line 1050, in <module>
    run_tests(args.interactive)
  File "/nix/store/rbdw7qvz9bga3k4h0p3awh5xkkh5p7ax-nixos-test-driver/bin/.nixos-test-driver-wrapped", line 931, in run_tests
    test_script()
  File "/nix/store/rbdw7qvz9bga3k4h0p3awh5xkkh5p7ax-nixos-test-driver/bin/.nixos-test-driver-wrapped", line 1020, in test_script
    exec(pathlib.Path(args.testscript).read_text())
  File "<string>", line 68, in <module>
  File "<string>", line 18, in create_machine_named
NameError: name 'default_flags' is not defined
18:50:55
@blaggacao:matrix.orgDavid Arnold (blaggacao)on https://logs.nix.ci/?key=nixos/nixpkgs.125979&attempt_id=c88f3cf3-3457-4138-9251-130b47ce178818:51:04

Show newer messages


Back to Room ListRoom Version: 6