Skip to content
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

Nightly Hypothesis tests failed #8984

Closed
github-actions bot opened this issue Apr 30, 2024 · 0 comments · Fixed by #9508
Closed

Nightly Hypothesis tests failed #8984

github-actions bot opened this issue Apr 30, 2024 · 0 comments · Fixed by #9508
Labels
topic-hypothesis Strategies or tests using the hypothesis library

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Apr 30, 2024

Workflow Run URL

Python 3.12 Test Summary
properties/test_index_manipulation.py::DatasetTest::runTest: DeprecationWarning: Deleting a single level of a MultiIndex is deprecated. Previously, this deleted all levels of a MultiIndex. Please also drop the following variables: {'2'} to avoid an error in the future.
Falsifying example:
state = DatasetStateMachine()
state.init_ds(var=Variable(data=array([''], dtype='<U1'), dims=['4'], attrs={}))
state.assert_invariants()
Draw 1: ['4']
> stacking ['4'] as 3
state.stack(create_index=False, data=data(...), newname='3')
state.assert_invariants()
Draw 2: ['3']
> drop_dims: ['3']
state.drop_dims(data=data(...))
state.assert_invariants()
assign_coords: 0
state.assign_coords(var=Variable(data=array([0], dtype=int32), dims=['0'], attrs={}))
state.assert_invariants()
Draw 3: ['0']
> stacking ['0'] as 2
state.stack(create_index=True, data=data(...), newname='2')
state.assert_invariants()
Draw 4: '2'
> renaming 2 to 1
state.rename_vars(data=data(...), newname='1')
state.assert_invariants()
Draw 5: ['2']
> drop_dims: ['2']
state.drop_dims(data=data(...))
state.teardown()
Explanation:
    These lines were always and only run by failing examples:
        /home/runner/micromamba/envs/xarray-tests/lib/python3.12/site-packages/pandas/core/algorithms.py:130
        /home/runner/micromamba/envs/xarray-tests/lib/python3.12/site-packages/pandas/core/algorithms.py:132
        /home/runner/micromamba/envs/xarray-tests/lib/python3.12/site-packages/pandas/core/algorithms.py:135
        /home/runner/micromamba/envs/xarray-tests/lib/python3.12/site-packages/pandas/core/algorithms.py:200
        /home/runner/micromamba/envs/xarray-tests/lib/python3.12/site-packages/pandas/core/algorithms.py:204
        (and 95 more with settings.verbosity >= verbose)

You can reproduce this example by temporarily adding @reproduce_failure('6.112.1', b'AXicY2BgZWBgYGRgYQADDhCbGcRiYgCLIwCMzcHAyAiRZQeKgSCIBwAHkwAz') as a decorator on your test case
@github-actions github-actions bot added the topic-hypothesis Strategies or tests using the hypothesis library label Apr 30, 2024
dcherian added a commit to dcherian/xarray that referenced this issue Sep 17, 2024
hollymandel pushed a commit to hollymandel/xarray that referenced this issue Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-hypothesis Strategies or tests using the hypothesis library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants