qemu: input consumption wait is a hang backstop (flare-edge#1138) #20

Merged
noah merged 1 commits from rb/lf-fix-1138 into rebuild 2026-10-17 17:19:09 -06:00
Owner

The QEMU runner (qemu/tests/qmp.py) waited 2 s for the guest to count an injected press or release. On a loaded flare-edge runner the release that opens the drawer was counted later, and navigation/drawer-drag-release-policy failed both attempts on flare-edge#1117 (job 35296) although the UI handled the swipe (flare-edge#1138).

  • TAP_OBSERVE_TIMEOUT_S is now a 20 s hang backstop, not a budget.
  • A wait over INPUT_SLOW_NOTE_S (2 s) still passes; the step's detail says slow guest: input consumed after N s.
  • The failure message names the real bound.

Regression tests (PureHelpers):

  • test_swipe_release_counted_late_on_a_loaded_guest_passes: release counted 2.5 s after the drag. FAILS on the old code (2 s bound), passes now.
  • test_swipe_release_counted_promptly_has_no_note
  • test_swipe_release_never_counted_fails_at_the_backstop: bounded by drag + backstop.
$ python3 qemu/tests/test_qmp_drive.py
Ran 55 tests in 11.388s
OK
# old qmp.py with the new tests:
FAIL: test_swipe_release_counted_late_on_a_loaded_guest_passes
FAILED (failures=1)

flare-edge side (pin bump) also passes tests/flows/run-flow-run-hw-tests.sh, run-flow-run-all-tests.sh and run-flowc-tests.sh.

Generated with Claude Code

https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG

The QEMU runner (qemu/tests/qmp.py) waited 2 s for the guest to count an injected press or release. On a loaded flare-edge runner the release that opens the drawer was counted later, and navigation/drawer-drag-release-policy failed both attempts on flare-edge#1117 (job 35296) although the UI handled the swipe (flare-edge#1138). - `TAP_OBSERVE_TIMEOUT_S` is now a 20 s hang backstop, not a budget. - A wait over `INPUT_SLOW_NOTE_S` (2 s) still passes; the step's detail says `slow guest: input consumed after N s`. - The failure message names the real bound. Regression tests (PureHelpers): - `test_swipe_release_counted_late_on_a_loaded_guest_passes`: release counted 2.5 s after the drag. FAILS on the old code (2 s bound), passes now. - `test_swipe_release_counted_promptly_has_no_note` - `test_swipe_release_never_counted_fails_at_the_backstop`: bounded by drag + backstop. ``` $ python3 qemu/tests/test_qmp_drive.py Ran 55 tests in 11.388s OK # old qmp.py with the new tests: FAIL: test_swipe_release_counted_late_on_a_loaded_guest_passes FAILED (failures=1) ``` flare-edge side (pin bump) also passes `tests/flows/run-flow-run-hw-tests.sh`, `run-flow-run-all-tests.sh` and `run-flowc-tests.sh`. Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
noah added 1 commit 2026-10-17 14:26:58 -06:00
qemu: input consumption wait is a hang backstop (flare-edge#1138)
ci / bench (push) Successful in 8s
ci / qemu-tools (push) Successful in 57s
ci / patches-apply (push) Successful in 23s
ci / test (push) Successful in 12s
ci / mcdc (push) Successful in 21s
ci / prune-artifacts (push) Skipped
ci / kernel-build (push) Skipped
ci / quality (push) Successful in 55s
ci / kernel-symbols (push) Successful in 2m45s
ci / kernel-symbols (pull_request) Successful in 2m17s
ci / badges (push) Skipped
ci / qemu-tools (pull_request) Successful in 55s
ci / patches-apply (pull_request) Successful in 24s
ci / prune-artifacts (pull_request) Skipped
ci / kernel-build (pull_request) Skipped
ci / quality (pull_request) Successful in 28s
ci / badges (pull_request) Skipped
ci / test (pull_request) Successful in 11s
ci / bench (pull_request) Successful in 6s
ci / mcdc (pull_request) Successful in 13s
6f931bf3ad
The runner waited 2 s for the guest to count an injected press or
release. On a loaded runner the release that opens the drawer took
longer, so navigation/drawer-drag-release-policy failed both attempts
although the UI handled the swipe. The wait is now a 20 s hang backstop;
a wait over 2 s still passes and puts "slow guest: input consumed after
N s" in the step's detail.

Regression: test_swipe_release_counted_late_on_a_loaded_guest_passes
(release counted 2.5 s after the drag; fails with the 2 s bound), plus
a prompt-release case and a never-counted case bounded by the backstop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KerYPVh72hhNgKi3wS5ijG
noah merged commit aadf0e7f07 into rebuild 2026-10-17 17:19:09 -06:00
noah deleted branch rb/lf-fix-1138 2026-10-17 17:19:10 -06:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blueflare/bfe-core1106-sdk#20