sdmaid-se/tools
Matthias Urhahn ff837c9232
Fix: Delete sometimes did nothing right after a dashboard scan (#2858)
* Fix: Don't offer Delete before a dashboard scan has fully finished

The task manager reports idle before the last scan branch settles, so the
main button could offer DELETE while batchState.pending was still above
zero. mainAction() drops any run in that window, and the confirmation
dialog dismisses itself unconditionally, so a confirmed delete silently
did nothing. A slower emulator made this reproducible in the upgrade e2e
test on ubuntu-24.04 runners.

resolveMainAction() now takes isSettled and resolves to WORKING until the
batch settles. WORKING_CANCELABLE still wins, so cancel stays reachable.

* Fix: Keep D-pad focus and show progress while the main action settles

The settle gate adds a short WORKING state at the start and end of each
run. WORKING disables the FAB, so D-pad focus on it jumped to the first
grid card. When the FAB loses focus while WORKING, focus now moves to
the dock instead, the same group the existing hero re-anchor uses.

The WORKING FAB also rendered as an empty button; it now shows a
progress indicator.

* General: Keep the device log of failed upgrade test phases

A failed phase now saves logcat since its install to the results
directory, for system service deaths, ANRs and crashes the
instrumentation output doesn't show. The log is cleared before each
install rather than per phase, so the in-place update's own startup
(MY_PACKAGE_REPLACED) stays in the afterUpgrade dump.

run_phase also requires the instrumentation pipeline to succeed, not
just the OK marker: its callers use it in if/||, which disables errexit
inside the function.
2026-10-14 22:26:21 +02:00
..
ci General: Add bounded-retry SDK installer for CI 2026-09-23 12:24:42 +02:00
e2e Fix: Delete sometimes did nothing right after a dashboard scan (#2858) 2026-10-14 22:26:21 +02:00
release General: Migrate to Actions-driven release flow 2026-05-01 11:04:26 +02:00