Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 819393 - www-client/qutebrowser-2.4.0 test_custom_env[_POSIXUserscriptRunner] fails if environment is too large
Summary: www-client/qutebrowser-2.4.0 test_custom_env[_POSIXUserscriptRunner] fails if...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-22 04:48 UTC by Agostino Sarubbo
Modified: 2021-10-22 07:26 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,906.15 KB, text/plain)
2021-10-22 04:48 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 2021-10-22 04:48:01 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: www-client/qutebrowser-2.4.0 fails tests.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-10-22 04:48:04 UTC
Created attachment 746085 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-10-22 04:48:05 UTC
Possible context of error(s):

SKIPPED [1] tests/unit/browser/test_history.py:316: could not import 'PyQt5.QtWebKitWidgets': No module named 'PyQt5.QtWebKitWidgets'
SKIPPED [1] tests/unit/browser/webkit/test_mhtml.py:28: could not import 'qutebrowser.browser.webkit.mhtml': No module named 'PyQt5.QtWebKit'
SKIPPED [1] tests/unit/browser/webkit/test_tabhistory.py:26: could not import 'PyQt5.QtWebKit': No module named 'PyQt5.QtWebKit'
SKIPPED [1] tests/unit/browser/webkit/test_webkitelem.py:31: could not import 'PyQt5.QtWebKit': No module named 'PyQt5.QtWebKit'
SKIPPED [1] tests/unit/browser/webkit/test_webkitsettings.py:21: could not import 'PyQt5.QtWebKitWidgets': No module named 'PyQt5.QtWebKitWidgets'
SKIPPED [1] tests/unit/browser/webkit/test_webview.py:21: could not import 'qutebrowser.browser.webkit.webview': No module named 'PyQt5.QtWebKit'
SKIPPED [1] tests/unit/components/test_misccommands.py:71: could not import 'hunter': No module named 'hunter'
SKIPPED [1] tests/unit/javascript/position_caret/test_position_caret.py:24: could not import 'PyQt5.QtWebKit': No module named 'PyQt5.QtWebKit'
SKIPPED [1] tests/unit/misc/test_sessions.py:27: could not import 'PyQt5.QtWebKitWidgets': No module named 'PyQt5.QtWebKitWidgets'
SKIPPED [1] tests/unit/utils/test_debug.py:189: could not import 'PyQt5.QtWebKitWidgets': No module named 'PyQt5.QtWebKitWidgets'
SKIPPED [1] tests/unit/utils/test_version.py:762: could not import 'importlib_resources': No module named 'importlib_resources'
SKIPPED [5] tests/helpers/fixtures.py:455: could not import 'PyQt5.QtWebKitWidgets': No module named 'PyQt5.QtWebKitWidgets'
SKIPPED [67] tests/helpers/fixtures.py:269: could not import 'qutebrowser.browser.webkit.webkittab': No module named 'PyQt5.QtWebKitWidgets'
tests/unit/misc/test_crashdialog.py::test_parse_fatal_stacktrace[\nFatal Python error: Segmentation fault\n_\nCurrent thread 0x00007f09b538d700 (most recent call first):\n  File "", line 1 in testfunc\n  File "filename", line 88 in func\n-Segmentation fault-testfunc] PASSED [ 75%]
Comment 3 Ionen Wolkens gentoo-dev 2021-10-22 05:17:49 UTC
Can't reproduce, given this test reads environment I assume it's something to do with what's set on the tinderbox.

I'll try to figure it out but environment file would help
Comment 4 Ionen Wolkens gentoo-dev 2021-10-22 07:08:04 UTC
Can't confirm if really the cause without env file, but one way to reproduce is to have a variable that expand beyond max possible arguments.

e.g.
export A=$(for ((i=0;i<3000;i++)); do echo a; done)
pytest -v "tests/unit/commands/test_userscripts.py::test_custom_env[_POSIXUserscriptRunner]"

It additionally need to be sorted before Q (the QUTE_ variables it tests for), i.e. Z=... rather than A= won't fail.

I don't consider this to be much of a real world case, so I'll just skip the test.
Comment 5 Larry the Git Cow gentoo-dev 2021-10-22 07:26:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c84df465999d2b6618bf2fdd1bb832877d17ee10

commit c84df465999d2b6618bf2fdd1bb832877d17ee10
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2021-10-22 07:15:21 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2021-10-22 07:25:02 +0000

    www-client/qutebrowser: skip test_custom_env posix userscript test
    
    Closes: https://bugs.gentoo.org/819393
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 www-client/qutebrowser/qutebrowser-2.3.1-r2.ebuild | 2 ++
 www-client/qutebrowser/qutebrowser-2.4.0.ebuild    | 2 ++
 www-client/qutebrowser/qutebrowser-9999.ebuild     | 2 ++
 3 files changed, 6 insertions(+)