-
Notifications
You must be signed in to change notification settings - Fork 8.2k
samples: subsys: settings: Allow on nrf54L20 PDK #83165
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
Closed
nordic-segl
wants to merge
1
commit into
zephyrproject-rtos:main
from
nordic-segl:NRFX-6832_Enable-settings-tests-on-nrf54l20pdk
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
samples/subsys/settings/boards/nrf54l20pdk_nrf54l20_cpuapp.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| CONFIG_NVS=y | ||
| CONFIG_SETTINGS_NVS=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is nothing to test, it's a sample (will follow up with a PR to clean up the rest of the list if I don't forget)
See https://docs.zephyrproject.org/latest/samples/sample_definition_and_criteria.html#twister-should-be-able-to-build-every-sample
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On that page/chapter there is:
"Use platform_allow to limit test to the platforms the sample was actually verified on. Those platforms should be listed in the sample’s README file."
I believe this sample doesn't work out-of-the box on every platform. At least, nRF boards require some KConfig tweaks. However, I see in the 'boards' directory overlay files for boards that are not listed under platform_allow.
I will add commit that removes platform_allow from this sample to check how CI reacts.
TBC
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
platform_allow must stay. Otherwise integration CI is failing:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never asked you to remove
platform_allowaltogether, just the line you'd added :) see my request for change.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remove that line, Twister will skip this test/sample on nrf54l20pdk because it's not in platform_allow.
So, what do You mean by "will follow up with a PR to clean up the rest of the list if I don't forget"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's the whole point! :) There is no need for Twister to go through each sample and test them against dozen of platforms, this just doesn't scale in terms of project infrastructure.
I would like you to not add the new line, and by follow-up I mean I will clean up the other lines so that people stop unecessarily adding to this list and to keep Twister "testing" to the strict minimum, i.e test that the sample builds fine and runs fine on e.g native sim.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was referring to Nordic's internal CI that executes on-target Twister tests. Currently, that's the only place where nrf54L20 PDK can be tested.
Based on Twister results we calculate metrics that "give overview" how well each target is tested, SW maturity level, etc. (this statement is an oversimplification).
Nordic Management would like to have similar test coverage on nrf54L20 as on other platforms. As a result, I was given task to enable Twister tests on that target (in Nordic's internal CI but this also enables testing in the "upstream CI").
I need to discuss this with my boss because our expectations are conflicting. Unfortunately, he's out of office until January 2025.
So, I guess it's not as simple as run "upstream Twister" with options:
-T TESTSUITE_ROOT, --testsuite-root TESTSUITE_ROOTto select which tests to execute and/or-P EXCLUDE_PLATFORM, --exclude-platform EXCLUDE_PLATFORMto skip testing on given platform and/or-p PLATFORM, --platform PLATFORMto run tests on f.e. native sim only.Are other manufacturers aware that it's planned to limit "upstream Twister" scope in a way that silently limits test scope in "private Twister runs"?