You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The action failed because of an import error in the test file tests/bidi/cdp/test_network.py.
Specifically, at line 5 of this file, there's an attempt to import: from selenium.webdriver.common.devtools.v131.network import Headers
The error is: ModuleNotFoundError: No module named 'selenium.webdriver.common.devtools.v131'
This suggests that either: 1. The selenium package installed doesn't include the v131 devtools module 2. The test is trying to use a newer version of devtools than what's available in the installed selenium package
Relevant error logs:
1: ##[group]Operating System2: Microsoft Windows Server 2022
...
301: Version: 11.0.26+4302: Path: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.26-4\x64303: ##[endgroup]304: Creating settings.xml with server-id: github305: Writing to C:\Users\runneradmin\.m2\settings.xml306: ##[group]Run nick-invision/retry@v3.0.2307: with:308: timeout_minutes: 60309: max_attempts: 3310: command: cd examples/python311: pytest --reruns 3312:
313: retry_wait_seconds: 10314: polling_interval_seconds: 1315: warning_on_retry: true316: continue_on_error: false317: env:
...
319: GITHUB_TOKEN: ***320: GH_TOKEN: ***321: pythonLocation: C:\hostedtoolcache\windows\Python\3.9.13\x64322: PKG_CONFIG_PATH: C:\hostedtoolcache\windows\Python\3.9.13\x64/lib/pkgconfig323: Python_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.9.13\x64324: Python2_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.9.13\x64325: Python3_ROOT_DIR: C:\hostedtoolcache\windows\Python\3.9.13\x64326: JAVA_HOME: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.26-4\x64327: JAVA_HOME_11_X64: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.26-4\x64328: ##[endgroup]329: ##[group]Attempt 1330: ============================= test session starts =============================331: platform win32 -- Python 3.9.13, pytest-8.3.5, pluggy-1.5.0332: rootdir: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python333: plugins: rerunfailures-15.0, trio-0.8.0334: collected 158 items / 1 error335: =================================== ERRORS ====================================336: _______________ ERROR collecting tests/bidi/cdp/test_network.py _______________337: ImportError while importing test module 'D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\cdp\test_network.py'.338: Hint: make sure your test modules/packages have valid Python names.339: Traceback:340: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\importlib\__init__.py:127: in import_module341: return _bootstrap._gcd_import(name[level:], package, level)342: tests\bidi\cdp\test_network.py:5: in <module>343: from selenium.webdriver.common.devtools.v131.network import Headers344: E ModuleNotFoundError: No module named 'selenium.webdriver.common.devtools.v131'345: ============================== warnings summary ===============================346: tests\bidi\test_bidi_logging.py:6347: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:6: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html348: @pytest.mark.driver_type("bidi")349: tests\bidi\test_bidi_logging.py:18350: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:18: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html351: @pytest.mark.driver_type("bidi")352: tests\bidi\test_bidi_logging.py:30353: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:30: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html354: @pytest.mark.driver_type("bidi")355: tests\bidi\test_bidi_logging.py:42356: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:42: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html357: @pytest.mark.driver_type("bidi")358: -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html359: =========================== short test summary info ===========================360: ERROR tests/bidi/cdp/test_network.py361: !!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!362: ======================== 4 warnings, 1 error in 41.44s ========================363: ##[warning]Attempt 1 failed. Reason: Child_process exited with error code 1364: ##[endgroup]365: ##[group]Attempt 2366: ============================= test session starts =============================367: platform win32 -- Python 3.9.13, pytest-8.3.5, pluggy-1.5.0368: rootdir: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python369: plugins: rerunfailures-15.0, trio-0.8.0370: collected 158 items / 1 error371: =================================== ERRORS ====================================372: _______________ ERROR collecting tests/bidi/cdp/test_network.py _______________373: ImportError while importing test module 'D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\cdp\test_network.py'.374: Hint: make sure your test modules/packages have valid Python names.375: Traceback:376: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\importlib\__init__.py:127: in import_module377: return _bootstrap._gcd_import(name[level:], package, level)378: tests\bidi\cdp\test_network.py:5: in <module>379: from selenium.webdriver.common.devtools.v131.network import Headers380: E ModuleNotFoundError: No module named 'selenium.webdriver.common.devtools.v131'381: ============================== warnings summary ===============================382: tests\bidi\test_bidi_logging.py:6383: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:6: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html384: @pytest.mark.driver_type("bidi")385: tests\bidi\test_bidi_logging.py:18386: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:18: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html387: @pytest.mark.driver_type("bidi")388: tests\bidi\test_bidi_logging.py:30389: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:30: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html390: @pytest.mark.driver_type("bidi")391: tests\bidi\test_bidi_logging.py:42392: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:42: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html393: @pytest.mark.driver_type("bidi")394: -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html395: =========================== short test summary info ===========================396: ERROR tests/bidi/cdp/test_network.py397: !!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!398: ======================== 4 warnings, 1 error in 10.32s ========================399: ##[warning]Attempt 2 failed. Reason: Child_process exited with error code 1400: ##[endgroup]401: ##[group]Attempt 3402: ============================= test session starts =============================403: platform win32 -- Python 3.9.13, pytest-8.3.5, pluggy-1.5.0404: rootdir: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python405: plugins: rerunfailures-15.0, trio-0.8.0406: collected 158 items / 1 error407: =================================== ERRORS ====================================408: _______________ ERROR collecting tests/bidi/cdp/test_network.py _______________409: ImportError while importing test module 'D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\cdp\test_network.py'.410: Hint: make sure your test modules/packages have valid Python names.411: Traceback:412: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\importlib\__init__.py:127: in import_module413: return _bootstrap._gcd_import(name[level:], package, level)414: tests\bidi\cdp\test_network.py:5: in <module>415: from selenium.webdriver.common.devtools.v131.network import Headers416: E ModuleNotFoundError: No module named 'selenium.webdriver.common.devtools.v131'417: ============================== warnings summary ===============================418: tests\bidi\test_bidi_logging.py:6419: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:6: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html420: @pytest.mark.driver_type("bidi")421: tests\bidi\test_bidi_logging.py:18422: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:18: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html423: @pytest.mark.driver_type("bidi")424: tests\bidi\test_bidi_logging.py:30425: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:30: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html426: @pytest.mark.driver_type("bidi")427: tests\bidi\test_bidi_logging.py:42428: D:\a\seleniumhq.github.io\seleniumhq.github.io\examples\python\tests\bidi\test_bidi_logging.py:42: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html429: @pytest.mark.driver_type("bidi")430: -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html431: =========================== short test summary info ===========================432: ERROR tests/bidi/cdp/test_network.py433: !!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!434: ======================== 4 warnings, 1 error in 8.56s =========================435: ##[endgroup]436: ##[error]Final attempt failed. Child_process exited with error code 1437: Post job cleanup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==14.0->==15.0Release Notes
pytest-dev/pytest-rerunfailures (pytest-rerunfailures)
v15.0Compare Source
Breaking changes
++++++++++++++++
Drop support for Python 3.8.
Drop support for pytest < 7.4.
Features
++++++++
Fix compatibility with pytest 8.2.
(
#​267 <https://github.com/pytest-dev/pytest-rerunfailures/issues/267>_)Add support for pytest 8.2, 8.3.
Add
--fail-on-flakyoption to fail the test run with custom exit codewhen test passed on rerun.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.