Skip to content

Stream emulator data into workflow visualizer app #1374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

wenli-cai
Copy link
Collaborator

@wenli-cai wenli-cai commented Jul 17, 2025

By using Unix Domain Sockets and adb forwarding, the visualizer is able to retrieve logged data directly from the emulator to display the workflow render passes.

The app has also been changed to allow for both File and Live tracing mode through a toggle.

wenli-cai and others added 15 commits July 16, 2025 18:56
Streamed data takes in a list of nodes at a time, but a trace file has lists of lists of nodes, so we use generics to differentiate them
Supplying generics don't seem to work and runs into error with nesting. This solution supplies a type for moshi and forces a cast to the desired type.
Extend TraceMode logic by using it to store the file/socket being used in the specific mode. The logic of rendering will depend on the type of TraceMode
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Previously, the use of types and manually casting was due to type erasure. But using kotlin's typeOf allows us to still supply the nested types.
This will always show the most recent workflow
Since reader.readLine() is a blocking call, it's difficult to pause/end when socket.close() is called. Instead we just try-catch for when the error occurs after closing.
Base automatically changed from wenli/visualizer-ui-improvements to main July 18, 2025 17:53
@wenli-cai wenli-cai marked this pull request as ready for review July 18, 2025 18:12
@wenli-cai wenli-cai requested review from zach-klippenstein and a team as code owners July 18, 2025 18:12
@wenli-cai wenli-cai changed the title Wenli/visualizer uds Stream emulator data into workflow visualizer app Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants