rahulsmahadev opened a new pull request, #4611: URL: https://github.com/apache/iceberg-python/pull/4611
# Rationale for this change Follow-up to #4527. `test_cache_expires_entries` is flaky on the `windows-unit-test (3.12)` job, for example on #4603 (`assert 1 == 2`). The manifest cache is now a cachetools `TTLCache`, which reads `time.monotonic()`. On Windows before Python 3.13 that clock advances in 15.6 ms steps, so the test's 10 ms sleep often ends before the next step and the 1 ms entry has not expired yet. Fix: sleep 50 ms instead, so the clock always moves past the expiry. ## Are these changes tested? With `time.monotonic()` patched to 15.6 ms steps, the test fails in 23 of 40 runs before this change and in none after. It passes on Linux as before. ## Are there any user-facing changes? No, test only. This pull request and its description were written by Isaac. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
