Skip to content

test: fix flaky backend cache retry timing #537

Closed

Description

@uniqueg

The unit test tests/plugins/test_plugin_backends.py::test_cache failed on dev (run 40421389399, job Test (Python 3.15, lowest dependencies)):

assert cache._next_read - cache._last_read == pytest.approx(backends.RETRY_INTERVAL)
E  assert 30.000030635 == 30 +- 3.0e-05

The two timestamps come from separate clock reads, so the difference is only approximately the interval. The default relative tolerance of pytest.approx is too tight. Fix: compare with an absolute tolerance (or freeze the clock in the test). Blocks tagging 0.18.0, since the release commit should have green CI.

Activity

  1. added this to the v0.18.0 milestone on Oct 27, 2026
  2. added
    priority: high
    status: in progress
    type: testing
    workload: minutes
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: highstatus: in progresstype: testingworkload: minutes

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions