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

fix doctest failure in aarch64 wheels #9

Open
MLopez-Ibanez opened this issue Sep 6, 2024 · 0 comments
Open

fix doctest failure in aarch64 wheels #9

MLopez-Ibanez opened this issue Sep 6, 2024 · 0 comments

Comments

@MLopez-Ibanez
Copy link
Contributor

      + pip install virtualenv -c /constraints.txt
  Collecting virtualenv
    Downloading virtualenv-20.25.1-py3-none-any.whl.metadata (4.4 kB)
  Collecting distlib<1,>=0.3.7 (from virtualenv)
    Downloading distlib-0.3.8-py2.py3-none-any.whl.metadata (5.1 kB)
  Collecting filelock<4,>=3.12.2 (from virtualenv)
    Downloading filelock-3.13.1-py3-none-any.whl.metadata (2.8 kB)
  Collecting platformdirs<5,>=3.9.1 (from virtualenv)
    Downloading platformdirs-4.2.0-py3-none-any.whl.metadata (11 kB)
  Downloading virtualenv-20.25.1-py3-none-any.whl (3.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.8/3.8 MB 12.0 MB/s eta 0:00:00
  Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 468.9/468.9 kB 11.4 MB/s eta 0:00:00
  Downloading filelock-3.13.1-py3-none-any.whl (11 kB)
  Downloading platformdirs-4.2.0-py3-none-any.whl (17 kB)
  Installing collected packages: distlib, platformdirs, filelock, virtualenv
  Successfully installed distlib-0.3.8 filelock-3.13.1 platformdirs-4.2.0 virtualenv-20.25.1
      + mktemp -d
      + python -m virtualenv --no-download /tmp/tmp.qU8oHxljdl/venv
  created virtual environment CPython3.10.13.final.0-64 in 3481ms
    creator CPython3Posix(dest=/tmp/tmp.qU8oHxljdl/venv, clear=False, no_vcs_ignore=False, global=False)
    seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)
      added seed packages: pip==24.0, setuptools==69.1.0, wheel==0.42.0
    activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
      + pip install /tmp/cibuildwheel/repaired_wheel/moocore-0.1.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  Processing /tmp/cibuildwheel/repaired_wheel/moocore-0.1.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
  Collecting cffi>=1.15.1 (from moocore==0.1.1)
    Using cached cffi-1.17.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (1.5 kB)
  Collecting numpy>=1.22.3 (from moocore==0.1.1)
    Downloading numpy-2.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (62 kB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.0/62.0 kB 365.7 kB/s eta 0:00:00
  Collecting pycparser (from cffi>=1.15.1->moocore==0.1.1)
    Using cached pycparser-2.22-py3-none-any.whl.metadata (943 bytes)
  Using cached cffi-1.17.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (448 kB)
  Downloading numpy-2.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.0/14.0 MB 7.2 MB/s eta 0:00:00
  Using cached pycparser-2.22-py3-none-any.whl (117 kB)
  Installing collected packages: pycparser, numpy, cffi, moocore
  Successfully installed cffi-1.17.1 moocore-0.1.1 numpy-2.1.1 pycparser-2.22
      + pip install pytest
  Collecting pytest
    Downloading pytest-8.3.2-py3-none-any.whl.metadata (7.5 kB)
  Collecting iniconfig (from pytest)
    Downloading iniconfig-2.0.0-py3-none-any.whl.metadata (2.6 kB)
  Collecting packaging (from pytest)
    Downloading packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
  Collecting pluggy<2,>=1.5 (from pytest)
    Downloading pluggy-1.5.0-py3-none-any.whl.metadata (4.8 kB)
  Collecting exceptiongroup>=1.0.0rc8 (from pytest)
    Downloading exceptiongroup-1.2.2-py3-none-any.whl.metadata (6.6 kB)
  Collecting tomli>=1 (from pytest)
    Downloading tomli-2.0.1-py3-none-any.whl.metadata (8.9 kB)
  Downloading pytest-8.3.2-py3-none-any.whl (341 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 341.8/341.8 kB 6.7 MB/s eta 0:00:00
  Downloading exceptiongroup-1.2.2-py3-none-any.whl (16 kB)
  Downloading pluggy-1.5.0-py3-none-any.whl (20 kB)
  Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
  Downloading iniconfig-2.0.0-py3-none-any.whl (5.9 kB)
  Downloading packaging-24.1-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.0/54.0 kB 4.1 MB/s eta 0:00:00
  Installing collected packages: tomli, pluggy, packaging, iniconfig, exceptiongroup, pytest
  Successfully installed exceptiongroup-1.2.2 iniconfig-2.0.0 packaging-24.1 pluggy-1.5.0 pytest-8.3.2 tomli-2.0.1
      + mkdir -p /tmp/tmp.qU8oHxljdl/test_cwd
      + sh -c 'pytest --doctest-modules --doctest-continue-on-failure /project/python/tests /project/python/src/moocore/_moocore.py'
  ============================= test session starts ==============================
  platform linux -- Python 3.10.13, pytest-8.3.2, pluggy-1.5.0
  rootdir: /project/python
  configfile: pyproject.toml
  collected 25 items
  ../../../project/python/tests/test_moocore.py ..........                 [ 40%]
  ../../../project/python/src/moocore/_moocore.py .........F.....          [100%]
  =================================== FAILURES ===================================
  ____________________ [doctest] moocore._moocore.pareto_rank ____________________
  715             3,  8,  2,  3, 10,  1, 12,  7,  8, 11, 14,  4,  7,  4,  1, 10, 10,
  716             1,  3, 14,  2,  7,  8,  7,  7, 11,  5, 14,  7,  9, 13, 14,  5,  9,
  717             6,  2, 13, 11,  4,  9, 10,  7,  8,  7,  7, 10,  6,  3,  4,  5,  8,
  718             4,  9,  4,  3, 11,  2,  3, 13,  2,  3, 10,  5,  3,  6,  3],
  719           dtype=int32)
  720 
  721     We can now split the original set into a list of nondominated sets ordered by Pareto rank:
  722 
  723     >>> paretos = [x.compress((g == ranks), axis=0) for g in np.unique(ranks)]
  724     >>> len(paretos)
  Expected:
      14
  Got:
      24
  /tmp/tmp.qU8oHxljdl/venv/lib/python3.10/site-packages/moocore/_moocore.py:724: DocTestFailure
  =========================== short test summary info ============================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant