Skip to content

Conversation

nathanl
Copy link
Contributor

@nathanl nathanl commented Sep 9, 2025

Related: DbConnection PR Use process labels

@josevalim josevalim merged commit 95265ba into elixir-lang:main Sep 9, 2025
13 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

context
) do
spawn_monitor(fn ->
Process.set_label({test.case, test.name})
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be overthinking this, but perhaps we could have an extra atom to make it distinguishable programmatically?

- Process.set_label({test.case, test.name})
+ Process.set_label({:ex_unit, test.case, test.name})

Copy link
Member

Choose a reason for hiding this comment

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

I thought so but the module name should be self explanatory in most cases as it ends with Test by convention!

Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense, although it doesn't cost much and also might have the benefit of grouping ex_unit tests together nicely if there is any sorting? Anyway, no strong opinion here 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sabiwara I saw this later. I like the idea. PR: Make this process label clearer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants