Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933741 - net-p2p/nicotine+-3.3.4 fails tests: FAILED test_startup.py::StartupTest::test_gui_startup - AssertionError: False is not true
Summary: net-p2p/nicotine+-3.3.4 fails tests: FAILED test_startup.py::StartupTest::tes...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: gentoo-setan
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2024-06-07 13:46 UTC by Agostino Sarubbo
Modified: 2024-07-02 15:58 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,38.49 KB, application/x-xz)
2024-06-07 13:46 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-06-07 13:46:37 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-p2p/nicotine+-3.3.4 fails tests.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0015
Comment 1 Agostino Sarubbo gentoo-dev 2024-06-07 13:46:38 UTC
Created attachment 895308 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-06-07 13:46:39 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


E       AssertionError: False is not true
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
E               urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
FAILED pynicotine/tests/integration/test_startup.py::StartupTest::test_gui_startup - AssertionError: False is not true
FAILED pynicotine/tests/unit/test_version.py::VersionTest::test_update_check - urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>
(org.nicotine_plus.Nicotine:104): Gtk-CRITICAL **: 15:46:01.234: gtk_icon_theme_add_resource_path: assertion 'GTK_IS_ICON_THEME (self)' failed
(org.nicotine_plus.Nicotine:104): Gtk-CRITICAL **: 15:46:01.234: gtk_icon_theme_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
pynicotine/tests/integration/test_startup.py::StartupTest::test_gui_startup FAILED [ 3/62]
pynicotine/tests/unit/test_version.py::VersionTest::test_update_check FAILED [41/62]
TypeError: Argument 0 does not allow None as a value
E       socket.gaierror: [Errno -3] Temporary failure in name resolution
Comment 3 gentoo-setan 2024-06-07 14:15:05 UTC
could you please tell me if you are running this under GTK3+ or GTK4?
Comment 4 Agostino Sarubbo gentoo-dev 2024-06-07 14:20:25 UTC
I don't understand your question, the environment does not have a gui
Comment 5 gentoo-setan 2024-06-07 14:30:53 UTC
That explains much.
I have looked at those

(org.nicotine_plus.Nicotine:104): Gtk-CRITICAL **: 15:46:01.234: gtk_icon_theme_add_resource_path: assertion 'GTK_IS_ICON_THEME (self)' failed
(org.nicotine_plus.Nicotine:104): Gtk-CRITICAL **: 15:46:01.234: gtk_icon_theme_get_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
pynicotine/tests/integration/test_startup.py::StartupTest::test_gui_startup FAILED [ 3/62]

And thought that this could be connected somehow.

I have just emerged it with test succeeding on my main rig while offline.
I'll look into that.
Thanks for the report btw.
Comment 6 gentoo-setan 2024-06-19 18:01:24 UTC
The build logs after 5771 suggest thta GUI does not launch.
I thought that might be due to missing broadway USE flag, so I decided to check it.
I am unable to reproduce the bug in a clean desktop nomultilib chroots.

If i launch it with the GUI I get

[2024-06-19 19:53:31] Loading Python 3.12.3
[2024-06-19 19:53:31] Loading Nicotine+ 3.3.4
Unrecognized value "gl-no-fractional". Try GDK_DEBUG=help
[2024-06-19 19:53:32] Loading GTK 4.12.5

(org.nicotine_plus.Nicotine:18769): Gtk-WARNING **: 19:53:32.011: Unknown key gtk-modules in /home/setan/config/gtk-4.0/settings.ini
[2024-06-19 19:53:32] Loading plugin system
[2024-06-19 19:53:32] Loaded plugin Nicotine+ Commands
[2024-06-19 19:53:32] Listening on port: 2234
...

and without it

[2024-06-19 17:52:37] No graphical environment available, using headless (no GUI) mode
[2024-06-19 17:52:37] Loading Python 3.12.3 (main, Jun  9 2024, 17:22:44) [GCC 13.2.1 20240210]
[2024-06-19 17:52:37] Loading Nicotine+ 3.2.9
[2024-06-19 17:52:37] Listening on port: 2234
...

@Agostino Sarubbo
It seems to me like you have an environment variable but not a graphical environment..?

Also are you running the test with good DNS setup?
the "Temporary failure in name resolution" makes me think that it has something to do with the errors.
Comment 7 gentoo-setan 2024-07-02 15:58:46 UTC
@ago@gentoo.org

can you please help me reproduce the bug?