Skip to content

CI: Update FreeBSD base image in cirrus_arm.yml#28328

Merged
rgommers merged 1 commit intonumpy:mainfrom
abhishek-iitmadras:patch-1
Feb 13, 2025
Merged

CI: Update FreeBSD base image in cirrus_arm.yml#28328
rgommers merged 1 commit intonumpy:mainfrom
abhishek-iitmadras:patch-1

Conversation

@abhishek-iitmadras
Copy link
Copy Markdown
Contributor

@abhishek-iitmadras abhishek-iitmadras commented Feb 13, 2025

Change Freebsd image as per https://cirrus-ci.org/guide/FreeBSD/

image

[BUG]: Change Freebsd image
@abhishek-iitmadras abhishek-iitmadras marked this pull request as ready for review February 13, 2025 08:19
@rgommers rgommers changed the title [BUG]: Update cirrus_arm.yml CI: Update FreeBSD base image in cirrus_arm.yml Feb 13, 2025
Copy link
Copy Markdown
Member

@rgommers rgommers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @abhishek-iitmadras! This change is clearly correct.

It does show one new test failure, so the job isn't passing yet:

___________ TestStringDiscovery.test_nested_arrays_stringlength[1.2] ___________

self = <test_array_coercion.TestStringDiscovery object at 0x1a16d2f95dd0>
obj = 1.2

    @pytest.mark.parametrize("obj",
            [object(), 1.2, 10**43, None, "string"],
            ids=["object", "1.2", "10**43", "None", "string"])
    def test_nested_arrays_stringlength(self, obj):
        length = len(str(obj))
        expected = np.dtype(f"S{length}")
        arr = np.array(obj, dtype="O")
>       assert np.array([arr, arr], dtype="S").dtype == expected
E       RuntimeWarning: invalid value encountered in cast

arr        = array(1.2, dtype=object)
expected   = dtype('S3')
length     = 3
obj        = 1.2
self       = <test_array_coercion.TestStringDiscovery object at 0x1a16d2f95dd0>

../.venv/lib/python3.11/site-packages/numpy/_core/tests/test_array_coercion.py:180: RuntimeWarning

I think I'll merge this as is and the failure can be taken care of separately, since this PR is an improvement already (the job is failing on all PRs right now).

@rgommers rgommers merged commit 991ec84 into numpy:main Feb 13, 2025
66 of 67 checks passed
@rgommers
Copy link
Copy Markdown
Member

I'll open a new issue for the test failure, since I'm not sure what is going on there.

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.

3 participants