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

4.1/main: Make CI: Fix and enhance ct_master #12502

Merged
merged 10 commits into from
Oct 16, 2024
Merged

Conversation

lhoguin
Copy link
Contributor

@lhoguin lhoguin commented Oct 10, 2024

Most of this will be sent as a PR to OTP.

The ct_run:run_test function already takes care of the
node's logs. The ct_master_logs module takes care of
ct_master itself.
Needed to file:set_cwd like in normal CT.
It makes more sense to sort by node name, than to have
the results in the order they finished.
Instead of having a CT hook just to know whether our tests failed.
Of a ct_master run. This uses the builtin CT Master event
handler to gather the results.
@lhoguin
Copy link
Contributor Author

lhoguin commented Oct 15, 2024

This is ready to be merged. I will send OTP pull requests later this week. One interesting thing this PR does is print a list of failed cases at the end of the CT master output:

Note that this prints all errors but that end_per_group failures are not considered by CT to be failed test cases. So a test suite can be successful but still print these errors.

@lhoguin lhoguin marked this pull request as ready for review October 15, 2024 13:22
@lhoguin lhoguin changed the title DO NOT MERGE: Make CI: Fix and enhance ct_master Make CI: Fix and enhance ct_master Oct 16, 2024
@lhoguin
Copy link
Contributor Author

lhoguin commented Oct 16, 2024

Opened erlang/otp#8946 to backport this to OTP.

@lhoguin lhoguin changed the title Make CI: Fix and enhance ct_master 4.1/main: Make CI: Fix and enhance ct_master Oct 16, 2024
@lhoguin lhoguin merged commit e4d20bb into main Oct 16, 2024
247 of 252 checks passed
@lhoguin lhoguin deleted the loic-ct-master-patching branch October 16, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant