-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nixos/tests/installer: add bcachefs tests #156071
Conversation
105e7b3
to
fc684d1
Compare
Changing the installer tests is extra confusing right now because all the installer tests are currently broken due to #149532 (comment) :( |
I picked an interesting time to add installer tests then, huh. |
I created #156213 to fix the installer tests. |
Oh, and it looks like my original bcache test had an error that was masked by the test just running really fast until 1640359 from #142747 slightly changed the timing of test command execution. I created #156251 to fix this, which makes the bcache test pass again. Afer patching in those two PRs, and then this one on top of them, it's now possible to actually try out this change. Thanks for your patience. When I run the
When I run the
|
Strange, when I ran the tests they worked fine. |
fc684d1
to
3e1a8de
Compare
I can't seem to replicate the errors you're getting, even on the latest master. |
Note that I am using this command for the tests, in my local nixpkgs. nix-build . -A nixosTests.installer.bcachefsMulti
nix-build . -A nixosTests.installer.bcachefsSimple |
#156213 was just merged, so you can rebase on master instead of continuing to patch that in, if you like. Yes, copying channels does take a very long time. This test runs for 2 hours (on a 2.60GHz i5-3320M) before emitting this error message, and it happens awhile after the channel-copying step.
I get the same error from both of these ways of running the test:
I'm using |
Ah right, Grub doesn't support bcachefs yet, so I'll just increase the efi partition size and make that |
3e1a8de
to
0c9dc67
Compare
It seems to be working, at least the simple variant, I'll have to test the multi variant tomorrow considering how long this takes.
|
Multi also works, sans the weird issue mentioned above. |
I thought EFI partitions were required to be FAT-32? |
It's not an EFI partition, I'm just dumb. |
Thanks to @JJJollyjim, we should be able to enable the encryption test as well for this. |
0c9dc67
to
7a80aed
Compare
I got -Simple and -Multi working, unfortunately I haven't even the slightest clue what to do about -Encrypted though. |
b32effe
to
bcc95cb
Compare
Yeah, it always stops right here. boot-after-install # <<< NixOS Stage 1 >>>
boot-after-install #
boot-after-install # loading module virtio_balloon...
boot-after-install # loading module virtio_console...
boot-after-install # loading module virtio_rng...
boot-after-install # loading module dm_mod...
boot-after-install # [ 0.305132] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: [email protected]
boot-after-install # running udev...
boot-after-install # Starting version 249.7
boot-after-install # [ 0.337524] rtc_cmos 00:05: RTC can wake from S4
boot-after-install # [ 0.340005] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
boot-after-install # [ 0.343127] serio: i8042 KBD port at 0x60,0x64 irq 1
boot-after-install # [ 0.343424] serio: i8042 AUX port at 0x60,0x64 irq 12
boot-after-install # [ 0.344377] rtc_cmos 00:05: registered as rtc0
boot-after-install # [ 0.344641] rtc_cmos 00:05: alarms up to one day, y3k, 242 bytes nvram, hpet irqs
boot-after-install # [ 0.362190] Floppy drive(s): fd0 is 2.88M AMI BIOS
boot-after-install # [ 0.373846] FDC 0 is a S82078B
boot-after-install # [ 0.382553] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
boot-after-install # [ 0.390823] SCSI subsystem initialized
boot-after-install # [ 0.398064] ACPI: \_SB_.LNKC: Enabled at IRQ 11
boot-after-install # [ 0.417220] ACPI: \_SB_.LNKD: Enabled at IRQ 10
boot-after-install # [ 0.418678] scsi host0: ata_piix
boot-after-install # [ 0.423674] scsi host1: ata_piix
boot-after-install # [ 0.423895] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc100 irq 14
boot-after-install # [ 0.424274] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc108 irq 15
boot-after-install # [ 0.435306] ACPI: \_SB_.LNKA: Enabled at IRQ 10
boot-after-install # [ 0.447185] ACPI: \_SB_.LNKB: Enabled at IRQ 11
boot-after-install # [ 0.582279] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
boot-after-install # [ 0.583557] scsi 1:0:0:0: CD-ROM QEMU QEMU DVD-ROM 2.5+ PQ: 0 ANSI: 5
boot-after-install # [ 0.593416] virtio_blk virtio3: [vda] 16777216 512-byte logical blocks (8.59 GB/8.00 GiB)
boot-after-install # [ 0.597429] vda: vda1 vda2 vda3
boot-after-install # [ 0.606978] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
boot-after-install # [ 0.607379] cdrom: Uniform CD-ROM driver Revision: 3.20
boot-after-install # kbd_mode: KDSKBMODE: Inappropriate ioctl for device
boot-after-install # %Gstarting device mapper and LVM...
boot-after-install # [ 0.828444] clocksource: Switched to clocksource acpi_pm At first I thought it might be the same issue I had between using the unstable channel's bcachefs packages on the stable system, but it seems to be something entirely different, as I get the same issue even when running on release-21.11. |
cc @chkno |
cc @Mic92 |
bcc95cb
to
39b9cf3
Compare
All tests now functional. |
please add these to bcachefs-tools passthru.tests |
Done. |
@ofborg build bcachefs-tools.tests |
Should ofborg be taking this long to test this? |
it has already run them |
i don't know antyhing about bcachefs but since the tests run i assume the tests are ok |
Ah okay, I was thinking the pending ofborg tasks were what you were telling ofborg to do. |
they are but the nixos test vm's aren't run on darwin so they would just be skipped once the queue got to them |
Motivation for this change
In relation to #153095 per Mic92's request.
I'm not entirely sure how the installer tests work, so if there's any changes that would be better let me know!
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes