Skip to content

⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 21, 2026) ⚠️ #33470

Closed

Description

@scikit-learn-bot

CI is still failing on Unit tests Linux x86-64 pylatest_free_threaded (May 21, 2026)

  • test_estimators[GradientBoostingRegressor(n_estimators=5)-check_regressors_train]
  • test_estimators[GradientBoostingRegressor(n_estimators=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[GradientBoostingRegressor(n_estimators=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[GridSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_grid={'alpha':[0.1,1.0]})-check_regressors_train]
  • test_estimators[GridSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_grid={'alpha':[0.1,1.0]})-check_regressors_train(readonly_memmap=True)]
  • test_estimators[GridSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_grid={'alpha':[0.1,1.0]})-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[GridSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_grid={'ridge__alpha':[0.1,1.0]})-check_regressors_train]
  • test_estimators[GridSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_grid={'ridge__alpha':[0.1,1.0]})-check_regressors_train(readonly_memmap=True)]
  • test_estimators[GridSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_grid={'ridge__alpha':[0.1,1.0]})-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[HalvingGridSearchCV(cv=2,error_score='raise',estimator=Ridge(),min_resources='smallest',param_grid={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train]
  • test_estimators[HalvingGridSearchCV(cv=2,error_score='raise',estimator=Ridge(),min_resources='smallest',param_grid={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[HalvingGridSearchCV(cv=2,error_score='raise',estimator=Ridge(),min_resources='smallest',param_grid={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[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_regressors_train]
  • test_estimators[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_regressors_train(readonly_memmap=True)]
  • test_estimators[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_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[HalvingRandomSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_distributions={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train]
  • test_estimators[HalvingRandomSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_distributions={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[HalvingRandomSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_distributions={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[HalvingRandomSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_distributions={'ridge__alpha':[0.1,1.0]},random_state=0)-check_regressors_train]
  • test_estimators[HalvingRandomSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_distributions={'ridge__alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[HalvingRandomSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_distributions={'ridge__alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[HistGradientBoostingRegressor(max_iter=5,min_samples_leaf=5)-check_regressors_train]
  • test_estimators[HistGradientBoostingRegressor(max_iter=5,min_samples_leaf=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[HistGradientBoostingRegressor(max_iter=5,min_samples_leaf=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[HuberRegressor(max_iter=5)-check_regressors_train]
  • test_estimators[HuberRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[HuberRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[KNeighborsRegressor(metric='precomputed')-check_regressors_train]
  • test_estimators[KNeighborsRegressor(metric='precomputed')-check_regressors_train(readonly_memmap=True)]
  • test_estimators[KNeighborsRegressor(metric='precomputed')-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[KernelRidge()-check_regressors_train]
  • test_estimators[KernelRidge()-check_regressors_train(readonly_memmap=True)]
  • test_estimators[KernelRidge()-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[Lars()-check_regressors_train]
  • test_estimators[Lars()-check_regressors_train(readonly_memmap=True)]
  • test_estimators[Lars()-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[LarsCV(cv=3,max_iter=5)-check_regressors_train]
  • test_estimators[LarsCV(cv=3,max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[LarsCV(cv=3,max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[Lasso(max_iter=5)-check_regressors_train]
  • test_estimators[Lasso(max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[Lasso(max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[LassoCV(cv=3,max_iter=5)-check_regressors_train]
  • test_estimators[LassoCV(cv=3,max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[LassoCV(cv=3,max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[LassoLars(max_iter=5)-check_regressors_train]
  • test_estimators[LassoLars(max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[LassoLars(max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[LassoLarsCV(cv=3,max_iter=5)-check_regressors_train]
  • test_estimators[LassoLarsCV(cv=3,max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[LassoLarsCV(cv=3,max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[LassoLarsIC(max_iter=5,noise_variance=1.0)-check_regressors_train]
  • test_estimators[LassoLarsIC(max_iter=5,noise_variance=1.0)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[LassoLarsIC(max_iter=5,noise_variance=1.0)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[LinearRegression()-check_regressors_train]
  • test_estimators[LinearRegression()-check_regressors_train(readonly_memmap=True)]
  • test_estimators[LinearRegression()-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[LinearSVR(max_iter=20)-check_regressors_train]
  • test_estimators[LinearSVR(max_iter=20)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[LinearSVR(max_iter=20)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[MultiOutputRegressor(estimator=Ridge())-check_regressors_train]
  • test_estimators[MultiOutputRegressor(estimator=Ridge())-check_regressors_train(readonly_memmap=True)]
  • test_estimators[MultiOutputRegressor(estimator=Ridge())-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[MultiTaskElasticNet(max_iter=5)-check_regressors_train]
  • test_estimators[MultiTaskElasticNet(max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[MultiTaskElasticNet(max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[MultiTaskElasticNetCV(cv=3,max_iter=5)-check_regressors_train]
  • test_estimators[MultiTaskElasticNetCV(cv=3,max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[MultiTaskElasticNetCV(cv=3,max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[MultiTaskLasso(max_iter=5)-check_regressors_train]
  • test_estimators[MultiTaskLasso(max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[MultiTaskLasso(max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[MultiTaskLassoCV(cv=3,max_iter=5)-check_regressors_train]
  • test_estimators[MultiTaskLassoCV(cv=3,max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[MultiTaskLassoCV(cv=3,max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[OrthogonalMatchingPursuit()-check_regressors_train]
  • test_estimators[OrthogonalMatchingPursuit()-check_regressors_train(readonly_memmap=True)]
  • test_estimators[OrthogonalMatchingPursuit()-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[OrthogonalMatchingPursuitCV(cv=3)-check_regressors_train]
  • test_estimators[OrthogonalMatchingPursuitCV(cv=3)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[OrthogonalMatchingPursuitCV(cv=3)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[PassiveAggressiveRegressor(max_iter=5)-check_regressors_train]
  • test_estimators[PassiveAggressiveRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[PassiveAggressiveRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[Pipeline(steps=[('scaler',StandardScaler()),('final_estimator',Ridge())])-check_regressors_train]
  • test_estimators[Pipeline(steps=[('scaler',StandardScaler()),('final_estimator',Ridge())])-check_regressors_train(readonly_memmap=True)]
  • test_estimators[Pipeline(steps=[('scaler',StandardScaler()),('final_estimator',Ridge())])-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[PoissonRegressor(max_iter=5)-check_regressors_train]
  • test_estimators[PoissonRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[PoissonRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[QuantileRegressor()-check_regressors_train]
  • test_estimators[QuantileRegressor()-check_regressors_train(readonly_memmap=True)]
  • test_estimators[QuantileRegressor()-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train]
  • test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_distributions={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train]
  • test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_distributions={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_distributions={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_distributions={'ridge__alpha':[0.1,1.0]},random_state=0)-check_regressors_train]
  • test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_distributions={'ridge__alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_distributions={'ridge__alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[RegressorChain(cv=3,estimator=Ridge())-check_regressors_train]
  • test_estimators[RegressorChain(cv=3,estimator=Ridge())-check_regressors_train(readonly_memmap=True)]
  • test_estimators[RegressorChain(cv=3,estimator=Ridge())-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[Ridge()-check_regressors_train]
  • test_estimators[Ridge()-check_regressors_train(readonly_memmap=True)]
  • test_estimators[Ridge()-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[RidgeCV()-check_regressors_train]
  • test_estimators[RidgeCV()-check_regressors_train(readonly_memmap=True)]
  • test_estimators[RidgeCV()-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[SGDRegressor(max_iter=5)-check_regressors_train]
  • test_estimators[SGDRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[SGDRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[SVR()-check_regressors_train]
  • test_estimators[SVR()-check_regressors_train(readonly_memmap=True)]
  • test_estimators[SVR()-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[SVR(kernel='precomputed')-check_regressors_train]
  • test_estimators[SVR(kernel='precomputed')-check_regressors_train(readonly_memmap=True)]
  • test_estimators[SVR(kernel='precomputed')-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[StackingRegressor(cv=3,estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train]
  • test_estimators[StackingRegressor(cv=3,estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train(readonly_memmap=True)]
  • test_estimators[StackingRegressor(cv=3,estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[TheilSenRegressor(max_iter=5,max_subpopulation=100)-check_regressors_train]
  • test_estimators[TheilSenRegressor(max_iter=5,max_subpopulation=100)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[TheilSenRegressor(max_iter=5,max_subpopulation=100)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[TweedieRegressor(max_iter=5)-check_regressors_train]
  • test_estimators[TweedieRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True)]
  • test_estimators[TweedieRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_estimators[VotingRegressor(estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train]
  • test_estimators[VotingRegressor(estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train(readonly_memmap=True)]
  • test_estimators[VotingRegressor(estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train(readonly_memmap=True,X_dtype=float32)]
  • test_check_estimator_pairwise

Activity

  1. added
    Needs Triage
    on Mar 6, 2026
  2. lesteve commented on Mar 6, 2026

    @lesteve
    Member

    March 6 build log

    PARALLEL FAILED tests/test_common.py::test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    

    I did not manage to reproduce locally via:

    pytest sklearn/tests/test_common.py -k 'RANSAC and check_regressors' --parallel-threads 4 --iterations 100
  3. added
    Needs Triage
    and removed
    Needs Triage
    on Mar 6, 2026
  4. scikit-learn-bot commented on Mar 7, 2026

    @scikit-learn-bot
    ContributorAuthor

    CI is no longer failing! ✅

    Successful run on May 28, 2026

  5. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Mar 06, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Mar 10, 2026) ⚠️[/+] on Mar 10, 2026
  6. added
    free-threading
    on Mar 10, 2026
  7. lesteve commented on Mar 10, 2026

    @lesteve
    Member

    March 10 build log

    PARALLEL FAILED ensemble/tests/test_forest.py::test_missing_values_is_resilient[RandomForestRegressor-squared_error] - assert 0.6785535257387463 >= (0.8 * 0.874513516402242)
    

    A variation of the test_forest one was also seen in main on Linux arm for some reason see build log

    FAILED ensemble/tests/test_forest.py::test_missing_values_is_resilient[ExtraTreesRegressor-squared_error] - assert 0.7297597961942053 >= (0.8 * 0.92069077181028)
    

    A variant also seen on Pyodide on main build log

    FAILED ensemble/tests/test_forest.py::test_missing_values_is_resilient[ExtraTreesRegressor-poisson] - assert 0.7403286488575276 >= (0.8 * 0.9370967476103581)
    

    This one is tracked in #33510.


    This one not sure, maybe an additional clone is needed somewhere (complete wild-guess):

    PARALLEL FAILED decomposition/tests/test_dict_learning.py::test_get_feature_names_out[MiniBatchDictionaryLearning] - TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
    
  8. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Mar 10, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Mar 16, 2026) ⚠️[/+] on Mar 16, 2026
  9. lesteve commented on Mar 16, 2026

    @lesteve
    Member

    March 6
    and
    March 16 shows somewhat similar errors:

    March 6

    PARALLEL FAILED tests/test_common.py::test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    

    March 16

    FAILED ([thread-unsafe]: uses the thread_unsafe marker) utils/tests/test_estimator_checks.py::test_check_estimator_pairwise - AssertionError
    PARALLEL FAILED decomposition/tests/test_dict_learning.py::test_get_feature_names_out[MiniBatchDictionaryLearning] - TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
    PARALLEL FAILED tests/test_common.py::test_estimators[QuantileRegressor()-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[QuantileRegressor()-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[QuantileRegressor()-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RANSACRegressor(estimator=LinearRegression(),max_trials=10)-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_distributions={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_distributions={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Ridge(),param_distributions={'alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_distributions={'ridge__alpha':[0.1,1.0]},random_state=0)-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_distributions={'ridge__alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RandomizedSearchCV(cv=2,error_score='raise',estimator=Pipeline(steps=[('pca',PCA()),('ridge',Ridge())]),param_distributions={'ridge__alpha':[0.1,1.0]},random_state=0)-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RegressorChain(cv=3,estimator=Ridge())-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RegressorChain(cv=3,estimator=Ridge())-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RegressorChain(cv=3,estimator=Ridge())-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[Ridge()-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[Ridge()-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[Ridge()-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RidgeCV()-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RidgeCV()-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[RidgeCV()-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[SGDRegressor(max_iter=5)-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[SGDRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[SGDRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[SVR()-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[SVR()-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[SVR()-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[SVR(kernel='precomputed')-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[SVR(kernel='precomputed')-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[SVR(kernel='precomputed')-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[StackingRegressor(cv=3,estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[StackingRegressor(cv=3,estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[StackingRegressor(cv=3,estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[TheilSenRegressor(max_iter=5,max_subpopulation=100)-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[TheilSenRegressor(max_iter=5,max_subpopulation=100)-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[TheilSenRegressor(max_iter=5,max_subpopulation=100)-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[TweedieRegressor(max_iter=5)-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[TweedieRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[TweedieRegressor(max_iter=5)-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[VotingRegressor(estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[VotingRegressor(estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train(readonly_memmap=True)] - AssertionError
    PARALLEL FAILED tests/test_common.py::test_estimators[VotingRegressor(estimators=[('est1',DecisionTreeRegressor(max_depth=3,random_state=0)),('est2',DecisionTreeRegressor(max_depth=3,random_state=1))])-check_regressors_train(readonly_memmap=True,X_dtype=float32)] - AssertionError
    

    I haven't managed to reproduce it locally. This one in particular is quite weird, because the test uses thread_unsafe marker but still fails

    FAILED ([thread-unsafe]: uses the thread_unsafe marker) utils/tests/test_estimator_checks.py::test_check_estimator_pairwise - AssertionError
    

    Annoyingly the pytest assertion rewrite mechanism does not seem to work in this particular case so you don't get the value of regressor.score(X, y_) in the CI log:

            if not get_tags(regressor).regressor_tags.poor_score:
    >           assert regressor.score(X, y_) > 0.5
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    E           AssertionError
    

    One weird thing I noticed is that for some weird reason the y variable is different between both runs and different to what I am seeing locally (X seems to match):

    https://github.com/scikit-learn/scikit-learn/actions/runs/22747548461/job/65974717148#step:9:1128

    y          = array([ 0.9403189 , -0.41282246, -0.27213379, -0.87027098, -1.48774037,
            0.05945563, -0.06062479,  0.94863206, ...57516 ,  0.73714498,  0.23748108,  0.57963807,
           -0.62990837, -0.85351673,  0.52925841,  0.74188719, -0.77121628])
    

    https://github.com/scikit-learn/scikit-learn/actions/runs/23126902430/job/67171882619#step:9:1563

    y          = array([-5.60136010e+00, -6.28151299e+00, -6.21079620e+00, -6.51144826e+00,
           -4.00104719e-01,  3.77589204e-01,  3...3665e-01,  2.73607957e-01, -3.34367320e-01,
           -4.46763464e-01,  2.48284758e-01,  3.55162042e-01, -4.05395364e-01])
    

    Looking at the code, I don't really see how they could be different. Sure the global usage in _regression_dataset

    def _regression_dataset():
    global REGRESSION_DATASET
    if REGRESSION_DATASET is None:
    X, y = make_regression(
    n_samples=200,
    n_features=10,
    n_informative=1,
    bias=5.0,
    noise=20,
    random_state=42,
    )
    X = StandardScaler().fit_transform(X)
    REGRESSION_DATASET = X, y
    return REGRESSION_DATASET
    may be a bit weird with free-threaded but still I would not expect it to cause such differences.

  10. removed
    Needs Triage
    on Apr 7, 2026
  11. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Mar 16, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 14, 2026) ⚠️[/+] on Apr 14, 2026
  12. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 14, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 19, 2026) ⚠️[/+] on Apr 19, 2026
  13. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 19, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 22, 2026) ⚠️[/+] on Apr 22, 2026
  14. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 22, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 24, 2026) ⚠️[/+] on Apr 24, 2026
  15. 1 remaining item

  16. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 26, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 28, 2026) ⚠️[/+] on Apr 28, 2026
  17. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 28, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 29, 2026) ⚠️[/+] on Apr 29, 2026
  18. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Apr 29, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 04, 2026) ⚠️[/+] on May 4, 2026
  19. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 04, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 07, 2026) ⚠️[/+] on May 7, 2026
  20. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 07, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 08, 2026) ⚠️[/+] on May 8, 2026
  21. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 08, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 09, 2026) ⚠️[/+] on May 9, 2026
  22. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 09, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 14, 2026) ⚠️[/+] on May 14, 2026
  23. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 14, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 16, 2026) ⚠️[/+] on May 16, 2026
  24. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 16, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 17, 2026) ⚠️[/+] on May 17, 2026
  25. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 17, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 20, 2026) ⚠️[/+] on May 20, 2026
  26. changed the title [-]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 20, 2026) ⚠️[/-] [+]⚠️ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: May 21, 2026) ⚠️[/+] on May 21, 2026
  27. itamarst commented on May 21, 2026

    @itamarst
    Contributor

    Going to take a look and see if anything leaps out at me.

  28. itamarst commented on May 26, 2026

    @itamarst
    Contributor

    Looking at the code, the plausible reason that these tests are failing is that the estimator object is persistent both sequentially in time (across different tests) but also used and potentially mutated concurrently by multiple tests in the --parallel-threads case. My hypothesis is therefore that copying the estimator before running the test should solve the problems, because no mutable state will then been modified.

    Unfortunately I've failed to reproduce anything locally, so I'm going to open a draft PR with this proposed fix and try a bunch of runs to see if it empirically seems to make the problem go away.

  29. itamarst commented on May 26, 2026

    @itamarst
    Contributor

    The above hypothesis is wrong, at least for the estimator, so will keep looking.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    free-threading

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions