Skip to content

Tests: a sleep of Pyjo.Steps measured by time.monotonic of Windows before Python 3.13, a tick of 15.6 milliseconds - #558

Merged
dex4er merged 1 commit into
mainfrom
tests-monotonic-tick
Nov 5, 2026
Merged

dex4er merged 1 commit into
mainfrom
tests-monotonic-tick

Conversation

@dex4er

@dex4er dex4er commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

The sleeps of t/Pyjo/Steps.py, blocking and non-blocking, failed on Pyjo.Reactor.Winloop with Python 3.12 on Windows, in the dispatch of its Tests with Pyjoyment of main (run): slept, blocking and slept, non-blocking, while 3.13 and later passed.

time.monotonic of Windows before Python 3.13 is GetTickCount64, whose resolution is 15.6 milliseconds, so a time that it measures may be a tick short, even of time.sleep, which is never early; Python 3.13 changed it to QueryPerformanceCounter. The jobs of Windows of Pyjoyment run the Python of mise only, so they do not see it. The cause is the clock of the test, not Pyjoyment.

Changes

t/docs/Steps.py is skipped on Windows. t/stdlib/Reactor_Asyncio.py has a margin of 10 milliseconds, less than a tick, and has not failed, so it stays.

Validation

  • t/Pyjo/Steps.py with PYTHONDEVMODE=1 on the default reactor, Pyjo.Reactor.Poll, Pyjo.Reactor.Asyncio and Pyjo.Reactor.Uvloop, on macOS
  • trunk check
  • CI
  • Tests of Pyjo-Reactor-Winloop with pyjoyment-ref of this branch, Python 3.12 on Windows

🤖 Generated with Claude Code

…fore Python 3.13, a tick of 15.6 milliseconds

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Tests

Job Tests Passed ✅ Skipped ⚠️ Failed ❌ Log
prove (python 3.12, Asyncio) 7370 7342 28 0 ✅ 127350246895
prove (python 3.12, Poll) 7342 7312 30 0 ✅ 127350247056
prove (python 3.13, Asyncio) 7370 7342 28 0 ✅ 127350247053
prove (python 3.13, Poll) 7342 7312 30 0 ✅ 127350247092
prove (python 3.14, Asyncio) 7401 7378 23 0 ✅ 127350247007
prove (python 3.14, Poll) 7373 7348 25 0 ✅ 127350246897
prove (python 3.15, Asyncio) 7401 7378 23 0 ✅ 127350246482
prove (python 3.15, Poll) 7373 7348 25 0 ✅ 127350247240
prove (python 3.15t, Asyncio) 7401 7378 23 0 ✅ 127350247162
prove (python 3.15t, Poll) 7373 7348 25 0 ✅ 127350247116
prove (python mise, Asyncio) 7480 7446 34 0 ✅ 127350246165
prove (python mise, Asyncio, Windows) 7207 7143 64 0 ✅ 127350246688
prove (python mise, Poll) 7452 7416 36 0 ✅ 127350246555
prove (python mise, Poll, Windows) 7179 7113 66 0 ✅ 127350247263
prove (python pypy3.12, Asyncio) 7370 7342 28 0 ✅ 127350246988
prove (python pypy3.12, Poll) 7342 7312 30 0 ✅ 127350247036
pytest (python 3.12, ubuntu-26.04-arm) 434 409 25 0 ✅ 127350246797
pytest (python 3.15, ubuntu-26.04-arm) 434 414 20 0 ✅ 127350246818
pytest (python 3.15, windows-2025) 434 387 47 0 ✅ 127350246771
servers (python 3.12) 45 45 0 0 ✅ 127350246574
servers (python 3.15) 44 44 0 0 ✅ 127350246788
All 119167 118557 610 0 ✅

The run of the workflow

@dex4er
dex4er merged commit dc487bd into main Nov 5, 2026
26 checks passed
@dex4er
dex4er deleted the tests-monotonic-tick branch November 5, 2026 15:46
@dex4er dex4er added this to the 0.3.0 milestone Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant