Bug 509888 - broken-search-tests-disabled
Summary: broken-search-tests-disabled
Status: RESOLVED NOT A BUG
Alias: None
Product: kde
Classification: I don't know
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-24 20:27 UTC by jshand2013
Modified: 2025-09-24 20:59 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jshand2013 2025-09-24 20:27:44 UTC
OS Details:

Operating System: openSUSE Tumbleweed 20250923
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ 7 150U
Memory: 16 GiB of RAM (15.3 GiB usable)
Graphics Processor: Intel® Graphics
Manufacturer: Dell Inc.
Product Name: Inspiron 16 5640

# Search functionality appears broken; multiple tests disabled

**Severity:** High  
**Area:** Libs / Autotests  

## Description
CMake contains FIXME comments indicating tests are constantly failing due to broken search, and are disabled pending a new search implementation.

## Evidence
/mnt/data/akonadi_extracted/akonadi/autotests/libs/CMakeLists.txt lines 89 and 124 (context shown):

```
  80| add_akonadi_isolated_test(SOURCE collectionpathresolvertest.cpp collectionpathresolvertest.h)
  81| add_akonadi_isolated_test(SOURCE collectionattributetest.cpp collectionattributetest.h)
  82| add_akonadi_isolated_test(SOURCE itemfetchtest.cpp itemfetchtest.h)
  83| add_akonadi_isolated_test(SOURCE itemappendtest.cpp itemappendtest.h)
  84| add_akonadi_isolated_test(SOURCE itemstoretest.cpp itemstoretest.h)
  85| add_akonadi_isolated_test(SOURCE itemdeletetest.cpp)
  86| add_akonadi_isolated_test(SOURCE entitycachetest.cpp)
  87| add_akonadi_isolated_test(SOURCE monitortest.cpp monitortest.h)
  88| #add_akonadi_isolated_test_advanced(monitorfiltertest.cpp "" "KPim6::AkonadiPrivate")
  89| # FIXME: this is constantly failling due to broken search: re-enable once the new search code is merged
  90| #add_akonadi_isolated_test(SOURCE searchjobtest.cpp searchjobtest.h)
  91| add_akonadi_isolated_test(SOURCE changerecordertest.cpp)
  92| add_akonadi_isolated_test(SOURCE resourcetest.cpp)
  93| add_akonadi_isolated_test(SOURCE subscriptiontest.cpp)
  94| add_akonadi_isolated_test(SOURCE transactiontest.cpp transactiontest.h)
  95| add_akonadi_isolated_test(SOURCE itemcopytest.cpp)
  96| add_akonadi_isolated_test(SOURCE itemmovetest.cpp)
```

```
 118| #add_akonadi_isolated_test(itembenchmark.cpp)
 119| #add_akonadi_isolated_test(collectioncreator.cpp)
 120| 
 121| add_akonadi_isolated_test(SOURCE gidtest.cpp gidtest.h)
 122| add_akonadi_isolated_test(SOURCE lazypopulationtest.cpp)
 123| add_akonadi_isolated_test(SOURCE favoriteproxytest.cpp LINK_LIBRARIES KF6::ConfigCore)
 124| # FIXME: this is constantly failing due to broken search: re-enable once the new search code is merged
 125| #add_akonadi_isolated_test(
 126| #    SOURCE itemsearchjobtest.cpp searchjobtest.h
 127| #    ADDITIONAL_SOURCES testsearchplugin/testsearchplugin.cpp)
 128| add_akonadi_isolated_test(SOURCE tagtest.cpp ADDITIONAL_SOURCES ${CMAKE_BINARY_DIR}/src/core/akonadicore_debug.cpp)
```

## Steps to Reproduce
1. Re-enable the disabled search-related tests in `autotests/libs/CMakeLists.txt`.
2. Build and run the test suite.
3. Observe failures in search functionality.

## Expected Behavior
Search-related tests should pass, validating correct behavior.

## Actual Behavior
Tests are disabled due to persistent failures attributed to broken search.

## Suggested Fix / Next Steps
- Audit current search implementation and failure modes.
- Port or merge the 'new search' code referred to in comments.
- Add CI gating to prevent silent regressions in search.
Comment 1 Nate Graham 2025-09-24 20:59:28 UTC
Please don't copy-paste the output of code "analysis" from ChatGPT or another AI. It isn't actionable. Submitting merge requests to change these things would be helpful, but bug reports pointing them out isn't.