Bug 389762 - keditfiletype/tests/filetypestest.cpp fails due to QMimeDatabase failing with <glob-deleteall/>?
Summary: keditfiletype/tests/filetypestest.cpp fails due to QMimeDatabase failing with...
Status: RESOLVED WORKSFORME
Alias: None
Product: kde-cli-tools
Classification: Plasma
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-01 18:42 UTC by Friedrich W. H. Kossebau
Modified: 2024-01-13 09:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Friedrich W. H. Kossebau 2018-02-01 18:42:27 UTC
Hi David,

I hope on your input on the effort to try to fix the failing unit test filetypestest from kde-cli-tools. It fails both on CI (in all logged history) and locally for me.

Do you perhaps have some more insight into this and can tell if there are any known deficits, so the tests could at least be tagged EXPECTFAIL with a link to a related bug, or if there is some issue/regression somewhere which should be filed as bug?

From what I investigated so far, it seems that QMimeDatabase somehow now fails to update to the changed shared-mime-info db when it comes to removing globs.
From what I saw is that MimeTypeWriter::runUpdateMimeDatabase(); writes the expected files via update-mime-database, those look good to me. But somehow QMimeDatabase seems to ignore <glob-deleteall/> (or NOGLOBS in the binary cache)?

Given this is all your code, do you happen to already have poked the Qt side of things? I could not find anything related on bugreports.qt.io, but you might know?

Cmp. failing test:
https://build.kde.org/view/Plasma/job/Plasma%20kde-cli-tools%20stable-kf5-qt5%20SUSEQt5.9/9/testReport/(root)/TestSuite/filetypestest/

Code is:
https://cgit.kde.org/kde-cli-tools.git/tree/keditfiletype/tests/filetypestest.cpp#n140

Cheers
Friedrich
Comment 1 Justin Zobel 2022-11-15 22:58:41 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-11-30 05:15:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-12-15 05:15:11 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 4 David Faure 2024-01-13 09:44:26 UTC
Probably fixed in Qt already, there were changes around glob-deleteall.