Skip to content

Filter noisy oneOf schema warnings during tmt lint#4896

Open
tcornell-bus wants to merge 1 commit into
mainfrom
tcornell-remove-lint-schema-noise
Open

Filter noisy oneOf schema warnings during tmt lint#4896
tcornell-bus wants to merge 1 commit into
mainfrom
tcornell-remove-lint-schema-noise

Conversation

@tcornell-bus
Copy link
Copy Markdown
Contributor

@tcornell-bus tcornell-bus commented May 18, 2026

When validating steps that use oneOf schemas (e.g., report plugins), the linter was showing validation errors from all alternative schemas rather than just the one matching the 'how' value. This created confusing noise like warnings about missing polarion fields when using reportportal.

Now, when a oneOf validation fails, only errors from the schema matching the specified 'how' value are shown.

Updated tests to verify that irrelevant schema warnings are filtered out while relevant ones are still displayed.

Assisted-by: Cursor AI

Fixes: #4680

Pull Request Checklist

  • implement the feature
  • extend the test coverage
  • include a release note

When validating steps that use oneOf schemas (e.g., report plugins),
the linter was showing validation errors from all alternative schemas
rather than just the one matching the 'how' value. This created
confusing noise like warnings about missing polarion fields when
using reportportal.

Now when a oneOf validation fails, only errors from the schema
matching the specified 'how' value are shown.

Updated tests to verify that irrelevant schema warnings are
filtered out while relevant ones are still displayed.

Assisted-by: Cursor AI
@tcornell-bus tcornell-bus added the command | lint tmt lint command label May 18, 2026
@github-project-automation github-project-automation Bot moved this to backlog in planning May 18, 2026
Copy link
Copy Markdown
Contributor

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

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 updates the linter to filter schema validation sub-errors based on the 'how' plugin value, reducing noise in the output. Test cases were also updated to ensure that only relevant warnings are reported. I have no feedback to provide.

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

Labels

command | lint tmt lint command

Projects

Status: backlog

Development

Successfully merging this pull request may close these issues.

Filter out misleading tmt lint messages where possible.

1 participant