Bug 429640 - AnnotationToolBarTest fails: AnnotationToolBarTest::testAnnotationToolBar(first tab) '(annToolBar->isVisible())' returned FALSE. (ToolBar not shown when triggering annotation using shortcut.)
Summary: AnnotationToolBarTest fails: AnnotationToolBarTest::testAnnotationToolBar(fir...
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.11.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL: https://bugs.gentoo.org/show_bug.cgi?...
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-25 12:45 UTC by Andreas Sturmlechner
Modified: 2020-12-25 04:34 UTC (History)
1 user (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 Andreas Sturmlechner 2020-11-25 12:45:05 UTC
18/21 Testing: annotationtoolbartest
18/21 Test: annotationtoolbartest
Command: "/var/tmp/portage/kde-apps/okular-20.08.3/work/okular-20.08.3_build/bin/annotationtoolbartest"
Directory: /var/tmp/portage/kde-apps/okular-20.08.3/work/okular-20.08.3_build/autotests
"annotationtoolbartest" start time: Nov 18 10:39 CET
Output:
----------------------------------------------------------
kf.i18n: KCatalog being used without a Q*Application instance. Some translations won't work
********* Start testing of AnnotationToolBarTest *********
Config: Using QtTest library 5.15.1, Qt 5.15.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 9.3.0)
PASS   : AnnotationToolBarTest::initTestCase()
QDEBUG : AnnotationToolBarTest::testAnnotationToolBar(first tab) Settings::instance called after the first use - ignoring
QDEBUG : AnnotationToolBarTest::testAnnotationToolBar(first tab) Settings::instance called after the first use - ignoring
FAIL!  : AnnotationToolBarTest::testAnnotationToolBar(first tab) '(annToolBar->isVisible())' returned FALSE. (ToolBar not shown when triggering annotation using shortcut.)
   Loc: [/var/tmp/portage/kde-apps/okular-20.08.3/work/okular-20.08.3/autotests/annotationtoolbartest.cpp(183)]
QDEBUG : AnnotationToolBarTest::testAnnotationToolBar(second tab) Settings::instance called after the first use - ignoring
QDEBUG : AnnotationToolBarTest::testAnnotationToolBar(second tab) Settings::instance called after the first use - ignoring
FAIL!  : AnnotationToolBarTest::testAnnotationToolBar(second tab) '(annToolBar->isVisible())' returned FALSE. (ToolBar not shown when triggering annotation using shortcut.)
   Loc: [/var/tmp/portage/kde-apps/okular-20.08.3/work/okular-20.08.3/autotests/annotationtoolbartest.cpp(183)]
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarActionsEnabledState(pdf) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarActionsEnabledState(pdf)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarActionsEnabledState(protected-pdf) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarActionsEnabledState(protected-pdf)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarActionsEnabledState(image) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarActionsEnabledState(image)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_highlighter) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_highlighter)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_underline) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_underline)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_squiggle) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_squiggle)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_strike_out) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_strike_out)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_typewriter) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_typewriter)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_inline_note) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_inline_note)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_popup_note) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_popup_note)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_freehand_line) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_freehand_line)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_line) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_line)
QDEBUG : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_rectangle) Settings::instance called after the first use - ignoring
PASS   : AnnotationToolBarTest::testAnnotationToolBarConfigActionsEnabledState(annotation_rectangle)
PASS   : AnnotationToolBarTest::cleanupTestCase()
Totals: 15 passed, 2 failed, 0 skipped, 0 blacklisted, 32690ms
********* Finished testing of AnnotationToolBarTest *********
<end of output>
Test time =  32.73 sec
----------------------------------------------------------
Test Failed.
"annotationtoolbartest" end time: Nov 18 10:40 CET
"annotationtoolbartest" time elapsed: 00:00:32
----------------------------------------------------------


Downstream report (detailed logs inside the attachment - comment (20) towards the end):
https://bugs.gentoo.org/show_bug.cgi?id=kde-apps-20.08.3-stable


I can confirm the observation on my own system using:
Operating System: Gentoo
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.9.9-gentoo
OS Type: 64-bit
Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 62.8 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Comment 1 Albert Astals Cid 2020-11-25 22:18:15 UTC
How are you running the tests?

These tests move your mouse and need a real X11 server.

If you don't have that, "you're doing it wrong" and it will fail.

We have CI running on okular and the tests have not failed in like "forever" https://build.kde.org/view/OS%20-%20Linux/job/Applications/job/okular/job/stable-kf5-qt5%20SUSEQt5.14/ so to me it seems a local problem
Comment 2 Bug Janitor Service 2020-12-10 04:34:37 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 2020-12-25 04:34:27 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!