Skip to content

clip test is flaky #352

@ev-br

Description

@ev-br

Intermittently observed in CI:

FAILED array_api_tests/test_operators_and_elementwise_functions.py::test_clip - AssertionError: out[()]=-16777216.0 but should be -16777217.0 [clip()]
  x[()]=0.0, min[()]=None, max[()]=-16777217.0
assert -16777216.0 == -16777217.0
Falsifying example: test_clip(
    x=array(0., dtype=float32),
    data=data(...),
)
Draw 1 (min.shape, max.shape): ((), ())
Draw 2 (min): None
Draw 3 (max): -16777217.0
Draw 4 (kwargs): {'max': -16777217.0}
Explanation:
    These lines were always and only run by failing examples:
        /home/runner/work/array-api-compat/array-api-compat/array-api-tests/array_api_tests/test_operators_and_elementwise_functions.py:1099

You can reproduce this example by temporarily adding @reproduce_failure('6.129.4', b'AXicc+Rg0GBAAEcghCBHJkdGjYMFDAwCYAlGBgBChQNl') as a decorator on your test case

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions