You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
⚠️ CI failed on Unit tests Linux pymin_conda_forge_arm (last failure: Aug 12, 2026) ⚠️ #34732
This issue is not yet ready for a PR. If you are interested in contributing to scikit-learn, please have a look at our contributing guidelines, and in particular the sections for new contributors and the "Needs triage" label.
Looking into this, the root cause appears to be that make_regression() on line 176 is called without a random_state, so the generated data differs on every run (and across pytest-xdist workers — this failure occurred on [gw3]). The > X.shape[1] / 4 threshold isn't guaranteed to hold for every random draw — this run landed at 22/100 nonzero coefficients, which points to an unfavorable draw rather than a solver bug.
Possible next steps:
Add a fixed random_state to make_regression() (e.g. random_state=0) to make the test deterministic, and verify the fix by running it repeatedly with that seed to confirm it clears the threshold with a reasonable margin rather than barely.
Optionally relax the threshold slightly as an additional safeguard.
Would this be the right approach, or did you have something else in mind for addressing this?
Would be happy to open a PR with the fix if no one's working on it.
This was added in #34336 so ccing @lorentzenchr and @OmarManzoor for an informed opinion about what their preferred approach is. Here are a few options I can see:
fixed random seed
use global_random_seed to make sure the test is not to sensitive to random seed
Activity
scikit-learn-bot commentedon Aug 13, 2026
CI is no longer failing! ✅
Successful run on Oct 03, 2026
lesteve commentedon Aug 13, 2026
August 12 build log probably a numerical instability on arm (there is no global random seed). Weird that it is not deterministic though 🤔.
shnhdan commentedon Aug 20, 2026
Looking into this, the root cause appears to be that make_regression() on line 176 is called without a random_state, so the generated data differs on every run (and across pytest-xdist workers — this failure occurred on [gw3]). The > X.shape[1] / 4 threshold isn't guaranteed to hold for every random draw — this run landed at 22/100 nonzero coefficients, which points to an unfavorable draw rather than a solver bug.
Possible next steps:
Would this be the right approach, or did you have something else in mind for addressing this?
Would be happy to open a PR with the fix if no one's working on it.
lesteve commentedon Aug 20, 2026
Indeed the missing
random_stateinmake_regressioncould be one of the reason:scikit-learn/sklearn/linear_model/tests/test_coordinate_descent.py
Line 92 in 3341d32
This was added in #34336 so ccing @lorentzenchr and @OmarManzoor for an informed opinion about what their preferred approach is. Here are a few options I can see:
global_random_seedto make sure the test is not to sensitive to random seedlorentzenchr commentedon Sep 7, 2026
Simple solution: