-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
samples: tfm_integration: psa_crypto: Disable sample (prevent fetching online content) #76093
Conversation
|
Does not fix, no, but prevents issues like that occurring again, that module still needs to be fixed by bringing in cmsis to tfm locally. The PR here rightfully fails, see https://github.com/zephyrproject-rtos/zephyr/actions/runs/10005520276/job/27656611035?pr=76093 which is what should be happening if a future update is brought in that does the same thing |
Ok thanks for clarifying, should this be enabled in the main CMakeFile instead? I imagine not because it would prevent a user from using this cmake feature. |
It is enabled there in CI with the twister -x option but only in CI, and yes for that reason that end users might want to use the feature. The annoying thing about cmake is that seemingly this option cannot be set in the environment or propagated to additional invocations of cmake, you can only set it on a single instance, not great really. |
6a72189
to
efad8a1
Compare
The following west manifest projects have been modified in this Pull Request:
Note: This message is automatically posted and updated by the Manifest GitHub Action. |
Thanks for adding this. I opened a fix PR: #76094. |
What this does is completely bypass the fetch steps, it's meant to be used with a cache that has already downloaded it, so it assumes that the data is present and then goes to the patching stage which then fails because the files do not exist, so it's not so much a case of it fails silently but just skips, if there was no file patching done then it would fail at the case of trying to build with the files instead |
Based on the documentation, the option explicitly shouldn't be used for this purpose:
|
That is stating that it shouldn't be used because you should fetch the content first, which is exactly what you should do if you are expecting to use the fetch functionality. It's fine to use here because we do not want any fetching of content, all the files to build should already be present, fetching should only be used with upstream TF-M, not zephyr |
Now
that results in TF-M attempting to download QCBOR. However QCBOR is complicated because its license is not compatible with Zephyr, so cannot be included. Some background:
What shall we do with this test then? Disable it? |
Module PR: zephyrproject-rtos/trusted-firmware-m#109 (also needed by #76094) |
46cc29e
to
0f1693f
Compare
Disables running this sample as doing so requires qcbor, which is not apache licensed Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
0f1693f
to
f39c9ee
Compare
I have had to remove the commits that prevent online fetching as cmake have taken it amongst themselves to deprecate how it is being used and will silently chuck the feature in the future, not impressed. However the tests passed which means no content is being fetched, so I've left a commit here disabling the test that does still fetch an external module (that isn't apache licensed) |
@nordicjm Hi -- I am trying to understand the ramifications of this. I'm working on unit tests for some new features that rely on TFM. It seems to me that I will have to mark these new tests as disabled as well, for the same reason? Also, with #76094 merged, is this still an issue? Can these tests be re-enabled? |
If it no longer pulls down from online they can be re-enabled |
#76094 was a separate issue than this. This sample was disabled in CI because it pulls code during build. It's because QCBOR has a license that is incompatible with Zephyr (so Zephyr doesn't ship it). It's needed for Anyway, this doesn't prevent other TF-M-related tests/samples from being added. They don't even need to be disabled as long as they don't make use of QCBOR. |
Prevents cmake (and tfm) from fetching online content in CI. Added because yet again tfm is fetching online content for its build for the 4th time or so and we need to catch it in CI before it gets merged.Thanks to @JordanYates for discovering issue