Skip to content

Use fmf for result filtering - #3

Merged
tcornell-bus merged 3 commits into
mainfrom
fvagner-recipe-tool-filtering
Aug 12, 2026
Merged

Use fmf for result filtering#3
tcornell-bus merged 3 commits into
mainfrom
fvagner-recipe-tool-filtering

Conversation

@therazix

Copy link
Copy Markdown
Contributor

Replace hardcoded result filters with a single fmf expression supporting name, result, and defect.

Assisted-by: Cursor

@therazix therazix added the enhancement New feature or request label Jul 27, 2026
@github-project-automation github-project-automation Bot moved this to backlog in planning Jul 27, 2026
@therazix therazix moved this from backlog to review in planning Jul 27, 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.

Just some random nitpicks, otherwise looks fine to me

Comment thread tmt-recipe-tool/tmt_recipe_tool/filtering.py Outdated
Comment thread tmt-recipe-tool/tmt_recipe_tool/filtering.py
Comment thread tmt-recipe-tool/tmt_recipe_tool/filtering.py Outdated
Comment thread tmt-recipe-tool/README.md Outdated
Comment thread tmt-recipe-tool/pyproject.toml Outdated

@tcornell-bus tcornell-bus left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Manual test results

Scenario Result
Default filter Kept /tests/beta (fail) and /tests/gamma (error) only
result: pass Kept pass tests
name: .*/smoke.* Kept /tests/smoke/basic
result: fail | name: .*/smoke.* OR worked
result: -pass & result: -skip Negation worked (fail/error/warn)
defect: none & result: fail Worked for local results (defect: None → matches none case-insensitively)
No matches Exit 3 + warnings
Invalid key boguskey: x Raises FilterExpressionError (but see below)
--run-workdir relative results path OK
Real run-016 (fail) / run-006 (pass) Default vs result: pass behaved correctly

Assisted-by: Composer

Edit: I removed the AI complaints that I am not concerned about. Manual run using --use-reportportal works as expected.

@tcornell-bus

Copy link
Copy Markdown

Apologies, I asked AI to review, and it decided to post before I could review its review 🙁

@tcornell-bus tcornell-bus moved this from review to merge in planning Aug 12, 2026
@tcornell-bus
tcornell-bus merged commit 8d0d5ec into main Aug 12, 2026
@tcornell-bus
tcornell-bus deleted the fvagner-recipe-tool-filtering branch August 12, 2026 12:06
@tcornell-bus tcornell-bus moved this from merge to done in planning Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: done

Development

Successfully merging this pull request may close these issues.

3 participants