Skip to content

CI pylatest_conda_mkl_no_openmp is timing out from time to time #20427

Closed

Description

@thomasjpfan

Here is a recent build log of this happening. The pylatest_conda_mkl_no_openmp can sometimes take up more than an hour and gets canceled by azure leading to a test failure.

We can update timeoutInMinutes for this instance, but this behavior is strange since the rest of the instances take around ~20 minutes.

Activity

  1. lesteve commented on Jul 1, 2021

    @lesteve
    Member

    Quickly looking at it, it seems like the tests take a lot longer (roughly 3 times) than usual in these cases (i.e. it does not seem to be a weird hang somewhere). I am putting more info below hoping may have a powerful crystal ball trying to make sense of it 😉.

    Successful build (tests run in ~15 minutes):
    https://dev.azure.com/scikit-learn/scikit-learn/_build/results?buildId=30124&view=logs&j=e6d5b7c0-0dfd-5ddf-13d5-c71bebf56ce2&t=c500742d-7cbe-569e-8da5-94db9b4cd21e
    raw log: https://dev.azure.com/scikit-learn/d9c6f05f-7f58-4a17-b143-2a4e7ff015af/_apis/build/builds/30124/logs/139

    ============================= slowest 20 durations =============================
    34.90s call     linear_model/tests/test_quantile.py::test_quantile_estimates_calibration[0.9]
    31.26s call     linear_model/tests/test_logistic.py::test_LogisticRegressionCV_no_refit[ovr-l2]
    15.63s call     tests/test_common.py::test_estimators[SequentialFeatureSelector(estimator=LogisticRegression(C=1))-check_estimator_sparse_data]
    13.80s call     utils/tests/test_estimator_checks.py::test_check_estimator_clones
    13.48s call     ensemble/tests/test_voting.py::test_gridsearch
    10.15s call     neighbors/tests/test_neighbors.py::test_knn_forcing_backend[kd_tree-multiprocessing]
    10.02s call     neighbors/tests/test_neighbors.py::test_knn_forcing_backend[ball_tree-multiprocessing]
    9.79s call     svm/tests/test_svm.py::test_svc_ovr_tie_breaking[NuSVC]
    9.56s call     model_selection/tests/test_validation.py::test_score_memmap
    9.40s call     neighbors/tests/test_neighbors.py::test_knn_forcing_backend[auto-multiprocessing]
    9.05s call     metrics/tests/test_common.py::test_normalize_option_multilabel_classification[accuracy_score]
    9.03s call     tests/test_common.py::test_estimators[CalibratedClassifierCV(base_estimator=LogisticRegression(C=1))-check_classifiers_train(readonly_memmap=True)]
    8.63s call     linear_model/tests/test_quantile.py::test_asymmetric_error[0.2]
    8.09s call     linear_model/tests/test_quantile.py::test_asymmetric_error[0.5]
    7.84s call     linear_model/tests/test_quantile.py::test_asymmetric_error[0.8]
    6.24s call     manifold/tests/test_t_sne.py::test_tsne_different_square_distances[True-euclidean-exact]
    6.09s call     manifold/tests/test_t_sne.py::test_uniform_grid[exact]
    5.97s call     manifold/tests/test_t_sne.py::test_tsne_different_square_distances[legacy-euclidean-exact]
    5.96s call     manifold/tests/test_t_sne.py::test_tsne_different_square_distances[True-manhattan-exact]
    5.86s call     tests/test_common.py::test_estimators[CalibratedClassifierCV(base_estimator=LogisticRegression(C=1))-check_classifiers_train(readonly_memmap=True,X_dtype=float32)]
    

    Slow build (tests run in ~50 minutes):
    https://dev.azure.com/scikit-learn/scikit-learn/_build/results?buildId=30114&view=logs&j=97641769-79fb-5590-9088-a30ce9b850b9
    https://dev.azure.com/scikit-learn/d9c6f05f-7f58-4a17-b143-2a4e7ff015af/_apis/build/builds/30055/logs/144
    Slowest tests:

    ============================= slowest 20 durations =============================
    68.69s call     ensemble/tests/test_voting.py::test_gridsearch
    66.34s call     ensemble/tests/test_iforest.py::test_iforest_with_uniform_data
    54.18s call     tests/test_common.py::test_estimators[SequentialFeatureSelector(estimator=LogisticRegression(C=1))-check_estimator_sparse_data]
    49.59s call     utils/tests/test_estimator_checks.py::test_check_estimator_clones
    40.03s call     inspection/tests/test_partial_dependence.py::test_warning_for_kind_legacy
    36.23s setup    linear_model/tests/test_base.py::test_deprecate_normalize[False-True]
    30.56s call     svm/tests/test_svm.py::test_svc_ovr_tie_breaking[NuSVC]
    28.73s call     neighbors/tests/test_neighbors.py::test_knn_forcing_backend[ball_tree-multiprocessing]
    28.38s call     neighbors/tests/test_neighbors.py::test_knn_forcing_backend[kd_tree-multiprocessing]
    28.34s call     neighbors/tests/test_neighbors.py::test_knn_forcing_backend[auto-multiprocessing]
    26.92s call     linear_model/tests/test_quantile.py::test_asymmetric_error[0.2]
    24.20s call     linear_model/tests/test_quantile.py::test_asymmetric_error[0.5]
    23.43s call     linear_model/tests/test_quantile.py::test_asymmetric_error[0.8]
    21.03s call     manifold/tests/test_t_sne.py::test_tsne_different_square_distances[True-euclidean-exact]
    20.92s call     manifold/tests/test_t_sne.py::test_tsne_different_square_distances[legacy-manhattan-exact]
    20.82s call     manifold/tests/test_t_sne.py::test_tsne_different_square_distances[True-manhattan-exact]
    20.81s call     manifold/tests/test_t_sne.py::test_uniform_grid[exact]
    20.64s call     manifold/tests/test_t_sne.py::test_tsne_different_square_distances[legacy-euclidean-exact]
    19.11s call     tests/test_common.py::test_estimators[RFECV(estimator=LogisticRegression(C=1))-check_estimator_sparse_data]
    16.39s call     ensemble/tests/test_common.py::test_ensemble_heterogeneous_estimators_behavior[stacking-classifier]
    

    Note there is some variation in the slow tests between runs here is another one (from https://dev.azure.com/scikit-learn/d9c6f05f-7f58-4a17-b143-2a4e7ff015af/_apis/build/builds/30070/logs/144):

    ============================= slowest 20 durations =============================
    59.34s call     ensemble/tests/test_voting.py::test_gridsearch
    54.86s call     utils/tests/test_estimator_checks.py::test_check_estimator_clones
    49.58s call     tests/test_common.py::test_estimators[SequentialFeatureSelector(estimator=LogisticRegression(C=1))-check_estimator_sparse_data]
    48.30s call     ensemble/tests/test_forest.py::test_importances[RandomForestRegressor-absolute_error-float32]
    48.30s call     ensemble/tests/test_forest.py::test_importances[ExtraTreesRegressor-absolute_error-float64]
    31.91s call     ensemble/tests/test_voting.py::test_predict_on_toy_problem
    29.27s call     svm/tests/test_svm.py::test_svc_ovr_tie_breaking[NuSVC]
    28.10s call     tests/test_common.py::test_search_cv[HalvingGridSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),min_resources='smallest',param_grid={'ridge__alpha':[0.1,1.0]},random_state=0)-check_estimators_dtypes]
    27.63s call     tests/test_common.py::test_estimators[TruncatedSVD()-check_estimators_fit_returns_self(readonly_memmap=True)]
    26.49s call     neighbors/tests/test_neighbors.py::test_knn_forcing_backend[auto-multiprocessing]
    25.82s call     neighbors/tests/test_neighbors.py::test_knn_forcing_backend[ball_tree-multiprocessing]
    25.35s call     neighbors/tests/test_neighbors.py::test_knn_forcing_backend[kd_tree-multiprocessing]
    24.50s call     linear_model/tests/test_quantile.py::test_asymmetric_error[0.2]
    23.26s call     linear_model/tests/test_quantile.py::test_asymmetric_error[0.5]
    22.39s call     linear_model/tests/test_quantile.py::test_asymmetric_error[0.8]
    20.11s call     utils/tests/test_estimator_checks.py::test_check_estimator
    19.87s call     manifold/tests/test_t_sne.py::test_tsne_different_square_distances[legacy-manhattan-exact]
    19.38s call     manifold/tests/test_t_sne.py::test_tsne_different_square_distances[True-manhattan-exact]
    19.04s call     tests/test_common.py::test_search_cv[HalvingRandomSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('logisticregression',LogisticRegression())]),param_distributions={'logisticregression__C':[0.1,1.0]},random_state=0)-check_estimators_fit_returns_self(readonly_memmap=True)]
    18.83s call     tests/test_common.py::test_search_cv[HalvingGridSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('logisticregression',LogisticRegression())]),min_resources='smallest',param_grid={'logisticregression__C':[0.1,1.0]},random_state=0)-check_estimators_overwrite_params]
    
  2. jeremiedbb commented on Mar 11, 2022

    @jeremiedbb
    Member

    Unless I'm mistaken, it doesn't happen anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions