elastic / eland

Python Client and Toolkit for DataFrames, Big Data, Machine Learning and ETL in Elasticsearch
https://eland.readthedocs.io
Apache License 2.0
628 stars 98 forks source link

Use n2-standard-4 machine type in CI #634

Closed davidkyle closed 8 months ago

davidkyle commented 8 months ago

The test failure is in the classifier tests, I've not seen this one before.


File "/code/eland/tests/ml/test_ml_model_pytest.py", line 330, in test_random_forest_classifier
--
  | check_prediction_equality(
  | File "/code/eland/tests/ml/test_ml_model_pytest.py", line 93, in check_prediction_equality
  | np.testing.assert_almost_equal(test_results, es_results, decimal=2)
  | File "/code/eland/.nox/test-3-8-pandas_version-1-5-0/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 583, in assert_almost_equal
  | return assert_array_almost_equal(actual, desired, decimal, err_msg)
  | File "/code/eland/.nox/test-3-8-pandas_version-1-5-0/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 1046, in assert_array_almost_equal
  | assert_array_compare(compare, x, y, err_msg=err_msg, verbose=verbose,
  | File "/code/eland/.nox/test-3-8-pandas_version-1-5-0/lib/python3.8/site-packages/numpy/testing/_private/utils.py", line 844, in assert_array_compare
  | raise AssertionError(msg)
  | AssertionError:
  | Arrays are not almost equal to 2 decimals
  |  
  | Mismatched elements: 1 / 20 (5%)
  | Max absolute difference: 1
  | Max relative difference: 1.
  | x: array([0, 0, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1])
  | y: array([0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 1])
davidkyle commented 8 months ago

We don't need a larger machine to run lint or build the docs

I changed these to n2-standard-2

pquentin commented 8 months ago

Restarted one build after a corrupt download:

ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
    torch<2.0,>=1.13.1 from https://files.pythonhosted.org/packages/81/58/431fd405855553af1a98091848cf97741302416b01462bbf9909d3c422b3/torch-1.13.1-cp310-cp310-manylinux1_x86_64.whl (from -r requirements-dev.txt (line 22)):
        Expected sha256 fd12043868a34a8da7d490bf6db66991108b00ffbeecb034228bfcbbd4197143
             Got        7da511bda13fee88bf8290175f937c6bd2a37085523af7d95cc3f28419cb5a83

(We don't have hashes in the requirements file)