Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914737 - dev-qt/qtbase-6.5.2-r2 fails tests (tst_qbytearray_large w/ timeout, and tst_qfont)
Summary: dev-qt/qtbase-6.5.2-r2 fails tests (tst_qbytearray_large w/ timeout, and tst_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2023-09-26 11:04 UTC by Jonathan Lovelace
Modified: 2023-09-26 12:24 UTC (History)
1 user (show)

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


Attachments
dev-qt:qtbase-6.5.2-r2:20230926-005143.log.gz (dev-qt:qtbase-6.5.2-r2:20230926-005143.log.gz,259.72 KB, text/plain; charset=utf-8)
2023-09-26 11:04 UTC, Jonathan Lovelace
Details
LastTest.log.gz (LastTest.log.gz,556.47 KB, text/plain; charset=utf-8)
2023-09-26 11:05 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,25.39 KB, text/plain; charset=utf-8)
2023-09-26 11:08 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2023-09-26 11:04:36 UTC
Created attachment 871474 [details]
dev-qt:qtbase-6.5.2-r2:20230926-005143.log.gz

=dev-qt/qtbase-6.5.2-r2 fails its tests for me. Specifically the tests tst_qbytearray_large and tst_qfont fail. The former didn't fail on the first attempt, and in the log I see something abouot something timing out, but for the latter the error is

FAIL!  : tst_QFont::exactMatch() '!QFont("sans").exactMatch()' returned FALSE. ()

That looks to me like it's asserting that there's not a font with the exact name "Sans", so in my "emerge --info" I will include all packages in the media-fonts category.
Comment 1 Jonathan Lovelace 2023-09-26 11:05:43 UTC
Created attachment 871475 [details]
LastTest.log.gz
Comment 2 Jonathan Lovelace 2023-09-26 11:08:25 UTC
Created attachment 871476 [details]
emerge-info.txt
Comment 3 Ionen Wolkens gentoo-dev 2023-09-26 11:39:22 UTC
Was already skipping tst_qrawfont for a similar reason and, rather than worry about state of the system font setup matching exactly what Qt expects, skipping tst_qfont too doesn't sound so bad.

tst_qbytearray_large takes about ~57secs for me (i7-8700 3.2GHz), not one of the faster test and I could imagine it timing out if system happened to be under load.
Comment 4 Ionen Wolkens gentoo-dev 2023-09-26 11:59:30 UTC
(In reply to Ionen Wolkens from comment #3)
> tst_qbytearray_large takes about ~57secs for me (i7-8700 3.2GHz), not one of
> the faster test and I could imagine it timing out if system happened to be
> under load.
ctest defaults to 1500s timeout which I guess is fine, but QTEST_FUNCTION_TIMEOUT is (as you'd expect), 300s. Guess could triple it.
Comment 5 Larry the Git Cow gentoo-dev 2023-09-26 12:24:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b5862db4e20b79ff05a35834c870f0c91817cf5

commit 9b5862db4e20b79ff05a35834c870f0c91817cf5
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-09-26 12:15:47 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-09-26 12:23:08 +0000

    qt6-build.eclass: triple qtest function timeout
    
    May help prevent flaky failures under load. Could increase further
    if ever a problem on some arches (beyond 1500 would be meaningless
    without also passing bigger --timeout to ctest).
    
    Also align exports and drop kinda unnecessary comment.
    
    Closes: https://bugs.gentoo.org/914737
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 eclass/qt6-build.eclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e2339d833283f8899de72c05bb93c17b61726ba

commit 4e2339d833283f8899de72c05bb93c17b61726ba
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-09-26 12:07:32 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-09-26 12:23:07 +0000

    dev-qt/qtbase: skip flaky tst_qfont
    
    Similar issues as tst_qrawfont, and that the system is not setup
    exactly like Qt's tests expect does not necessarily mean fonts will
    not be usable.
    
    Bug: https://bugs.gentoo.org/914737
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-qt/qtbase/qtbase-6.5.2-r2.ebuild | 2 +-
 dev-qt/qtbase/qtbase-6.5.9999.ebuild | 2 +-
 dev-qt/qtbase/qtbase-6.6.9999.ebuild | 2 +-
 dev-qt/qtbase/qtbase-6.9999.ebuild   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)