Skip to content
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

ct: Remove usage of deprecated ct_slave in tests #9560

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jchristgit
Copy link
Contributor

These commits update the common_test test suite to:

  • Remove usage of the deprecated ct_slave and slave modules in tests (with the exception of the ct_slave tests itself, and some test_server tests for test_server:start_node)
  • Switch ct:pal to ct:log in most top-level test suites (except for ct_log_SUITE, which explicitly wants to test them), since the stdout of peer nodes won't be shown on the main test nodes & IMO make sense to contain to the HTML logs
  • Enable the cte_track event handler in tests for both local and GitHub-based runs

The second and third commit are of course a bit opinionated, so I'm happy to drop them (and possibly make peer log to our stdout) if wanted.

The only change here I'm a bit unsure about is the `cth_auto_clean`
suite, it is unclear to me why the application master is not started in
`init_per_suite` already, as I can't find any call to start an app
inbetween.
Since peer is way less talkative on the console, trim the remaining logs
too, such that we can use e.g. `cte_track` for clean console output.
Copy link
Contributor

github-actions bot commented Mar 8, 2025

CT Test Results

  2 files   57 suites   1h 12m 28s ⏱️
451 tests 438 ✅ 13 💤 0 ❌
485 runs  469 ✅ 16 💤 0 ❌

Results for commit ba75f33.

♻️ 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

@rickard-green rickard-green added the team:PS Assigned to OTP team PS label Mar 10, 2025
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants