[Webkit-unassigned] [Bug 251206] New: [webkitpy] WebDriver tests need third-party "exceptiongroup" module with Python <3.11

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 26 06:06:46 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=251206

            Bug ID: 251206
           Summary: [webkitpy] WebDriver tests need third-party
                    "exceptiongroup" module with Python <3.11
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aperez at igalia.com

PyTest now uses the new "exceptiongroup" module which comes with Python 3.11,
but there is an installable backport in PyPI which covers the functionality
needed by PyTest: https://pypi.org/project/exceptiongroup/#description

The lack of this module causes errors like the following (thanks to Diego Pino
for reporting this):

python3 Tools/Scripts/run-webdriver-tests --json-output=webdriver_tests.json --release --gtk
 in dir /home/buildbot/worker/GTK-Linux-64-bit-Release-WebDriver-Tests/build (timeout 1200 secs)
 watching logfiles {'json': 'webdriver_tests.json'}
 argv: [b'python3', b'Tools/Scripts/run-webdriver-tests', b'--json-output=webdriver_tests.json', b'--release', b'--gtk']
 environment:
  DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/104/bus
  DISPLAY=:0
  HOME=/home/buildbot
  INVOCATION_ID=76102dbca9a34ba5b5ee8fad9c4455a8
  JOURNAL_STREAM=8:2610045172
  LANG=en_US.UTF-8
  LOGNAME=buildbot
  MAIL=/var/mail/buildbot
  NUMBER_OF_PROCESSORS=2
  PATH=/etc/zipwrapper:/usr/lib/ccache:/usr/lib/gold-ld:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
  PWD=/home/buildbot/worker/GTK-Linux-64-bit-Release-WebDriver-Tests/build
  RUNTIME_DIRECTORY=/run/buildbot
  SHELL=/bin/bash
  SHLVL=0
  TERM=dumb
  TZ=PST8PDT
  USER=buildbot
  WEBKITBOT_TASKSTOKILL=dbus-daemon
  WEBKIT_JHBUILD=0
  WEBKIT_TEST_CHILD_PROCESSES=1
  XAUTHORITY=/tmp/xvfb-run.NKIXYu/Xauthority
  XDG_DATA_DIRS=/var/lib/flatpak/exports/share:/usr/local/share/:/usr/share/
  XDG_RUNTIME_DIR=/run/user/104
  _=/home/buildbot/venv/bin/twistd
 using PTY: False
Using port gtk
Test configuration: <, x86, release>
Using display server xvfb
Using driver at /app/webkit/WebKitBuild/Release/bin/WebKitWebDriver
Browser: MiniBrowser
Parsing expectations
Traceback (most recent call last):
  File "/app/webkit/Tools/Scripts/run-webdriver-tests", line 85, in <module>
    runner.run(args)
  File "/app/webkit/Tools/Scripts/webkitpy/webdriver_tests/webdriver_test_runner.py", line 70, in run
    runner_tests = [runner.collect_tests(tests) for runner in self._runners]
  File "/app/webkit/Tools/Scripts/webkitpy/webdriver_tests/webdriver_test_runner.py", line 70, in <listcomp>
    runner_tests = [runner.collect_tests(tests) for runner in self._runners]
  File "/app/webkit/Tools/Scripts/webkitpy/webdriver_tests/webdriver_test_runner_selenium.py", line 49, in collect_tests
    executor = WebDriverSeleniumExecutor(self._driver, self._env)
  File "/app/webkit/Tools/Scripts/webkitpy/webdriver_tests/webdriver_selenium_executor.py", line 52, in __init__
    do_delayed_imports()
  File "/app/webkit/Tools/Scripts/webkitpy/webdriver_tests/webdriver_selenium_executor.py", line 30, in do_delayed_imports
    import webkitpy.webdriver_tests.pytest_runner as pytest_runner
  File "/app/webkit/Tools/Scripts/webkitpy/webdriver_tests/pytest_runner.py", line 32, in <module>
    import pytest
  File "/app/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/pytest/__init__.py", line 5, in <module>
    from _pytest._code import ExceptionInfo
  File "/app/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/_pytest/_code/__init__.py", line 2, in <module>
    from .code import Code
  File "/app/webkit/Tools/Scripts/libraries/autoinstalled/python-3-x86_64/_pytest/_code/code.py", line 60, in <module>
    from exceptiongroup import BaseExceptionGroup
ModuleNotFoundError: No module named 'exceptiongroup'
program finished with exit code 1
elapsedTime=1.144706

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230126/b4b54aa5/attachment.htm>


More information about the webkit-unassigned mailing list