Skip to content

Reduce pause time in interactive timer test - #30271

Merged
jkseppan merged 1 commit into
matplotlib:mainfrom
dstansby:speedup-interactive-timer-tests
Jul 9, 2025
Merged

jkseppan merged 1 commit into
matplotlib:mainfrom
dstansby:speedup-interactive-timer-tests

Conversation

@dstansby

@dstansby dstansby commented Jul 7, 2025 •

Copy link
Copy Markdown
Member

PR summary

Since the Appveyor run is timing out, I went hunting for some low hanging fruit to speed up the tests. From the slower tests, this seemed like an obvious target as each run of the test is taking ~10 seconds. This seems to work fine.

Since gtk3cairo is disabled in this test, the comment doesn't seem relevant any more.

PR checklist

@dstansby dstansby changed the title Reduce pause time interactive timer test Reduce pause time in interactive timer test Jul 7, 2025
@dstansby
dstansby force-pushed the speedup-interactive-timer-tests branch from c72b054 to 3208831 Compare July 8, 2025 10:59
@dstansby
dstansby marked this pull request as ready for review July 8, 2025 11:00
@QuLogic
QuLogic requested a review from greglucas July 8, 2025 19:59

@greglucas greglucas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine as an incremental update since you note GTK isn't being tested here.

The interactive timers are currently not correct IMO and we need to update them to make sure the timers don't overrun their pause duration. This test is completely reworked in #29062 but that is also failing on the appveyor runs with the GTK backends, I assume because the underlying OS there is causing that timer to be even slower and not get as many triggers. Feel free to review/comment on that PR if you have suggestions there too.

@jkseppan jkseppan added Maintenance CI: testing CI configuration and testing labels Jul 9, 2025
@jkseppan jkseppan added this to the v3.10.4 milestone Jul 9, 2025
@jkseppan
jkseppan merged commit ac2a909 into matplotlib:main Jul 9, 2025
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jul 9, 2025
@dstansby
dstansby deleted the speedup-interactive-timer-tests branch July 9, 2025 09:11
ksunden added a commit that referenced this pull request Jul 25, 2025
…271-on-v3.10.x

Backport PR #30271 on branch v3.10.x (Reduce pause time in interactive timer test)
@ksunden ksunden mentioned this pull request Aug 7, 2025
5 tasks
felixonmars added a commit to felixonmars/archriscv-packages that referenced this pull request Sep 14, 2026
Avoid floor(-inf) for zero AsinhLocator ticks in both rounding branches, preserving zero ticks through the existing sign multiplication. Extend the existing 0.024 inset connector image tolerance to riscv64. Cap pytest at eight workers and extend the sixfold CI subprocess timeout allowance to riscv64 without enabling unrelated CI-only skips.

The latest check passes 10237 tests and fails only the GTK3Cairo interactive timer case after 120 seconds. Exclude that exact backend/test combination under Xvfb, matching the existing upstream remote-CI skip. GTK3 and Cairo are installed; retain all other backend tests and the packaging Xvfb noreset fix. No matching upstream fix was found; PR 30271 acknowledges that this timer case is disabled in CI.

https://archriscv.felixc.at/.status/logs/python-matplotlib/python-matplotlib-3.11.2-1.log
numpy/numpy#32461
matplotlib/matplotlib#20828
matplotlib/matplotlib#30271
https://github.com/matplotlib/matplotlib/blob/v3.11.2/lib/matplotlib/tests/test_backends_interactive.py
https://github.com/matplotlib/matplotlib/blob/v3.11.2/lib/matplotlib/testing/__init__.py
https://github.com/matplotlib/matplotlib/blob/v3.11.2/lib/matplotlib/tests/test_inset.py
https://github.com/matplotlib/matplotlib/blob/v3.11.2/lib/matplotlib/ticker.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: testing CI configuration and testing Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants