CircleCI fails on pypy3 build
See original GitHub issueSeveral pypy3 builds on circleci have been failing recently, example: https://app.circleci.com/pipelines/github/scikit-learn/scikit-learn/8663/workflows/a0349bb9-2c2f-4334-85f2-c48f09a1a30d/jobs/122623
This is kind of a blocker for the 0.24 release since conda-forge now builds for pypy.
Ping @rth
platform linux -- Python 3.6.9[pypy-7.2.0-final], pytest-6.1.1, py-1.9.0, pluggy-0.13.1
rootdir: /root/project, configfile: setup.cfg
collecting 3 items Fatal Python error: Segmentation fault
Stack (most recent call first, approximate line numbers):
File "/root/project/pypy-env/site-packages/numpy/core/_asarray.py", line 16 in asarray
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File "/root/project/sklearn/manifold/_t_sne.py", line 11 in <module>
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File "/root/project/sklearn/manifold/__init__.py", line 1 in <module>
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File "/root/project/sklearn/cluster/_spectral.py", line 2 in <module>
File ???
File ???
File ???
File ???
File ???
File ???
File ???
File "/root/project/sklearn/cluster/__init__.py", line 1 in <module>
File ???
File ???
File ???
File ???
File ???
File ???
File "/usr/local/lib-python/3/importlib/__init__.py", line 108 in import_module
File "/root/project/pypy-env/site-packages/_pytest/pathlib.py", line 444 in import_path
File "/root/project/pypy-env/site-packages/_pytest/doctest.py", line 491 in collect
File "/root/project/pypy-env/site-packages/_pytest/runner.py", line 340 in <lambda>
File "/root/project/pypy-env/site-packages/_pytest/runner.py", line 299 in from_call
File "/root/project/pypy-env/site-packages/_pytest/runner.py", line 339 in pytest_make_collect_report
File "/root/project/pypy-env/site-packages/pluggy/callers.py", line 157 in _multicall
File "/root/project/pypy-env/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/root/project/pypy-env/site-packages/pluggy/manager.py", line 90 in _hookexec
File "/root/project/pypy-env/site-packages/pluggy/hooks.py", line 272 in __call__
File "/root/project/pypy-env/site-packages/_pytest/runner.py", line 454 in collect_one_node
File "/root/project/pypy-env/site-packages/_pytest/main.py", line 791 in genitems
File "/root/project/pypy-env/site-packages/_pytest/main.py", line 571 in perform_collect
File "/root/project/pypy-env/site-packages/_pytest/main.py", line 322 in pytest_collection
File "/root/project/pypy-env/site-packages/pluggy/callers.py", line 157 in _multicall
File "/root/project/pypy-env/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/root/project/pypy-env/site-packages/pluggy/manager.py", line 90 in _hookexec
File "/root/project/pypy-env/site-packages/pluggy/hooks.py", line 272 in __call__
File "/root/project/pypy-env/site-packages/_pytest/main.py", line 309 in _main
File "/root/project/pypy-env/site-packages/_pytest/main.py", line 244 in wrap_session
File "/root/project/pypy-env/site-packages/_pytest/main.py", line 305 in pytest_cmdline_main
File "/root/project/pypy-env/site-packages/pluggy/callers.py", line 157 in _multicall
File "/root/project/pypy-env/site-packages/pluggy/manager.py", line 84 in <lambda>
File "/root/project/pypy-env/site-packages/pluggy/manager.py", line 90 in _hookexec
File "/root/project/pypy-env/site-packages/pluggy/hooks.py", line 272 in __call__
File "/root/project/pypy-env/site-packages/_pytest/config/__init__.py", line 130 in main
File "/root/project/pypy-env/site-packages/_pytest/config/__init__.py", line 180 in console_main
File "/root/project/pypy-env/site-packages/pytest/__main__.py", line 1 in <module>
File "/usr/local/lib-python/3/runpy.py", line 62 in _run_code
File "/usr/local/lib-python/3/runpy.py", line 167 in _run_module_as_main
File "<builtin>/app_main.py", line 88 in run_toplevel
File "<builtin>/app_main.py", line 560 in run_command_line
File "<builtin>/app_main.py", line 862 in entry_point
./build_tools/circle/build_test_pypy.sh: line 46: 7987 Segmentation fault (core dumped) python -m pytest sklearn/
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Build with circleci/python:3 started failing since yesterday
In this job I build a docker docker container with a long-ish requirements.txt file. The build fails using the circleci/python:3 image.
Read more >4de8b1a73adf - Quay.io
Hosted private Docker repositories. Includes full user management and history. Free for public repositories.
Read more >cibuildwheel - PyPI
Build Python wheels on CI with minimal configuration. ... CircleCI, and GitLab CI - and it builds and tests your wheels across all...
Read more >Development — bezier 2021.2.12 documentation
To build the Fortran shared library directly, use CMake version 3.1 or later: ... explicitly exercise the binary extension will skip (rather than...
Read more >config.yml in trunk/.circleci - Tahoe-LAFS
Restore default image building setup. ... 69, # faster and takes various spurious failures out of the critical path. 70, triggers: 71, #...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s possible to reproduce easily with an env dedicated to pypy from conda-forge as follows:
yields:
However if you replace the pypy artifacts generated by this PR:
https://github.com/conda-forge/pypy3.6-feedstock/pull/30#issuecomment-721819190
then it works:
I have had a look to the segfaults. For the sake of completness here is the list of the import giving a segfault with pypy:
import sklearn.cluster
import sklearn.ensemble
import sklearn.inspection
import sklearn.manifold
import sklearn.mixture
import sklearn.tree