Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931109 - app-emulation/libvirt-10.3.0 fails tests: virshtest FAIL 2.12s exit status 1
Summary: app-emulation/libvirt-10.3.0 fails tests: virshtest FAIL 2.12s exit status 1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords: PullRequest, TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-05-03 06:43 UTC by Agostino Sarubbo
Modified: 2024-05-10 07:54 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,53.28 KB, application/x-xz)
2024-05-03 06:43 UTC, Agostino Sarubbo
Details
1-testlog.txt.xz (1-testlog.txt.xz,95.31 KB, application/x-xz)
2024-05-03 06:43 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-05-03 06:43:56 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-emulation/libvirt-10.3.0 fails tests.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-05-03 06:43:57 UTC
Created attachment 892183 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-05-03 06:43:59 UTC
Created attachment 892184 [details]
1-testlog.txt.xz

1-testlog.txt (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 3 Agostino Sarubbo gentoo-dev 2024-05-03 06:43:59 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


119/129 libvirt:bin / libvirtd fail with missing config          EXPECTEDFAIL     0.10s   exit status 1
126/129 libvirt:bin / virshtest                                  FAIL             2.12s   exit status 1
126/129 libvirt:bin / virshtest                         FAIL             2.12s   exit status 1
Actual [error: Failed to create '/var/lib/portage/home/.cache/libvirt/virsh': Permission denied
                                                                      ... FAILED
Program augparse found: NO
Program black found: NO
Program flake8 found: NO
Program iscsiadm found: NO
Program mdevctl found: NO
Program mm-ctl found: NO
Program ovs-vsctl found: NO
Program pdwtags found: NO
Program pytest found: NO
Program showmount found: NO
Program slirp-helper found: NO
Run-time dependency devmapper found: NO (tried pkgconfig and cmake)
Run-time dependency fuse3 found: NO (tried pkgconfig and cmake)
Run-time dependency libiscsi found: NO (tried pkgconfig and cmake)
Run-time dependency parallels-sdk found: NO (tried pkgconfig and cmake)
Actual [error: Failed to create '/var/lib/portage/home/.cache/libvirt/virsh': Permission denied
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-03 06:47:22 UTC
It should use ${T} as HOME during tests.
Comment 5 Michal Prívozník 2024-05-04 02:46:58 UTC
That can be workaround, but in fact it's a libvirt bug. libvirt's test suite (or any other for that matter) should NOT touch host's real data or anything outside build/src dirs. I was buried with some other work yesterday, but I'll try to post patches soon.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-04 03:30:53 UTC
Oh, yes, of course - thank you!
Comment 7 Michal Prívozník 2024-05-04 03:34:08 UTC
Patch posted onto the libvirt's upstream list:

https://lists.libvirt.org/archives/list/devel@lists.libvirt.org/thread/IJRBXYFQNV3E2QFVUGKUUXIDX3OQQ6FK/

I'll backport it once it's merged.
Comment 8 Larry the Git Cow gentoo-dev 2024-05-10 07:54:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=726b7b95509b9582694a8ae4a755922196ab7010

commit 726b7b95509b9582694a8ae4a755922196ab7010
Author:     Michal Privoznik <michal.privoznik@gmail.com>
AuthorDate: 2024-05-06 11:47:30 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-05-10 07:54:20 +0000

    app-emulation/libvirt: 10.3.0: Fix virshtest failure
    
    In libvirt-10.3.0 the virshtest was rewritten and unfortunately,
    it caused a bug in which it tried to access user's $HOME.
    Backport the upstream fix to make the test pass again.
    
    Closes: https://bugs.gentoo.org/931109
    Signed-off-by: Michal Privoznik <michal.privoznik@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/36584
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 ...3.0-vsh-Don-t-init-history-in-cmdComplete.patch | 84 ++++++++++++++++++++++
 ...virt-10.3.0.ebuild => libvirt-10.3.0-r1.ebuild} |  1 +
 2 files changed, 85 insertions(+)