Skip to content

Commit d479ed4

Browse files
committed
ci: Use patched TMT from cgwalters/tmt to fix DEBUG verbosity
Remove the grep workaround from tests/run-tmt.sh and instead install the patched version of TMT from cgwalters/tmt's fix-queue-debug-logging branch in CI. The TMT patch fixes DebugLevelFilter to reject DEBUG messages without TMT's custom details attribute, eliminating 100k+ lines of debug output from queue worker threads during provision. This tests the upstream patch that will be submitted to teemtee/tmt. Re-enabled CI triggers (push/PR) to test with the patched TMT. Assisted-by: Claude Code (Sonnet 4.5)
1 parent 8d00434 commit d479ed4

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ permissions:
1111
actions: read
1212

1313
on:
14-
# Temporarily disabled for debugging
15-
# push:
16-
# branches: [main]
17-
# pull_request:
18-
# branches: [main]
14+
push:
15+
branches: [main]
16+
pull_request:
17+
branches: [main]
1918
workflow_dispatch: {}
2019

2120
env:
@@ -168,8 +167,12 @@ jobs:
168167
uses: ./.github/actions/bootc-ubuntu-setup
169168
with:
170169
libvirt: true
171-
- name: Install tmt
172-
run: pip install --user "tmt[provision-virtual]"
170+
- name: Install tmt (patched version from cgwalters/tmt)
171+
run: |
172+
# Install tmt from cgwalters/tmt fork's fix-queue-debug-logging branch
173+
# This includes the patch that fixes DebugLevelFilter to reject DEBUG messages
174+
# without TMT's custom details attribute, eliminating 100k+ lines of debug output
175+
pip install --user "git+https://github.com/cgwalters/tmt.git@fix-queue-debug-logging#egg=tmt[provision-virtual]"
173176
174177
- name: Create folder to save disk image
175178
run: mkdir -p target

tests/run-tmt.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,4 @@ rm -vrf /var/tmp/tmt/testcloud/images/bootc-integration-test.qcow2
2424
cd target/tmt-workdir
2525
# TMT will rsync tmt-* scripts to TMT_SCRIPTS_DIR=/var/lib/tmt/scripts
2626
# 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\."
27+
exec tmt --context "test_disk_image=${DISK}" --context "running_env=image_mode" run --all -e TMT_SCRIPTS_DIR=/var/lib/tmt/scripts "$@"

0 commit comments

Comments
 (0)