cloud-bulldozer / benchmark-wrapper

Python Library to run benchmarks
https://benchmark-wrapper.readthedocs.io
Apache License 2.0
19 stars 56 forks source link

Limit the numpy version due to an AttributeError: all workloads fail when uploading data into Elasticsearch #484

Closed ebattat closed 3 weeks ago

ebattat commented 3 weeks ago

Type of change

Description

Latest numpy 2.0 cause to AttributeError due to the following error:

[  102.623688] cloud-init[718]: Successfully installed async-timeout-4.0.3 boto3-1.34.129 botocore-1.34.129 cachetools-5.3.3 certifi-2024.6.2 configargparse-1.7 configparser-7.0.0 contourpy-1.2.1 cycler-0.12.1 dataclasses-0.6 dateparser-1.2.0 dictdiffer-0.9.0 docutils-0.16 elasticsearch-7.13.4 flent-2.1.1 fonttools-4.53.0 google-auth-2.30.0 httmock-1.4.0 importlib-metadata-7.1.0 importlib-resources-6.4.0 jmespath-1.0.1 kafka-python-2.0.2 kiwisolver-1.4.5 kubernetes-11.0.0 matplotlib-3.9.0 numpy-2.0.0 openshift-0.11.0 packaging-24.1 pandas-2.2.2 pillow-10.3.0 prometheus-api-client-0.5.5 pyasn1-0.6.0 pyasn1-modules-0.4.0 pyparsing-3.1.2 python-dateutil-2.9.0.post0 python-string-utils-1.0.0 redis-5.0.6 regex-2024.5.15 requests-oauthlib-2.0.0 rsa-4.9 ruamel.yaml-0.18.6 ruamel.yaml.clib-0.2.8 s3transfer-0.10.1 scipy-1.13.1 snafu-0.0.1 statistics-1.0.3.5 ttp-0.9.5 tzdata-2024.1 tzlocal-5.2 websocket-client-1.8.0 zipp-3.19.2
[  103.552233] cloud-init[718]:   File "/usr/local/lib/python3.9/site-packages/elasticsearch/serializer.py", line 50, in <module>
[  103.552457] cloud-init[718]:     np.float_,
[  103.552642] cloud-init[718]:   File "/usr/local/lib64/python3.9/site-packages/numpy/__init__.py", line 397, in __getattr__
[  103.552964] cloud-init[718]:     raise AttributeError(
[  103.553345] cloud-init[718]: AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.

Solution: limit numpy<=1.26.4 Critical bug: all workloads fail when uploading data into Elasticsearch

Related Tickets & Documents

Checklist before requesting a review

Testing