Skip to content

🔒 🤖 CI Update lock files for main CI build(s) 🔒 🤖 - #30021

Closed
scikit-learn-bot wants to merge 1 commit into
scikit-learn:mainfrom
scikit-learn-bot:auto-update-lock-files-main
Closed

scikit-learn-bot wants to merge 1 commit into
scikit-learn:mainfrom
scikit-learn-bot:auto-update-lock-files-main

Conversation

@scikit-learn-bot

Copy link
Copy Markdown
Contributor

Update lock files.

Note

If the CI tasks fail, create a new branch based on this PR and add the required fixes to that branch.

@scikit-learn-bot
scikit-learn-bot force-pushed the auto-update-lock-files-main branch from 95e5714 to 2ff9b14 Compare October 7, 2024 05:08
@github-actions

github-actions Bot commented Oct 7, 2024

Copy link
Copy Markdown

✔️ Linting Passed

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

Generated for commit: 2ff9b14. Link to the linter CI: here

@lesteve

lesteve commented Oct 7, 2024

Copy link
Copy Markdown
Member

array-API related, likely due to array-api-compat 1.8 -> 1.9?

___________________ test_get_namespace_ndarray_with_dispatch ___________________

    @skip_if_array_api_compat_not_configured
    def test_get_namespace_ndarray_with_dispatch():
        """Test get_namespace on NumPy ndarrays."""
        array_api_compat = pytest.importorskip("array_api_compat")
    
        X_np = numpy.asarray([[1, 2, 3]])
    
        with config_context(array_api_dispatch=True):
            xp_out, is_array_api_compliant = get_namespace(X_np)
            assert is_array_api_compliant
            if np_version >= parse_version("2.0.0"):
                # NumPy 2.0+ is an array API compliant library.
>               assert xp_out is numpy
E               AssertionError: assert <module 'array_api_compat.numpy' from '/usr/share/miniconda/envs/testvenv/lib/python3.11/site-packages/array_api_compat/numpy/__init__.py'> is numpy

X_np       = array([[1, 2, 3]])
array_api_compat = <module 'array_api_compat' from '/usr/share/miniconda/envs/testvenv/lib/python3.11/site-packages/array_api_compat/__init__.py'>
is_array_api_compliant = True
xp_out     = <module 'array_api_compat.numpy' from '/usr/share/miniconda/envs/testvenv/lib/python3.11/site-packages/array_api_compat/numpy/__init__.py'>

/usr/share/miniconda/envs/testvenv/lib/python3.11/site-packages/sklearn/utils/tests/test_array_api.py:73: AssertionError

@glemaitre

glemaitre commented Oct 7, 2024 •

Copy link
Copy Markdown
Member

Uhm I merged #30020 where the CI don't fail with the bumping. I would have expected the test to fail also there.

@lesteve

lesteve commented Oct 7, 2024 •

Copy link
Copy Markdown
Member

I think you did not unset + set "CUDA CI" label right? That means that the CUDA CI did not run in #30020.

I wanted to retrigger a lock-file update after I merged #29994 but too late 😅.

@glemaitre

glemaitre commented Oct 7, 2024 •

Copy link
Copy Markdown
Member

Nop I did not unset/set and indeed I we did not run the CI. So it is broken as well :)

@glemaitre

Copy link
Copy Markdown
Member

So the regression is not really a regression: because NumPy 2.+ is actually not yet array-API compliant, then the namespace was reverted to the array_api_compat wrapper: data-apis/array-api-compat#170

I assume the best for now would be to skip the test for older version of array-api-compat and check that the wrapper is used.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants