Bug 459332

Summary: QueryTest::installAndQuery() fails randomly in CI builds, consider disabling
Product: [Frameworks and Libraries] frameworks-kpackage Reporter: Dawid Wróbel <me>
Component: defaultAssignee: Marco Martin <notmart>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Dawid Wróbel 2022-09-18 14:22:11 UTC
SUMMARY

The  QueryTest::installAndQuery() fails randomly in CI builds, regardless the platform. 

When it fails, it's always the same issue:

QDEBUG : QueryTest::installAndQuery() kf.package: pluginname:  "org.kde.testpackagesdepinvalid"
package asked to install invalid dep, bailing out
FATAL : QueryTest::installAndQuery() QThread: Destroyed while thread is still running
FAIL!  : QueryTest::installAndQuery() Received a fatal error.
   Loc: [Unknown file(0)]
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 580ms

See for example: https://invent.kde.org/frameworks/kpackage/-/jobs/484222
Comment 1 Dawid Wróbel 2022-09-18 14:30:36 UTC
Actually, looking at error logs, it can also happen further down, after QueryTest::installAndQuery() has succeeded, e.g.

QDEBUG : QueryTest::queryCustomPlugin() kf.package: No metadata file in package "/var/tmp/gitlab_runner/builds/HCBYDm67/0/frameworks/kpackage/autotests/data/testinvalidmetadata" "/var/tmp/gitlab_runner/builds/HCBYDm67/0/frameworks/kpackage/autotests/data/testinvalidmetadata/"
QFATAL : QueryTest::queryCustomPlugin() QThread: Destroyed while thread is still running
FAIL!  : QueryTest::queryCustomPlugin() Received a fatal error.
   Loc: [Unknown file(0)]
Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 319ms