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 Non-deterministic failure for sklearn/ensemble/tests/test_forest.py::test_missing_values_is_resilient on some CI builds #33510
I've performed couple of runs locally (win11) and it seems that is a rare event the difference asserted in the test to be < 0.
Perhaps there is some platform specific influence in the algorithms tested.
Thanks for the issue! The sklearn/ensemble/tests/test_forest.py::test_missing_values_is_resilient was seen in other places as well, pymin_conda_forge_arm, free-threaded and Pyodide, see #33470 (comment).
changed the title [-]PR #33405 CI failing on non-related test[/-][+]CI Non-deterministic failure for sklearn/ensemble/tests/test_forest.py::test_missing_values_is_resilient on some platforms[/+]on Mar 11, 2026
changed the title [-]CI Non-deterministic failure for sklearn/ensemble/tests/test_forest.py::test_missing_values_is_resilient on some platforms[/-][+]CI Non-deterministic failure for `sklearn/ensemble/tests/test_forest.py::test_missing_values_is_resilient` on some CI builds[/+]on Mar 11, 2026
Hi @cakedev0, I felt strange that despite 300+ runs of test_missing_values_is_resilient locally, none raised error (in contrast it happened in the CI apparently more frequent).
Although fixing random seed is a quick-fix necessary here, the problem might be deeper and platform-dependent, specially if the 0.8 threshold that was used is theoretical (dont know if it is)
Hi, I have the same feeling that it might be deeper and platform-dependent, but it's probably a really small thing: the tests only fail by a small margin when they do. Not sure it's worth investigating.
Activity
[-]PR CI failing on non-related test[/-][+]PR #33405 CI failing on non-related test[/+]lucolivi commentedon Mar 10, 2026
This seems to be an intermittent bug due to random values.
https://github.com/scikit-learn/scikit-learn/blob/main/sklearn/ensemble/tests/test_forest.py#L1844-L1847
It is a good idea to expand line 1846 so that the random seed becomes visible in test error log.
lucolivi commentedon Mar 10, 2026
I've performed couple of runs locally (win11) and it seems that is a rare event the difference asserted in the test to be < 0.
Perhaps there is some platform specific influence in the algorithms tested.
lesteve commentedon Mar 11, 2026
Thanks for the issue! The
sklearn/ensemble/tests/test_forest.py::test_missing_values_is_resilientwas seen in other places as well,pymin_conda_forge_arm, free-threaded and Pyodide, see #33470 (comment).cc @cakedev0 for a closer look.
[-]PR #33405 CI failing on non-related test[/-][+]CI Non-deterministic failure for sklearn/ensemble/tests/test_forest.py::test_missing_values_is_resilient on some platforms[/+][-]CI Non-deterministic failure for sklearn/ensemble/tests/test_forest.py::test_missing_values_is_resilient on some platforms[/-][+]CI Non-deterministic failure for `sklearn/ensemble/tests/test_forest.py::test_missing_values_is_resilient` on some CI builds[/+]lesteve commentedon Mar 11, 2026
Also seen on macOS Intel see build log from PR #33508.
cakedev0 commentedon Mar 11, 2026
Hi, very sorry about that, it seems I committed by mistake some local changes for testing the robustness. I will open a PR to fix that.
lucolivi commentedon Mar 11, 2026
Hi @cakedev0, I felt strange that despite 300+ runs of
test_missing_values_is_resilientlocally, none raised error (in contrast it happened in the CI apparently more frequent).Although fixing random seed is a quick-fix necessary here, the problem might be deeper and platform-dependent, specially if the 0.8 threshold that was used is theoretical (dont know if it is)
cakedev0 commentedon Mar 11, 2026
Hi, I have the same feeling that it might be deeper and platform-dependent, but it's probably a really small thing: the tests only fail by a small margin when they do. Not sure it's worth investigating.
0.8 is not a theoretical threshold.
lesteve commentedon Mar 11, 2026
No worries, things like this happen and at the end of the day reviewers may/should have caught it 😉. Not blaming them either, we are all human 😉.