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

Prevent overwriting test logs on multi VM tests #1949

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

Molter73
Copy link
Collaborator

@Molter73 Molter73 commented Nov 11, 2024

Description

When running integration tests on multiple VMs with ansible, the logs
generated may be overwritten as the different VMs end. This also causes
the reports on the test summary to only show the result for the VMs that
finish last. This situation is fine if all VMs have the same failures,
but when only one of them is failing, (i.e: a verifier issue on a
specific kernel) the error can get masked and incorrectly show all tests
have passed.

In order to fix this issue, logs and reports generated by CI should now
have the VM name as part of their file name.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly
  • Drop test commit before merging.

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

  • Check a unique failure on multi VM tests is preserved on CI. (run)
  • Check all logs are kept.

When running integration tests on multiple VMs with ansible, the logs
generated may be overwritten as the different VMs end. This also causes
the reports on the test summary to only show the result for the VMs that
finish last. This situation is fine if all VMs have the same failures,
but when only one of them is failing, (i.e: a verifier issue on a
specific kernel) the error can get masked and incorrectly show all tests
have passed.

In order to fix this issue, logs and reports generated by CI should now
have the VM name as part of their file name.
@Molter73 Molter73 marked this pull request as ready for review November 11, 2024 17:04
@Molter73 Molter73 requested a review from a team as a code owner November 11, 2024 17:04
@Molter73 Molter73 merged commit a01b62c into master Nov 12, 2024
77 of 88 checks passed
@Molter73 Molter73 deleted the mauro/prevent-test-log-overwrite branch November 12, 2024 09:03
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