Repository navigation
Make the test suite pass the same way on every machine - #257
Merged
Merged
Conversation
- Mark the 50 ms repaint test slow. It failed once on a shared Ubuntu runner with nothing changed, and CI already leaves slow timing tests out. - Skip the run-clock digit test, with the reason, when none of the clock's fonts is installed and the fallback has proportional digits. - Run headless by default: the root conftest sets QT_QPA_PLATFORM=offscreen unless it is already set. - Stop skipping CI on "Merge pull request" commits. When several PRs merge one after another, the combined result was never tested. - CONTRIBUTING lists the Linux system packages, the plugin installs, and the one command that runs the suite. Fixes LL-41.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes LL-41. A test that passes or fails depending on the machine hides real failures. This PR fixes the four ways that happened.
Changes
test_a_whole_session_pulse_train_repaints_quicklyhas a 50 ms wall-clock limit. On 2026-11-27 it took 51 ms on ubuntu-22.04 and passed on re-run, with nothing changed. It's now markedslow, so CI leaves it out like the other timing tests. It still runs with-m slow.test_run_clock_uses_the_ui_font_with_steady_digitsnow skips, with the reason, when none of the clock's fonts (Helvetica Neue, Segoe UI, Roboto) is installed and the fallback font has proportional digits. Wherever it passes today, it still runs.conftest.pysetsQT_QPA_PLATFORM=offscreenunless it's already set, sopytestwithout the variable no longer runs the GUI tests against a real display.ci.ymlskipped "Merge pull request" pushes. When several PRs merged intodevone after another, each had passed against an olderdev, and nothing tested the combined result. The skip is gone, andcancel-in-progressstill drops runs that a newer push replaces.uv sync), and the one command that runs the suite:uv run --no-sync pytest -m "not slow".Testing
QT_QPA_PLATFORMunset on macOS: 95 passed, plus 1 passed for-m slow.ruffandblack --checkare clean.Follow-up
devhas a different CONTRIBUTING (the branch rule), so mergingmainback intodevmay need a small conflict resolution there.