Skip to content

TST fix test_dtype_preprocess_data #31935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

lorentzenchr
Copy link
Member

@lorentzenchr lorentzenchr commented Aug 12, 2025

Reference Issues/PRs

Fixes #31418 (comment).

Close #31913

What does this implement/fix? Explain your changes.

test_dtype_preprocess_data fails for a few values of SKLEARN_TESTS_GLOBAL_RANDOM_SEED.

Any other comments?

@lorentzenchr lorentzenchr added the Quick Review For PRs that are quick to review label Aug 12, 2025
Copy link

github-actions bot commented Aug 12, 2025

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: a439d5f. Link to the linter CI: here

@lorentzenchr
Copy link
Member Author

@lesteve ping

test_dtype_preprocess_data
@lesteve
Copy link
Member

lesteve commented Aug 13, 2025

I know you don't like people pushing to your branch but that's an empty commit, so hopefully you don't mind too much 😅.

Basically I don't think your previous commit was following the guideline in #28959 which means that this wasn't testing all the global random seeds in the CI. I gave it a go, we'll see what happens ...

@lesteve
Copy link
Member

lesteve commented Aug 13, 2025

With my latest commit, the build log looks like it is testing all the global random seeds for test_dtype_preprocess_data (e.g. 400 tests ran i.e. 4 by random seeds because of the rescale_with_sw=True/False and fit_intercept=True/False parametrization)

@lesteve
Copy link
Member

lesteve commented Aug 13, 2025

OK the tests pass in the CI with all the global random seeds, and the previous commit was actually a normal CI which was green, so let's merge this one!

@lesteve lesteve merged commit 78301f5 into scikit-learn:main Aug 13, 2025
35 checks passed
@lorentzenchr
Copy link
Member Author

I know you don't like people pushing to your branch

This case is fine where you actually finished this trivial piece, so thank you @lesteve !
When I have larger PRs, I'd like to get asked first because such a "foreigner's" push might interfere with what I have in the pipe (and not yet pushed).

I don't think your previous commit was following the guideline

I don't understand. I followed the current description on our website and both you and I pushed an empty commit with "[all random seeds]" in the message.

@lorentzenchr lorentzenchr deleted the fix_test_dtype_preprocess_data branch August 13, 2025 15:13
@lesteve
Copy link
Member

lesteve commented Aug 13, 2025

I don't understand. I followed the current description on our website and both you and I pushed an empty commit with "[all random seeds]" in the message.

Note that my commmit message has a second line with the name of the test I wanted to run. Your commit message had a single line and apparently this runs the test suite normally in this case.

As mentioned in #28959 the format of the commit message is something like this:

some message [all random seeds]
test_something
test_some_other_thing

@lorentzenchr
Copy link
Member Author

Thanks for the explanation. That knowledge would ideally live in the developer docs, don't you think? On my side: I search the code base for "[all random seeds]" very quickly and I should have read the docstring a bit more focused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

⚠️ CI failed on Linux_Nightly.pylatest_pip_scipy_dev (last failure: Aug 10, 2025) ⚠️
2 participants