Skip to content

Refactor: Add AutomationService.Snapshot and debug logging - #1784

Merged
d4rken merged 1 commit into
mainfrom
acs-queued-logging
May 18, 2025
Merged

Refactor: Add AutomationService.Snapshot and debug logging#1784
d4rken merged 1 commit into
mainfrom
acs-queued-logging

Conversation

@d4rken

@d4rken d4rken commented May 16, 2025

Copy link
Copy Markdown
Member

Introduce a Snapshot data class to wrap AccessibilityEvents within the AutomationService. This Snapshot now includes a unique ID.

Modify the event flow exposed by AutomationHost to emit Snapshots instead of raw AccessibilityEvents. Update usages in HyperOsSpecs, SpecGeneratorExtensions, and DebugTaskModule to extract the event from the Snapshot.

Implement debug logging for screen snapshots in AutomationService. This includes logging the snapshot ID, the event, and the crawled node hierarchy, with a timeout to prevent blocking. This logging is enabled only in debug builds.

Introduce a `Snapshot` data class to wrap `AccessibilityEvent`s within the `AutomationService`. This `Snapshot` now includes a unique ID.

Modify the event flow exposed by `AutomationHost` to emit `Snapshot`s instead of raw `AccessibilityEvent`s. Update usages in `HyperOsSpecs`, `SpecGeneratorExtensions`, and `DebugTaskModule` to extract the event from the `Snapshot`.

Implement debug logging for screen snapshots in `AutomationService`. This includes logging the snapshot ID, the event, and the crawled node hierarchy, with a timeout to prevent blocking. This logging is enabled only in debug builds.
@d4rken d4rken added Automation Accessibility service related (ACS) c: Debug Debugging related features/issues labels May 16, 2025
@d4rken
d4rken merged commit bebdce5 into main May 18, 2025
@d4rken
d4rken deleted the acs-queued-logging branch May 18, 2025 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Automation Accessibility service related (ACS) c: Debug Debugging related features/issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant