Bug 467550

Summary: baloo does not exclude folders under an excluded folder
Product: [Frameworks and Libraries] frameworks-baloo Reporter: Aaron Williams <aaronw>
Component: generalAssignee: baloo-bugs-null
Status: RESOLVED WORKSFORME    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.104.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: File containing folders to be excluded

Description Aaron Williams 2023-03-18 23:05:53 UTC
Created attachment 157406 [details]
File containing folders to be excluded

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Install a large software package, i.e. Qt.
2. Start baloo
3.  In a window run balooctl monitor
4. Run the command 'balooctl config add excludeFilters /home/[user]/Qt
5. Watch baloo continue to index in that folder

OBSERVED RESULT
Baloo will continue to index files in the excluded folder, even after restarting baloo. The folder is included in baloofilerc  exclude folders[$e]=$HOME/Qt/

EXPECTED RESULT
I expect Baloo to exclude any folders in the excluded folder list

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: OpenSUSE 15.4/5.104.0
(available in About System)
KDE Plasma Version: 21.8.29
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
I have some very large trees that should be excluded from Baloo indexing in part due to the sheer size, i.e. Qt source code, but this appears to be broken. For example, I want to exclude /home/username/Qt and all folders underneath it, however even though this folder is in the exclude list, Baloo happily continues to index this. I have well over 1,000,000 files in the excluded trees and this is consuming a significant amount of processing, memory, and disk space to index.
Another bug claims that this is the expected behavior, which IMO is completely broken. There must be a way to be able to exclude large trees of files from Baloo!!!
Comment 1 Nate Graham 2023-04-04 20:46:42 UTC
> balooctl config add excludeFilters /home/[user]/Qt
Did you mean `balooctl config add excludeFolders /home/[user]/Qt`? Adding a folder to the file type filters list doesn't seem like it's going to work. :) 

Additionally it looks like there's something wrong with the config file. I see "exclude " on its own line, and then "folders=" on another line. In my file, it says:

exclude filters=blabla
exclude folders[$e]=blabla

Can you try reformatting the file and see if that helps? It seems like something broke it in the past.
Comment 2 Bug Janitor Service 2023-04-19 03:45:43 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 Aaron Williams 2023-04-19 07:11:35 UTC
It seems I need to use balooctl check and stop and restart the process. It does not take effect immediately.
Comment 4 Bug Janitor Service 2023-05-04 03:46:12 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 5 Bug Janitor Service 2023-05-19 03:46:04 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!