Skip to content

Comments

Don't block test exits when opening a trace#98

Merged
ftes merged 1 commit intoftes:mainfrom
nathanl:spawn_to_open_trace
Nov 14, 2025
Merged

Don't block test exits when opening a trace#98
ftes merged 1 commit intoftes:mainfrom
nathanl:spawn_to_open_trace

Conversation

@nathanl
Copy link
Contributor

@nathanl nathanl commented Nov 12, 2025

If @tag trace: :open is given, do not block the on_exit/1 call until the show-trace program is closed. Spawn a process to open it and let on_exit/1 finish so that the mix test command can finish.

@nathanl nathanl force-pushed the spawn_to_open_trace branch from ae6f069 to 7bc50c4 Compare November 12, 2025 14:33
Copy link
Owner

@ftes ftes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Great idea! Tiny suggestion.

@nathanl nathanl changed the title Don't block test exist when opening a trace Don't block test exits when opening a trace Nov 12, 2025
If `@tag trace: :open` is given, do not block the `on_exit/1` call until
the `show-trace` program is closed. Spawn a process to open it and let
`on_exit/1` finish so that the `mix test` command can finish.
@ftes
Copy link
Owner

ftes commented Nov 14, 2025

Thanks Nathan!

@ftes ftes merged commit 8f5b073 into ftes:main Nov 14, 2025
1 check passed
@nathanl nathanl deleted the spawn_to_open_trace branch November 14, 2025 14:38
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