Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts: twister: Add test plan filtering feature (--exclude-plan) #79188

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

golowanow
Copy link
Member

@golowanow golowanow commented Sep 30, 2024

New Twister exclude-plan feature for test plan advanced filtering and test scope gap resolution.

The new feature allows to apply Twister test plan and report JSON file(s) as extended rules to filter out tests on the following Twister executions. This way a test plan hierarchy can be orchestrated, for example to chain simulated and physical platforms to optimize their usage.

The test plan files can be applied for filtering in different ways: by exact match on test name, platform, runnable status, test status, and their combinations.

New Twister options (also documented in command line help):
--exclude-plan-exact
--exclude-plan-platform
--exclude-plan-run
--exclude-plan-name
--exclude-plan-status

Twister test suite for the new feature.

Should facilitate #78403

@golowanow golowanow force-pushed the twister_exclude_plan_20240921 branch 2 times, most recently from 305a364 to 89eb3bc Compare September 30, 2024 10:14
@golowanow golowanow marked this pull request as ready for review September 30, 2024 11:10
@zephyrbot zephyrbot added the area: Twister Twister label Sep 30, 2024
@golowanow
Copy link
Member Author

^ dear reviewers, up to your attention

@nashif
Copy link
Member

nashif commented Oct 5, 2024

I am not sure I understand what this PR is trying to do, please provide some more details in form of docs or in the body of this PR.

Copy link

github-actions bot commented Dec 5, 2024

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Dec 5, 2024
@golowanow golowanow added In progress For PRs: is work in progress and should not be merged yet. For issues: Is being worked on and removed Stale labels Dec 5, 2024
New Twister `exclude-plan` feature for test plan advanced filtering
and test scope gap resolution.

The new feature allows to apply Twister testplan and report JSON file(s)
as extended rules to filter out tests on the following Twister executions.
This way a test plan hierarchy can be orchestrated, for example
with simulated and physical platforms to optimize their usage.

The testplan files can be applied for filtering in different ways:
by exact match on test name, platform, runnable status, test status,
and their combinations.

New Twister options (also documented in command line help):
 --exclude-plan-exact
 --exclude-plan-platform
 --exclude-plan-run
 --exclude-plan-name
 --exclude-plan-status

Twister test suites for the new feature.

Signed-off-by: Dmitrii Golovanov <[email protected]>
@golowanow golowanow force-pushed the twister_exclude_plan_20240921 branch from 89eb3bc to ab79403 Compare January 19, 2025 10:35
@golowanow golowanow added Enhancement Changes/Updates/Additions to existing features and removed In progress For PRs: is work in progress and should not be merged yet. For issues: Is being worked on labels Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Twister Twister Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants