Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935834 - kde-apps/dolphin-23.08.5 test fail
Summary: kde-apps/dolphin-23.08.5 test fail
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-10 18:35 UTC by Arniii
Modified: 2024-09-04 18:31 UTC (History)
1 user (show)

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


Attachments
/var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5_build/Testing/Temporary/LastTest.log (file_935834.txt,45.73 KB, text/plain)
2024-07-10 18:35 UTC, Arniii
Details
emerge --info (file_935834.txt,13.57 KB, text/plain)
2024-07-10 18:36 UTC, Arniii
Details
emerge -pqv '=kde-apps/dolphin-23.08.5::gentoo' (file_935834.txt,110 bytes, text/plain)
2024-07-10 18:37 UTC, Arniii
Details
build.log (file_935834.txt,950.77 KB, text/plain)
2024-07-10 18:37 UTC, Arniii
Details
environment // profile default/linux/amd64/23.0/split-usr/desktop/plasma gcc-13.2.1_p20240210 O3 pipe march=native(verbose) lto graphite ggdb3 (file_935834.txt,121.06 KB, text/plain)
2024-07-10 18:38 UTC, Arniii
Details
/etc/portage/* in `zip -9` (portage.zip,443.15 KB, application/zip)
2024-07-10 18:39 UTC, Arniii
Details
iteration1.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment (iteration1_dolphin.zip,75.92 KB, application/zip)
2024-07-11 17:23 UTC, Arniii
Details
iteration2.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment (iteration2_dolphin.zip,77.56 KB, application/zip)
2024-07-11 17:29 UTC, Arniii
Details
iteration3.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment (iteration3_dolphin.zip,77.23 KB, application/zip)
2024-07-11 17:34 UTC, Arniii
Details
iteration4.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment (iteration4_dolphin.zip,77.40 KB, application/zip)
2024-07-11 17:58 UTC, Arniii
Details
iteration5.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment (iteration5_dolphin.zip,77.46 KB, application/zip)
2024-07-11 18:05 UTC, Arniii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arniii 2024-07-10 18:35:53 UTC
Created attachment 897423 [details]
/var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5_build/Testing/Temporary/LastTest.log

from /var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5_build/Testing/Temporary/LastTest.log :

```
5/10 Testing: kitemlistcontrollerexpandtest
5/10 Test: kitemlistcontrollerexpandtest
Command: "/var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5_build/bin/kitemlistcontrollerexpandtest"
Directory: /var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5_build/src/tests
"kitemlistcontrollerexpandtest" start time: Jul 10 17:30 UTC
Output:
----------------------------------------------------------
********* Start testing of KItemListControllerExpandTest *********
Config: Using QtTest library 5.15.14, Qt 5.15.14 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.2.1 20240210), gentoo 2.15
PASS   : KItemListControllerExpandTest::initTestCase()
QWARN  : KItemListControllerExpandTest::testDirExpand() org.kde.dolphin: Invalid item range (index: 7 , count: 0 )
FAIL!  : KItemListControllerExpandTest::testDirExpand() 'QTest::qWaitFor( [this]() { return m_spyDirectoryLoadingCompleted->count() == 6; }, 100)' returned FALSE. ()
   Loc: [/var/tmp/portage/kde-apps/dolphin-23.08.5/work/dolphin-23.08.5/src/tests/kitemlistcontrollerexpandtest.cpp(179)]
PASS   : KItemListControllerExpandTest::cleanupTestCase()
Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 1643ms
********* Finished testing of KItemListControllerExpandTest *********
<end of output>
Test time =   1.78 sec
----------------------------------------------------------
Test Failed.
"kitemlistcontrollerexpandtest" end time: Jul 10 17:30 UTC
"kitemlistcontrollerexpandtest" time elapsed: 00:00:01
----------------------------------------------------------

```
Comment 1 Arniii 2024-07-10 18:36:26 UTC
Created attachment 897424 [details]
emerge --info
Comment 2 Arniii 2024-07-10 18:37:14 UTC
Created attachment 897425 [details]
emerge -pqv '=kde-apps/dolphin-23.08.5::gentoo'
Comment 3 Arniii 2024-07-10 18:37:55 UTC
Created attachment 897426 [details]
build.log
Comment 4 Arniii 2024-07-10 18:38:33 UTC
Created attachment 897427 [details]
environment // profile default/linux/amd64/23.0/split-usr/desktop/plasma gcc-13.2.1_p20240210 O3 pipe march=native(verbose) lto graphite ggdb3
Comment 5 Arniii 2024-07-10 18:39:15 UTC
Created attachment 897428 [details]
/etc/portage/* in `zip -9`
Comment 6 Andreas Sturmlechner gentoo-dev 2024-07-11 16:35:05 UTC
Not reproducible with sane C(XX)FLAGS on two machines of mine.
Comment 7 Arniii 2024-07-11 17:23:10 UTC
Created attachment 897457 [details]
iteration1.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment

Iteration 1: It does NOT happen with -O0 -pipe -ggdb3 -frecord-gcc-switches
Comment 8 Arniii 2024-07-11 17:29:12 UTC
Created attachment 897458 [details]
iteration2.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment

Iteration 2: it does NOT happens when without lto:
```
-O3 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=30720 -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches
```
Comment 9 Arniii 2024-07-11 17:34:18 UTC
Created attachment 897460 [details]
iteration3.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment

Iteration 3: it does NOT happen with -O2 and LTO:
```
 -O2 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=30720 -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -ggdb3 -frecord-gcc-switches
```
Comment 10 Arniii 2024-07-11 17:58:51 UTC
Created attachment 897462 [details]
iteration4.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment

Iteration 4 : it does NOT happen without graphite flags:
```
-O3 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=30720 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -ggdb3 -frecord-gcc-switches
```
Comment 11 Arniii 2024-07-11 18:05:10 UTC
Created attachment 897463 [details]
iteration5.zip : emerge --info , emerge -pqv kde-apps/dolphin , build.log , environment

iteration 5: idk why, but with all flags it now passes? what's going on?
```
-O3 -pipe -march=alderlake -mabm -mno-cldemote -mno-kl -mno-pconfig -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=48 --param=l2-cache-size=30720 -flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -fgraphite-identity -floop-interchange -floop-strip-mine -floop-nest-optimize -ggdb3 -frecord-gcc-switches
```
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-07-12 07:41:09 UTC
The test is a "waitFor" which implies it might be timing out or otherwise timing sensitive..

Maybe try repeatedly with each flag?
Comment 13 Arniii 2024-08-18 04:27:46 UTC
Interestingly enough, I got same test failure right now, but in another place of the test. It happened when in the same time CPU was compiling 4 packages ( two of them are librewolf and firefox ) in parallel. 


from  `/var/tmp/portage/kde-apps/dolphin-23.08.5-r1/work/dolphin-23.08.5_build/Testing/Temporary/LastTest.log
```
5/10 Testing: kitemlistcontrollerexpandtest
5/10 Test: kitemlistcontrollerexpandtest
Command: "/var/tmp/portage/kde-apps/dolphin-23.08.5-r1/work/dolphin-23.08.5_build/bin/kitemlistcontrollerexpandtest"
Directory: /var/tmp/portage/kde-apps/dolphin-23.08.5-r1/work/dolphin-23.08.5_build/src/tests
"kitemlistcontrollerexpandtest" start time: Aug 18 02:40 UTC
Output:
----------------------------------------------------------
********* Start testing of KItemListControllerExpandTest *********
Config: Using QtTest library 5.15.14, Qt 5.15.14 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.2.1 20240210), gentoo 2.15
QWARN  : KItemListControllerExpandTest::initTestCase() kf.kio.core: KIO Connection server not listening, could not connect
QWARN  : KItemListControllerExpandTest::initTestCase() kf.kio.core: couldn't create worker: "Can not create a socket for launching a KIO worker for protocol 'file'."
QWARN  : KItemListControllerExpandTest::initTestCase() kf.kio.core: "Unable to create KIO worker. Can not create a socket for launching a KIO worker for protocol 'file'."
FAIL!  : KItemListControllerExpandTest::initTestCase() 'm_spyDirectoryLoadingCompleted->wait()' returned FALSE. ()
   Loc: [/var/tmp/portage/kde-apps/dolphin-23.08.5-r1/work/dolphin-23.08.5/src/tests/kitemlistcontrollerexpandtest.cpp(77)]
PASS   : KItemListControllerExpandTest::cleanupTestCase()
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 5454ms
********* Finished testing of KItemListControllerExpandTest *********
<end of output>
Test time =   5.48 sec
----------------------------------------------------------
Test Failed.
"kitemlistcontrollerexpandtest" end time: Aug 18 02:40 UTC
"kitemlistcontrollerexpandtest" time elapsed: 00:00:05
----------------------------------------------------------

End testing: Aug 18 02:40 UTC
```


I've repeated emerging the package again under the high CPU load, now test time for the test was not 5.48s , but 10.66s, and it failed in the same way.

Then I wrote a simple script to check how many times it fails and with what return code.

Here's the bash script:
```
#!/bin/bash

POSITIONAL_ARGS=()

while [[ $# -gt 0 ]]; do
  case $1 in
  -c | --counter)
    HOW_MANY_TIMES_TO_TRY_THE_PROGRAM="$2"
    shift # past argument
    shift # past value
    ;;
  -e | --execute)
    EXECUTABLE_PATH="$2"
    shift # past argument
    shift # past value
    ;;
  --default)
    DEFAULT=YES
    shift # past argument
    ;;
  -* | --*)
    echo "Unknown option $1"
    exit 1
    ;;
  *)
    POSITIONAL_ARGS+=("$1") # save positional arg
    shift                   # past argument
    ;;
  esac
done

set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters

echo "HOW_MANY_TIMES_TO_TRY_THE_PROGRAM  = ${HOW_MANY_TIMES_TO_TRY_THE_PROGRAM}"
echo "EXECUTABLE_PATH     = ${EXECUTABLE_PATH}"
echo "DEFAULT         = ${DEFAULT}"

if [[ -n $1 ]]; then
  echo "Last line of file specified as non-opt/last argument:"
  tail -1 "$1"
fi

for time in $(seq 0 "${HOW_MANY_TIMES_TO_TRY_THE_PROGRAM}"); do
  ${EXECUTABLE_PATH}
  ((histogram[$?]++))
done

echo "================================================================================="
echo "================================================================================="
echo "================================================================================="
echo "Simple histogram of return codes: ( format: code how_many_times)"
for length in "${!histogram[@]}"; do
  printf "%-1s %s\n" "${length}" "${histogram[$length]}"
done

```

The script is called in next way:
```
bash ./test.sh -c 100 -e /var/tmp/portage/kde-apps/dolphin-23.08.5-r1/work/dolphin-23.08.5_build/bin/kitemlistcontrollerexpandtest
```

When no CPU load:
```
Simple histogram of return codes: ( format: code how_many_times)
0 101
```

When under `strees-ng -c $(nproc) --cpu-load 100`:
```
Simple histogram of return codes: ( format: code how_many_times)
0 78
1 23
```

When under `strees-ng -c $(nproc) --cpu-load 100` and `stress-ng --fork 100` :
```
Simple histogram of return codes: ( format: code how_many_times)
0 3
1 98
```

So, I guess Sam's theory seems to be true
Comment 14 Andreas Sturmlechner gentoo-dev 2024-09-02 19:25:59 UTC
Please test with 24.05.2, now that it is stable.
Comment 15 Arniii 2024-09-04 18:31:40 UTC
(In reply to Andreas Sturmlechner from comment #14)
> Please test with 24.05.2, now that it is stable.

I've got same test fail but with SIGSEGV : 


```
4/9 Testing: kitemlistcontrollerexpandtest
4/9 Test: kitemlistcontrollerexpandtest
Command: "/var/tmp/portage/kde-apps/dolphin-24.05.2-r1/work/dolphin-24.05.2_build/bin/kitemlistcontrollerexpandtest"
Directory: /var/tmp/portage/kde-apps/dolphin-24.05.2-r1/work/dolphin-24.05.2_build/src/tests
"kitemlistcontrollerexpandtest" start time: Sep 04 18:28 UTC
Output:
----------------------------------------------------------
********* Start testing of KItemListControllerExpandTest *********
Config: Using QtTest library 6.7.2, Qt 6.7.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 13.3.1 20240614), gentoo 2.15
Received signal 11 (SIGSEGV), code 1, for address 0x0000000000000008
         initTestCase function time: 61ms, total time: 61ms
<end of output>
Test time =   0.08 sec
----------------------------------------------------------
Test Failed.
"kitemlistcontrollerexpandtest" end time: Sep 04 18:28 UTC
"kitemlistcontrollerexpandtest" time elapsed: 00:00:00
----------------------------------------------------------
```


I'll check again later after full world update