Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
BBC RussianHomePhabricator
Log In
Maniphest T365943

coverage upload fails on Appveyor for Python 3.11
Closed, ResolvedPublicBUG REPORT

Description

codecovcli do-upload fails with Python 3.11:

Installing collected packages: rfc3986, ijson, tree-sitter, test-results-parser, sniffio, pyyaml, h11, click, responses, anyio, httpcore, httpx, codecov-cli
Successfully installed anyio-4.3.0 click-8.1.7 codecov-cli-0.6.0 h11-0.14.0 httpcore-0.16.3 httpx-0.23.3 ijson-3.2.3 pyyaml-6.0.1 responses-0.21.0 rfc3986-1.5.0 sniffio-1.3.1 test-results-parser-0.1.0 tree-sitter-0.20.4
codecovcli do-upload
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Python311-x64\Scripts\codecovcli.exe\__main__.py", line 4, in <module>
  File "C:\Python311-x64\Lib\site-packages\codecov_cli\main.py", line 17, in <module>
    from codecov_cli.commands.staticanalysis import static_analysis
  File "C:\Python311-x64\Lib\site-packages\codecov_cli\commands\staticanalysis.py", line 10, in <module>
    from codecov_cli.services.staticanalysis import run_analysis_entrypoint
  File "C:\Python311-x64\Lib\site-packages\codecov_cli\services\staticanalysis\__init__.py", line 15, in <module>
    from codecov_cli.services.staticanalysis.analyzers import get_best_analyzer
  File "C:\Python311-x64\Lib\site-packages\codecov_cli\services\staticanalysis\analyzers\__init__.py", line 2, in <module>
    from codecov_cli.services.staticanalysis.analyzers.javascript_es6 import ES6Analyzer
  File "C:\Python311-x64\Lib\site-packages\codecov_cli\services\staticanalysis\analyzers\javascript_es6\__init__.py", line 5, in <module>
    import staticcodecov_languages
ModuleNotFoundError: No module named 'staticcodecov_languages'
Command exited with code 1

See also https://github.com/codecov/codecov-cli/issues/404

Event Timeline

Xqt triaged this task as Medium priority.May 26 2024, 1:34 PM
Xqt changed the subtype of this task from "Task" to "Bug Report".
Xqt moved this task from Backlog to Upstream issues on the Pywikibot board.
Xqt moved this task from Backlog to Upstream issues on the Pywikibot-tests board.

Change #1035894 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] ignore codecov-cli for Python 3.11 due to T365943

https://gerrit.wikimedia.org/r/1035894

Change #1035894 merged by Xqt:

[pywikibot/core@master] [tests] ignore codecov-cli for Python 3.11 due to T365943

https://gerrit.wikimedia.org/r/1035894

Xqt changed the task status from Open to Stalled.May 26 2024, 3:43 PM

Waiting for upstream.

Xqt renamed this task from coverage uploade fails on Appveyor for Python 3.11 to coverage upload fails on Appveyor for Python 3.11.May 26 2024, 3:43 PM

Change #1048840 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] remove coverage from Appveyor tests

https://gerrit.wikimedia.org/r/1048840

Xqt claimed this task.

Change #1048840 merged by Xqt:

[pywikibot/core@master] [tests] remove coverage from Appveyor tests

https://gerrit.wikimedia.org/r/1048840