Compare commits

..

No commits in common. "49b3ea4d57fca68cb679da644ae0d7e02f1fa9da" and "11c8be838dbd809c0b131c429b71fa194580c77a" have entirely different histories.

5 changed files with 5 additions and 16 deletions

View File

@ -31,15 +31,13 @@ jobs:
# The gate's keyboard and layout tests drive real Tk: widget heights and
# the focus ring come from the font engine, and no mock can answer what
# they ask. Without a display they do not skip -- they fail, which is how
# this job stayed red while the tests themselves were fine. pytest-xvfb
# (requirements.txt, geometry in pyproject) starts one Xvfb per xdist
# worker: a shared display let workers steal each other's focus.
# this job stayed red while the tests themselves were fine.
# ubuntu-latest already ships xvfb, so the unconditional
# `apt-get update && install` spent ~7 s to report "already the newest
# version"; it now installs only on an image that lacks it.
- name: Install a virtual X display
run: |
command -v Xvfb >/dev/null \
command -v xvfb-run >/dev/null \
|| { sudo apt-get update && sudo apt-get install -y xvfb; }
# -n auto spreads the suite over every runner core (pytest-xdist is in
@ -48,7 +46,7 @@ jobs:
# printed all ~1050 test ids.
- name: Run tests with coverage
run: |
python -m pytest \
xvfb-run -a -s "-screen 0 1600x1200x24" python -m pytest \
-n auto \
-p no:sugar \
-q

View File

@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-9.8.0-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-all.zip

View File

@ -2,7 +2,7 @@ name: diet_guard_app
description: "Companion phone app for diet_guard: log meals on the go."
publish_to: 'none'
version: 1.0.94+1
version: 1.0.92+1
environment:
sdk: ^3.12.2

View File

@ -176,14 +176,6 @@ filterwarnings = [
"ignore::DeprecationWarning",
"default::pytest.PytestUnraisableExceptionWarning",
]
# pytest-xvfb gives every pytest process -- each xdist worker included -- its
# own Xvfb. Keyboard focus is global to an X display, so real-Tk tests from
# several workers sharing one xvfb-run display stole each other's focus
# (focus-ring assertions failed) and Tk segfaulted in focus_force(): 5 of 2760
# stressed runs failed shared, 0 of 4600 with a display per worker.
xvfb_width = "1600"
xvfb_height = "1200"
xvfb_colordepth = "24"
[tool.coverage.run]
source = ["diet_guard"]

View File

@ -16,6 +16,5 @@ pytest-cov==7.1.0
pytest-randomly==5.0.0
pytest-sugar==1.1.1
pytest-xdist==3.8.0
pytest-xvfb==3.1.1
requests==2.34.2
ruff==0.16.9