mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-21 19:22:18 +01:00
Zero gatelock startup grace in tests
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
file-length / file length <= 250 lines (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Has been cancelled
Tests / test (push) Has been cancelled
release-apk / release (APK) (push) Has been cancelled
repo-contract / repo contract (push) Has been cancelled
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
file-length / file length <= 250 lines (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Has been cancelled
Tests / test (push) Has been cancelled
release-apk / release (APK) (push) Has been cancelled
repo-contract / repo contract (push) Has been cancelled
wait_for_turn sleeps its 1.5 s startup grace for real, so every test that builds a gate paid it. With the grace zeroed in the hermetic gatelock fixture the 1427 tests run in 11 s instead of overrunning the 60 s action cap, so the ci-mirror-pytest gate step can finish. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWWfb63jncj9Lca2jeX
This commit is contained in:
parent
eb6a9cf8c3
commit
15a0899119
@ -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.162+1
|
||||
version: 1.0.163+1
|
||||
|
||||
environment:
|
||||
sdk: ^3.12.2
|
||||
|
||||
@ -93,8 +93,13 @@ def _hermetic_gatelock(
|
||||
real tkinter into unbounded mock recursion, so the suite **hangs** rather
|
||||
than failing. The runtime dir is redirected too, so no test can stand a
|
||||
production locker down through the arbiter.
|
||||
|
||||
The queue's startup grace is zeroed too: ``wait_for_turn`` sleeps it for
|
||||
real before its first look, which put 1.5 s on every test that builds a
|
||||
gate and the suite far past the 60 s action cap.
|
||||
"""
|
||||
monkeypatch.setenv("GATELOCK_RUNTIME_DIR", str(tmp_path / "gatelock-runtime"))
|
||||
monkeypatch.setattr("gatelock._queue.STARTUP_GRACE_SECONDS", 0.0)
|
||||
with (
|
||||
patch("gatelock._surfaces.tk.Toplevel", side_effect=_make_toplevel),
|
||||
patch("gatelock._outputs.RandrBackend.create", return_value=None),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user