Skip to content

Lower unused plugin envvar messages from warning to debug log level#4969

Open
AthreyVinay wants to merge 1 commit into
mainfrom
avinay-unused-envvar-warning-to-debug
Open

Lower unused plugin envvar messages from warning to debug log level#4969
AthreyVinay wants to merge 1 commit into
mainfrom
avinay-unused-envvar-warning-to-debug

Conversation

@AthreyVinay

Copy link
Copy Markdown
Member

Resolves #4955

@AthreyVinay AthreyVinay added this to the 1.76 milestone Jun 8, 2026
@AthreyVinay AthreyVinay added code | logging Changes related to debug logging command | lint tmt lint command labels Jun 8, 2026
@github-project-automation github-project-automation Bot moved this to backlog in planning Jun 8, 2026
@AthreyVinay AthreyVinay moved this from backlog to review in planning Jun 8, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request downgrades the logging level for unused or missing plugin environment variables from warning to debug in tmt/steps/__init__.py. The corresponding CLI tests in tests/cli/plugin-envvars/test.sh are updated to assert the presence of these messages in the log file instead of checking for warnings in the standard run log. No review comments were provided.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@tcornell-bus tcornell-bus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

default debug level=1 seems correct and looks like these were the only two warning spots added in pr #4472

@tcornell-bus tcornell-bus added the ci | full test Pull request is ready for the full test execution label Jun 8, 2026
@tcornell-bus

Copy link
Copy Markdown
Contributor

/packit test

@happz happz moved this from review to merge in planning Jun 8, 2026

@LecrisUT LecrisUT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also worth mentioning in the description that it was introduced in #4472.

rlRun -s "TMT_PLUGIN_REPORT_XHTML_DISPLAY_GUEST=never $run_tmt"

rlAssertGrep "warn: Found environment variable for plugin 'report/xhtml', but the plugin was not found. The following environment variable will have no effect: TMT_PLUGIN_REPORT_XHTML_DISPLAY_GUEST" $rlRun_LOG
rlAssertGrep "Found environment variable for plugin 'report/xhtml', but the plugin was not found. The following environment variable will have no effect: TMT_PLUGIN_REPORT_XHTML_DISPLAY_GUEST" $rundir/log.txt

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Pass -d instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci | full test Pull request is ready for the full test execution code | logging Changes related to debug logging command | lint tmt lint command

Projects

Status: merge

Development

Successfully merging this pull request may close these issues.

Move warning messages about unused env. variables to debug log

5 participants