Skip to content

Conversation

@hertrste
Copy link
Collaborator

@hertrste hertrste commented Jan 7, 2026

Currently, in case of an error we print logs from CHV and Libvirt to stdout. This is done to not miss any important information in case we have an test error in the CI.

We replace that behavior and save the log files on the host now. This allows to offer such logs as artifacts in our CI, while it reduces the amount of standard output of the test driver.

The debug log directory can be configured via DBG_LOG_DIR environment variable.

@hertrste hertrste force-pushed the dbg-logs branch 3 times, most recently from 59f331b to 29b5d4a Compare January 7, 2026 13:52
@hertrste hertrste marked this pull request as draft January 7, 2026 15:41
@hertrste hertrste force-pushed the dbg-logs branch 3 times, most recently from 737ab60 to bd46d9e Compare January 8, 2026 09:56
Instead of printing the logs to stdout in case we have some test
failure, we save them to some specified debug log directory.

The printing was done to see rar errors in the pipeline that are hard to
reproduce locally, but it spammed the logs a lot.

Thus, we now switch to saving the logs and the CI can offer them as test
artifacts instead.

On-behalf-of: SAP [email protected]
@hertrste hertrste marked this pull request as ready for review January 8, 2026 09:56
@hertrste hertrste requested review from phip1611 and tpressure January 8, 2026 09:57
@tpressure
Copy link
Contributor

Very nice improvment

Copy link
Member

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

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

LGTM! I'm still in favor of doing this unconditionally in $PWD/libvirt-tests-logs and add that to .gitignore, thus drop that ENV var.

Feel free to decide which way you want to go :)

@hertrste hertrste added this pull request to the merge queue Jan 8, 2026
Merged via the queue into main with commit 2315ef0 Jan 8, 2026
4 checks passed
@hertrste hertrste deleted the dbg-logs branch January 8, 2026 11:34
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.

4 participants