Repository navigation
Guard lock screen appearance - #15316
Merged
Merged
Conversation
Contributor
|
Contributor
Author
|
Greptile addressed: the test now also times shell-start until the lock service answers -- which is after its LockView has been built -- under a 750ms budget, so view construction is guarded, not just show/hide of a built view. The mapped/absent waits only accept confirmed compositor states, and the startup wait checks the ping reply. Still passes here. |
Time the lock UI in a scratch shell on its preview surface, which renders the same LockView as the real lock without engaging the session lock: a real WlrSessionLock in a test would lock the developer's own session and need a password to leave. First appearance (which builds the view) gets 300ms, reappearance 150ms, before process-speed scaling. The test also asserts the preview never engaged the real lock. Lock-before-suspend, the resume side, is already bounded by omarchy-system-sleep-lock and its test.
dhh
force-pushed
the
perf/lock-appear-budget
branch
from
October 14, 2026 01:24
328ed19 to
cad3016
Compare
This was referenced Oct 28, 2026
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.
What
Plan §2, lock screen appearing. New
test/shell.d/lock-appear-budget-test.sh: times the lock UI on its preview surface, which renders the sameLockViewas the real lock without engaging the session lock — a realWlrSessionLockin a test would lock the developer's own session and need a password to leave. First appearance (builds the view) 300ms, reappearance 150ms, beforeSPEED_PERCENTscaling; measured here 74ms / 10ms. The test also asserts the preview never engaged the real lock (lock statusstays unlocked).The resume side is lock-before-suspend, already bounded:
omarchy-system-sleep-lockcaps the secure-lock wait (derived from logind's inhibitor window) withsleep-lock-test.shcovering a responsive shell locking immediately. A real suspend/resume timing run needs a disposable machine and stays an acceptance-suite matter.Verification
From plans/overnight-quality.md §2.