TST: test_sidereal_lon_independent[mean] throws hypothesis.errors.Flaky (v6.1rc1 testing) · Issue #16289 · astropy/astropy · GitHub
Skip to content

TST: test_sidereal_lon_independent[mean] throws hypothesis.errors.Flaky (v6.1rc1 testing) #16289

Description

@pllim

Saw this on Windows when testing astropy v6.1rc1. The suite used numpy 1.26.4.

____________________________________ test_sidereal_lon_independent[mean] ____________________________________

iers_b = '<using IERS-B orientation table>', kind = 'mean', jds = (2441316.5, 0.0), lat = 0.0, lon = 0.0      
lon_delta = 0.0

    @given(
>       jds=reasonable_jd(),
        lat=floats(-90, 90),
        lon=floats(-180, 180),
        lon_delta=floats(-360, 360),
    )

astropy\time\tests\test_precision.py:811:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
args = ('<using IERS-B orientation table>', 'mean', (2441316.5, 0.0), 0.0, 0.0, 0.0), kwargs = {}
arg_drawtime = 0.0011750999983632937, start = 32817.3571736, result = None, finish = 32818.1837919
in_drawtime = 0.0, runtime = datetime.timedelta(microseconds=826618)
current_deadline = datetime.timedelta(microseconds=250000)
...
            if runtime >= current_deadline:
>               raise DeadlineExceeded(runtime, self.settings.deadline)
E               hypothesis.errors.DeadlineExceeded: Test took 826.62ms, which exceeds the deadline of 200.00ms

hypothesis\core.py:846: DeadlineExceeded

The above exception was the direct cause of the following exception:

iers_b = '<using IERS-B orientation table>', kind = 'mean'

    @given(
>       jds=reasonable_jd(),
        lat=floats(-90, 90),
        lon=floats(-180, 180),
        lon_delta=floats(-360, 360),
    )

astropy\time\tests\test_precision.py:811:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <hypothesis.core.StateForActualGivenExecution object at ...>
data = ConjectureData(VALID, 48 bytes, frozen)
...
E           hypothesis.errors.Flaky: Hypothesis test_sidereal_lon_independent(iers_b='<using IERS-B orientation table>', kind='mean', jds=(2441316.5, 0.0), lat=0.0, lon=0.0, lon_delta=0.0) produces unreliable results: Falsified on the first call but did not on a subsequent one
E           Falsifying example: test_sidereal_lon_independent(
E               iers_b='<using IERS-B orientation table>',
E               kind='mean',
E               jds=(2441316.5, 0.0),
E               lat=0.0,
E               lon=0.0,
E               lon_delta=0.0,
E           )
E           Unreliable test timings! On an initial run, this test took 826.62ms, which exceeded the deadline of 200.00ms, but on a subsequent run it took 5.98 ms, which did not. If you expect this sort of variability in your test timings, consider turning deadlines off for this test by setting deadline=None.
E           Highest target scores:
E                2.84217e-12  (label=' float(b-a)')
E                5.11591e-12  (label=' float(a-b)')

hypothesis\core.py:974: Flaky

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions