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
tests fail in 2038 #160
Comments
|
Hi! Could you add more information? I have tried to reproduce the problem without success. So far, what I did was to checked out yast2-core from openSUSE:Factory
and then run both, a simple Could you please paste at least the output of the command to see if it helps with debugging. Thanks |
|
I've tried to reproduce it but it seems I have an unrelated failure on Leap 15.3. [ 14s] Bail out! ERROR:../backends/rng-random.c:48:entropy_available: assertion failed: (len != -1)# uname -r
5.3.18-150300.59.60-default
$ rpm -q osc build
osc-0.181.0-336.1.noarch
build-20220613-393.1.noarch
$ osc build --vm-type=kvm --clean --noservice openSUSE_Tumbleweed
...
[ 12s] booting kvm...
[ 12s] Using virtio-serial support
[ 12s] /usr/bin/qemu-kvm -nodefaults -no-reboot -nographic -vga none -cpu host -M pc,accel=kvm,usb=off,dump-guest-core=off,vmport=off -sandbox on -bios /usr/share/qemu/qboot.rom -object rng-random,filename=/dev/hwrng,id=rng0 -device virtio-rng-pci,rng=rng0 -object iothread,id=io0 -runas qemu -net none -kernel /var/tmp/build-root-openSUSE_Tumbleweed/.mount/boot/kernel -initrd /var/tmp/build-root-openSUSE_Tumbleweed/.mount/boot/initrd -append root=/dev/disk/by-id/virtio-0 rootfstype=ext4 rootflags=noatime kvmclock mitigations=off elevator=noop nmi_watchdog=0 rw rd.driver.pre=binfmt_misc oops=panic panic=1 quiet console=hvc0 init=/.build/build -m 512 -drive file=/var/tmp/build-root-openSUSE_Tumbleweed/img,format=raw,if=none,id=disk,cache=unsafe -device virtio-blk-pci,iothread=io0,drive=disk,serial=0 -drive file=/var/tmp/build-root-openSUSE_Tumbleweed/swap,format=raw,if=none,id=swap,cache=unsafe -device virtio-blk-pci,iothread=io0,drive=swap,serial=1 -device virtio-serial,max_ports=2 -device virtconsole,chardev=virtiocon0 -chardev stdio,id=virtiocon0 -chardev socket,id=monitor,server=on,wait=off,path=/var/tmp/build-root-openSUSE_Tumbleweed/img.qemu/monitor -mon chardev=monitor,mode=readline -smp 4
[ 14s] **
[ 14s] ERROR:../backends/rng-random.c:48:entropy_available: assertion failed: (len != -1)
[ 14s] Bail out! ERROR:../backends/rng-random.c:48:entropy_available: assertion failed: (len != -1)
[ 15s] /usr/lib/build/build-vm-kvm: line 292: 10697 Aborted (core dumped) "$@"
[ 15s] No buildstatus set, either the base system is broken (kernel/initrd/udev/glibc/bash/perl)
[ 15s] or the build host has a kernel or hardware problem... |
|
BTW the reason for the test is https://en.wikipedia.org/wiki/Year_2038_problem |
|
OK, I have reproduced it, on a different machine |
|
Our test driver is a bit stupid not to display the failure outright, anyway, the failing test case is
|
Interesting, thanks. BTW,
|
srandom does not need to be positive tested with: osc build --vm-type=kvm --clean --noservice --build-opt=--vm-custom-opt="-rtc base=2038-01-25T00:00:00" --alternative-project home:bmwiedemann:reproducible openSUSE_Tumbleweed
The failing test checks if the YCP builtin srandom returns a positive timestamp. This lazy fix only checks that the returned (negative) number is not nil. Tested with: osc build --vm-type=kvm --clean --noservice --build-opt=--vm-custom-opt="-rtc base=2038-01-25T00:00:00" --alternative-project home:bmwiedemann:reproducible openSUSE_Tumbleweed
Fix a test that would fail in the year 2038 (#160)
While working on reproducible builds for openSUSE, I found that
yast2-corefails to build in 2038.To reproduce, use
The text was updated successfully, but these errors were encountered: