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

twister/samples: more filter cleanup for samples and a twister filter improvement #77823

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

nashif
Copy link
Member

@nashif nashif commented Aug 30, 2024

  • twister: add depends_on_one key
  • boards: add mmu/mpu as supported feature
  • samples: userspace: improve filtering
  • samples: mpu: refine filter and documentation
  • samples: mpu: rename folder, this is not a test

dcpleung
dcpleung previously approved these changes Aug 30, 2024
Support dependency on at least one of a list of compatible features, for
example: mmu and mpu, one of them will do in a userspace test..

Signed-off-by: Anas Nashif <[email protected]>
Add mpu and mmu as supported features to aid with filtering and coverage
in tests and samples.

Signed-off-by: Anas Nashif <[email protected]>
Improve filtering and make it more selective to get the optimal
coverage.

Signed-off-by: Anas Nashif <[email protected]>
refine twister filters and documentation, point to a qemu platform in
the samples instead of a hw platform that is not available.

Signed-off-by: Anas Nashif <[email protected]>
Rename folder and a few test references in the docs.

Signed-off-by: Anas Nashif <[email protected]>
refine smp filters and do not use filter keyword for efficiency.

Signed-off-by: Anas Nashif <[email protected]>
Use depends_on and avoid filter in tests where possible. Remove
excessive exclusion of platform and instead select platforms to be used
for the test.

Signed-off-by: Anas Nashif <[email protected]>
scripts/pylib/twister/twisterlib/testplan.py Outdated Show resolved Hide resolved
doc/develop/test/twister.rst Outdated Show resolved Hide resolved
overhaul filtering and use platform_key where it makes sense. Some
scenarios are limited now with platform_allow to provide enoug coverage
for those sample and not consume resource without value in CI.

Signed-off-by: Anas Nashif <[email protected]>
@@ -8,6 +8,8 @@ toolchain:
- zephyr
- cross-compile
- arcmwdt
supported:
- mpu
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm, I'm wondering why this the only SNPS platform we add mpu tag to?
There are a lot of snps platforms which have mpu but now they will be filtered out in mpu-related tests.

@PerMac
Copy link
Member

PerMac commented Sep 11, 2024

I have the same concern as Evgeniy. I found "mpu" among "supported" on only a single platform in current zephyr. I guess this key was never used before, hence it is not present in board descriptions. Adding dependencies on this keyword can easily pass unnoticed. I can add it to all Nordic boards that have mpu but many others will most likely miss it.

@PerMac PerMac mentioned this pull request Sep 13, 2024
@PerMac
Copy link
Member

PerMac commented Sep 13, 2024

I made an RFC where we can discuss how to speed up CIs without artificially limiting scopes with platform_allow #78403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants