Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test against Python 3.11 #399

Merged
merged 3 commits into from
Apr 12, 2022
Merged

Test against Python 3.11 #399

merged 3 commits into from
Apr 12, 2022

Conversation

Mariatta
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jan 27, 2022

Codecov Report

Merging #399 (eccd492) into master (c5765fa) will not change coverage.
The diff coverage is n/a.

❗ Current head eccd492 differs from pull request most recent head b7aa150. Consider uploading reports for the commit b7aa150 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##            master      #399    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           20        10    -10     
  Lines         1732      1298   -434     
==========================================
- Hits          1732      1298   -434     
Impacted Files Coverage Δ
tests/test_news.py 100.00% <0.00%> (ø)
tests/test_prtype.py 100.00% <0.00%> (ø)
tests/test_filepaths.py 100.00% <0.00%> (ø)
bedevere/news.py
bedevere/stage.py
bedevere/prtype.py
bedevere/follow_up.py
bedevere/util.py
bedevere/close_pr.py
bedevere/__main__.py
... and 5 more

@Mariatta
Copy link
Member Author

https://github.com/python/bedevere/runs/4970978318?check_suite_focus=true#step:6:259

gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.11.0-alpha.4/x64/include/python3.11 -c yarl/_quoting_c.c -o build/temp.linux-x86_64-3.11/yarl/_quoting_c.o
yarl/_quoting_c.c:198:12: fatal error: longintrepr.h: No such file or directory
198 | #include "longintrepr.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1

Where should I file this bug? Is this CPython?

@hugovk
Copy link
Member

hugovk commented Mar 20, 2022

It's failing to build two dependencies: aiohttp and yarl.

aiohttp

  Building wheel for aiohttp (pyproject.toml): started
  Building wheel for aiohttp (pyproject.toml): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/hostedtoolcache/Python/3.11.0-alpha.4/x64/bin/python3 /opt/hostedtoolcache/Python/3.11.0-alpha.4/x64/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpa11gzy9x
       cwd: /tmp/pip-install-_8hxnwsb/aiohttp_fa477f768b7f4c68a1a782d353d4bc61
  Building wheel for multidict (pyproject.toml): started
  Complete output (99 lines):
  *********************
  * Accelerated build *
  *********************
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.11
  creating build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/locks.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/streams.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/connector.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_middlewares.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/client_proto.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/abc.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_server.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/worker.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/helpers.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/tcp_helpers.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/http_parser.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/cookiejar.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/log.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/payload.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_urldispatcher.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/formdata.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/client.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/client_exceptions.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/http_websocket.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/http.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/hdrs.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_ws.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/multipart.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/client_reqrep.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_routedef.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/typedefs.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/test_utils.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_protocol.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/__init__.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/http_writer.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_response.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_app.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_fileresponse.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/base_protocol.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_log.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/client_ws.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_exceptions.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/pytest_plugin.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/http_exceptions.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_runner.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/payload_streamer.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/tracing.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/web_request.py -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/resolver.py -> build/lib.linux-x86_64-3.11/aiohttp
  running egg_info
  warning: no files found matching 'aiohttp' anywhere in distribution
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files matching '*.pyd' found anywhere in distribution
  warning: no previously-included files matching '*.so' found anywhere in distribution
  warning: no previously-included files matching '*.lib' found anywhere in distribution
  warning: no previously-included files matching '*.dll' found anywhere in distribution
  warning: no previously-included files matching '*.a' found anywhere in distribution
  warning: no previously-included files matching '*.obj' found anywhere in distribution
  warning: no previously-included files found matching 'aiohttp/*.html'
  no previously-included directories found matching 'docs/_build'
  writing manifest file 'aiohttp.egg-info/SOURCES.txt'
  copying aiohttp/_cparser.pxd -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_find_header.c -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_find_header.h -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_find_header.pxd -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_headers.pxi -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_helpers.c -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_helpers.pyi -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_helpers.pyx -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_http_parser.c -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_http_parser.pyx -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_http_writer.c -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_http_writer.pyx -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_websocket.c -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/_websocket.pyx -> build/lib.linux-x86_64-3.11/aiohttp
  copying aiohttp/py.typed -> build/lib.linux-x86_64-3.11/aiohttp
  creating build/lib.linux-x86_64-3.11/aiohttp/.hash
  copying aiohttp/.hash/_cparser.pxd.hash -> build/lib.linux-x86_64-3.11/aiohttp/.hash
  copying aiohttp/.hash/_find_header.pxd.hash -> build/lib.linux-x86_64-3.11/aiohttp/.hash
  copying aiohttp/.hash/_helpers.pyi.hash -> build/lib.linux-x86_64-3.11/aiohttp/.hash
  copying aiohttp/.hash/_helpers.pyx.hash -> build/lib.linux-x86_64-3.11/aiohttp/.hash
  copying aiohttp/.hash/_http_parser.pyx.hash -> build/lib.linux-x86_64-3.11/aiohttp/.hash
  copying aiohttp/.hash/_http_writer.pyx.hash -> build/lib.linux-x86_64-3.11/aiohttp/.hash
  copying aiohttp/.hash/_websocket.pyx.hash -> build/lib.linux-x86_64-3.11/aiohttp/.hash
  copying aiohttp/.hash/hdrs.py.hash -> build/lib.linux-x86_64-3.11/aiohttp/.hash
  running build_ext
  creating build/temp.linux-x86_64-3.11
  creating build/temp.linux-x86_64-3.11/aiohttp
  gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.11.0-alpha.4/x64/include/python3.11 -c aiohttp/_websocket.c -o build/temp.linux-x86_64-3.11/aiohttp/_websocket.o
  aiohttp/_websocket.c:[198](https://github.com/python/bedevere/runs/4970978318?check_suite_focus=true#step:6:198):12: fatal error: longintrepr.h: No such file or directory
    198 |   #include "longintrepr.h"
        |            ^~~~~~~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for aiohttp

yarl

  Building wheel for yarl (pyproject.toml): started
  Building wheel for yarl (pyproject.toml): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: /opt/hostedtoolcache/Python/3.11.0-alpha.4/x64/bin/python3 /opt/hostedtoolcache/Python/3.11.0-alpha.4/x64/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpur6k0hxt
       cwd: /tmp/pip-install-_8hxnwsb/yarl_fcab276c821c4affbd0975[247](https://github.com/python/bedevere/runs/4970978318?check_suite_focus=true#step:6:247)d63b529
  Complete output (35 lines):
  **********************
  * Accelerated build *
  **********************
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.11
  creating build/lib.linux-x86_64-3.11/yarl
  copying yarl/_quoting.py -> build/lib.linux-x86_64-3.11/yarl
  copying yarl/_quoting_py.py -> build/lib.linux-x86_64-3.11/yarl
  copying yarl/_url.py -> build/lib.linux-x86_64-3.11/yarl
  copying yarl/__init__.py -> build/lib.linux-x86_64-3.11/yarl
  running egg_info
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files matching '*.cache' found anywhere in distribution
  warning: no previously-included files found matching 'yarl/*.html'
  warning: no previously-included files found matching 'yarl/*.so'
  warning: no previously-included files found matching 'yarl/*.pyd'
  Building wheel for frozenlist (pyproject.toml): started
  no previously-included directories found matching 'docs/_build'
  writing manifest file 'yarl.egg-info/SOURCES.txt'
  copying yarl/__init__.pyi -> build/lib.linux-x86_64-3.11/yarl
  copying yarl/_quoting_c.c -> build/lib.linux-x86_64-3.11/yarl
  copying yarl/_quoting_c.pyi -> build/lib.linux-x86_64-3.11/yarl
  copying yarl/_quoting_c.pyx -> build/lib.linux-x86_64-3.11/yarl
  copying yarl/py.typed -> build/lib.linux-x86_64-3.11/yarl
  running build_ext
  creating build/temp.linux-x86_64-3.11
  creating build/temp.linux-x86_64-3.11/yarl
  gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/opt/hostedtoolcache/Python/3.11.0-alpha.4/x64/include/python3.11 -c yarl/_quoting_c.c -o build/temp.linux-x86_64-3.11/yarl/_quoting_c.o
  yarl/_quoting_c.c:198:12: fatal error: longintrepr.h: No such file or directory
    198 |   #include "longintrepr.h"
        |            ^~~~~~~~~~~~~~~
  compilation terminated.
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for yarl

@hugovk
Copy link
Member

hugovk commented Mar 20, 2022

These fail due to the same thing: fatal error: longintrepr.h: No such file or directory


There's already an issue for aiohttp:

Says that it's a Cython issue that's been fixed and released, and that aiohttp needs to update Cython and make a new release.


And for yarl, but closed saying it needs reporting to Cython:

Here's the Cython issue:

Fixed by this PR:


Possible workarounds?

setenv =
  # https://github.com/aio-libs/aiohttp/issues/6600
  AIOHTTP_NO_EXTENSIONS = 1
  # https://github.com/aio-libs/yarl/issues/680
  YARL_NO_EXTENSIONS = 1

scop/pytekukko#54

hugovk and others added 2 commits April 12, 2022 08:54
* Allow testing feature branches, enable manual trigger and add colour to logs

* Workaround for Python 3.11

* Remove unused deadsnakes/action

* Bump actions to v3

* Bump actions/cache to v3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants