Hi Chris, Chris Hofstaedtler <z...@debian.org> writes:
> Package: os-autoinst > Version: 4.6.1712854180.1bf07142-4+b1 > > Hello Phil, > > I'm just getting started with openQA, so maybe I misunderstand > stuff. Apologies if this is the case. > > Upstream seems to suggest running isotovideo directly is a > reasonable approach. Unfortunately, just installing os-autoinst is > not enough to get isotovideo to start: > > podman run --rm -it debian:trixie-slim bash -c 'apt-get install --update -y > os-autoinst && isotovideo --exit-status-from-test-results CASEDIR=.' > ... > Can't locate Time/Moment.pm in @INC (you may need to install the > Time::Moment module) (@INC entries checked: /usr/lib/os-autoinst /etc/perl > /usr/local/lib/aarch64-linux-gnu/perl/5.40.0 /usr/local/share/perl/5.40.0 > /usr/lib/aarch64-linux-gnu/perl5/5.40 /usr/share/perl5 > /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.40 > /usr/share/perl/5.40 /usr/local/lib/site_perl) at /usr/lib/os-autoinst/log.pm > line 12. > BEGIN failed--compilation aborted at /usr/lib/os-autoinst/log.pm line 12. > Compilation failed in require at /usr/bin/isotovideo line 106. > BEGIN failed--compilation aborted at /usr/bin/isotovideo line 106. > > I've done an install test with and without Recommends enabled, but > there does not seem to be much of a difference. > > > What seems to make isotovideo at least *start*, is installing these > additional perl libs: > > libtime-moment-perl > libmojo-ioloop-readwriteprocess-perl > libjson-validator-perl > libcpanel-json-xs-perl > > > Once isotovideo starts, it aborts like this: > > (PWD is a checkout of > https://github.com/os-autoinst/os-autoinst-distri-example ) > podman run --rm -it \ > -v "$PWD":/source \ > "debian:trixie-slim" \ > bash -c \ > "apt update && apt install --no-install-recommends -y os-autoinst > libtime-moment-perl libmojo-ioloop-readwriteprocess-perl > libjson-validator-perl libcpanel-json-xs-perl && isotovideo > --exit-status-from-test-results qemu_no_kvm=1 CASEDIR=/source > ISO=/source/test.iso DISTRI=grml BACKEND=qemu" > [2024-12-10T15:35:43.981305Z] [debug] [pid:1] Current version is unknown > [interface v40] > [2024-12-10T15:35:43.983125Z] [debug] [pid:1] Setting forced test parameter > QEMU_NO_KVM -> 1 > [2024-12-10T15:35:43.983183Z] [debug] [pid:1] Setting forced test parameter > CASEDIR -> /source > [2024-12-10T15:35:43.983227Z] [debug] [pid:1] Setting forced test parameter > ISO -> /source/test.iso > [2024-12-10T15:35:43.983265Z] [debug] [pid:1] Setting forced test parameter > DISTRI -> grml > [2024-12-10T15:35:43.983299Z] [debug] [pid:1] Setting forced test parameter > BACKEND -> qemu > [2024-12-10T15:35:44.001306Z] [debug] [pid:1] git hash in '/source': > d1ee8703a72ccfeb93a1bed34e3a021d5e38dac6 > [2024-12-10T15:35:44.008824Z] [debug] [pid:1] git url in '/source': > https://github.com/os-autoinst/os-autoinst-distri-example > [2024-12-10T15:35:44.017280Z] [debug] [pid:1] scheduling boot tests/boot.pm > [2024-12-10T15:35:44.025309Z] [info] [pid:8936] cmdsrv: daemon reachable > under http://*:15223/iYgGNPOQYy/ > [2024-12-10T15:35:44.026577Z] [debug] [pid:1] git hash in > '/source/needles': d1ee8703a72ccfeb93a1bed34e3a021d5e38dac6 > [2024-12-10T15:35:44.026852Z] [debug] [pid:1] git url in '/source/needles': > UNKNOWN (no .git found) > [2024-12-10T15:35:44.026986Z] [debug] [pid:1] init needles from > /source/needles > [2024-12-10T15:35:44.028757Z] [info] [pid:8936] Listening at > "http://[::]:15223" > Web application available at http://[::]:15223 > [2024-12-10T15:35:44.030146Z] [debug] [pid:1] loaded 1 needles > [2024-12-10T15:35:44.047547Z] [warn] [pid:1] !!! main: Can't locate > List/MoreUtils.pm in @INC (you may need to install the List::MoreUtils > module) (@INC entries checked: /blib/arch /blib/lib /usr/lib/os-autoinst > /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.40.0 > /usr/local/share/perl/5.40.0 /usr/lib/aarch64-linux-gnu/perl5/5.40 > /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base > /usr/lib/aarch64-linux-gnu/perl/5.40 /usr/share/perl/5.40 > /usr/local/lib/site_perl) at /usr/lib/os-autoinst/backend/baseclass.pm line > 28. > BEGIN failed--compilation aborted at > /usr/lib/os-autoinst/backend/baseclass.pm line 28. > Compilation failed in require at /usr/share/perl5/Mojo/Base.pm line 132. > BEGIN failed--compilation aborted at /usr/lib/os-autoinst/backend/virt.pm > line 6. > Compilation failed in require at /usr/share/perl5/Mojo/Base.pm line 132. > BEGIN failed--compilation aborted at /usr/lib/os-autoinst/backend/qemu.pm > line 6. > Compilation failed in require at /usr/lib/os-autoinst/backend/driver.pm > line 33. > > [2024-12-10T15:35:44.048392Z] [debug] [pid:1] stopping command server 8936 > because test execution ended through exception > [2024-12-10T15:35:44.250538Z] [debug] [pid:1] done with command server > [2024-12-10T15:35:44.250684Z] [debug] [pid:1] stopping autotest process 8939 > [2024-12-10T15:35:44.453885Z] [debug] [pid:1] done with autotest process > > Installing liblist-moreutils-perl additionally seems to make it work. > > > I'd appreciate it if the mentioned perl libs could be added to os-autoinst's > Depends:. > To recap, these are: > > libtime-moment-perl > libmojo-ioloop-readwriteprocess-perl > libjson-validator-perl > libcpanel-json-xs-perl > and > liblist-moreutils-perl > > Thanks for considering, > Chris I generally don't run os-autoinst alone, but rather let openQA invoke it, but it should of course work both ways. I've just uploaded a new version, which includes the Depends as you requested. Perhaps you would be so kind as to give that a try, and tell me if it fails to do the trick for you. (I didn't actually try it myself, but adding a few depends seems completely harmless to me, so should at least not make things worse :-) ) Sorry for the slow response: I've been trying to persuade a recent version of openQA to build properly on Debian (it has grown new dependencies), which I wanted to be done with before contemplating changes to os-autoinst, and it all took a little longer than I would have preferred. Cheers, Phil. -- Philip Hands -- https://hands.com/~phil
signature.asc
Description: PGP signature