Skip to content

Commit 432019a

Browse files
committed
tests: Filter out TMT's verbose DEBUG logging in CI
TMT's queue/worker implementation (used for parallel provisioning) emits DEBUG-level log messages using Python's standard logging format that bypass TMT's normal formatting and filtering. These messages appear as: DEBUG:tmt.run.logger0.provision.provision.queue: ... This results in over 100,000 lines of debug output in CI runs, making logs difficult to read and consuming significant storage. The DEBUG output: - Uses Python's default logging format, not TMT's custom formatter - Appears regardless of TMT's -v or -d flags - Comes from TMT's internal queue worker threads during provision steps - Contains messages like "memory: set to '2048 MB' because of no constraints" This fix filters out these Python logging DEBUG lines while preserving: - TMT's normal formatted output (test results, progress, etc.) - Actual test output and errors - INFO, WARNING, and ERROR level messages The root issue should be reported upstream to TMT as the queue logger should respect TMT's debug_level settings. Assisted-by: Claude Code (Sonnet 4.5)
1 parent 91506a9 commit 432019a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/run-tmt.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@ rm -vrf /var/tmp/tmt/testcloud/images/bootc-integration-test.qcow2
2323

2424
cd target/tmt-workdir
2525
# TMT will rsync tmt-* scripts to TMT_SCRIPTS_DIR=/var/lib/tmt/scripts
26-
# running_env=image_mode means running tmt on image mode system on Github CI or locally
27-
exec tmt --context "test_disk_image=${DISK}" --context "running_env=image_mode" run --all -e TMT_SCRIPTS_DIR=/var/lib/tmt/scripts "$@"
26+
# running_env=image_mode means running tmt on image_mode system on Github CI or locally
27+
#
28+
# Filter out verbose DEBUG lines from TMT's internal queue logging.
29+
# TMT's queue/worker implementation emits DEBUG-level Python logging messages
30+
# that bypass TMT's normal formatting. These add 100k+ lines of noise in CI logs.
31+
# We filter lines matching "DEBUG:tmt.*:" while preserving TMT's formatted output
32+
# and actual test results.
33+
exec tmt --context "test_disk_image=${DISK}" --context "running_env=image_mode" run --all -e TMT_SCRIPTS_DIR=/var/lib/tmt/scripts "$@" 2>&1 | grep -v "^DEBUG:tmt\."

0 commit comments

Comments
 (0)