Skip to content

Conversation

@Mikaka27
Copy link
Contributor

@Mikaka27 Mikaka27 commented Oct 9, 2025

No description provided.

@Mikaka27 Mikaka27 self-assigned this Oct 9, 2025
@Mikaka27 Mikaka27 added team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI labels Oct 9, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2025

CT Test Results

  2 files   57 suites   1h 16m 41s ⏱️
451 tests 436 ✅ 15 💤 0 ❌
485 runs  467 ✅ 18 💤 0 ❌

Results for commit 057db1f.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@Mikaka27 Mikaka27 requested a review from u3s October 9, 2025 16:34

[](){: #comment }

### Comment in hooks
Copy link
Contributor

Choose a reason for hiding this comment

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

what about this different process organization depending on how you install a hook?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added table that presents this information

@Mikaka27 Mikaka27 force-pushed the michal/common_test/add-information-about-group-leader-for-ct-comment branch from d11ba21 to 057db1f Compare October 13, 2025 17:16
@Mikaka27 Mikaka27 requested a review from u3s October 13, 2025 17:59

This table presents information where `ct:comment/1-2` prints to, depending on how hook was installed:

| Hook function | Install in: `ct_run`, `ct:run_test/1`, Test Specification | Install in: suite/0, init_per_suite/1, init_per_group/2 |
Copy link
Contributor

Choose a reason for hiding this comment

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

good to know how it behaves.

let's discuss on some occasion, if this should be documented and should it be done that way or other.
@IngelaAndin

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this text looks good as external doc but I do not think we should repeat it in two places. Decide on one an link it from the other place.

@IngelaAndin IngelaAndin self-requested a review October 21, 2025 12:35
| terminate/1 | nowhere | end_per_suite row |

_Table: Behavior of `ct:comment/1-2` depending on hook installation method_

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is to detailed for external documentation, and could potential get forgotten when updating, I have not check, are all these functions documented callbacks? Perhaps this should be interna doc only. Maybe it would be possible
to write something like "all per_testcase functions will write comment to ..." etc

Copy link
Contributor

Choose a reason for hiding this comment

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

yes. I would prefer table to go to into internal docs as might be useful for us in future.

in external docs I would like a info note that for some callbacks ct:comment operation might not work (can it be easily explained why?). maybe list exact the callbacks.

then maybe have 2nd info note explaining that method of hook installation might further impact the above list (again, can it be easily explained why?). mayble list exact callbacks.

Providing some brief explanation, might be educative to users wanting to understand how stuff works.

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

Labels

team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants