-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[PSA Client Testing] Refactored code wrapping code #9224
[PSA Client Testing] Refactored code wrapping code #9224
Conversation
stream: str, | ||
in_headers: Collection[str] = DEFAULTS["input_headers"]) -> None: | ||
super().__init__(output_h_f, output_c_f, in_headers)# type: ignore[arg-type] | ||
self.set_stream(stream) |
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.
Missing newline at end of file (that's pretty much the limit of my Python 😊)
I can review this but please resolve the conflicts first. |
21b8880
to
c7d55f8
Compare
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'm sorry but this approach of duplicating files is not practical. Since #9200, generate_psa_wrappers.py
is in the framework repository, and needs to be edited there.
# Copyright The Mbed TLS Contributors | ||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later | ||
|
||
### NOTE. This is a future version of the file located at |
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.
Please don't duplicate code between the two repositories. It might work for work on the simulator, but it blocks all other work that would use the PSA wrappers, and making the PSA wrappers available to other work is the whole point of separating it out.
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.
Is there any current work that needs to modify the PSA wrappers? If not, this approach should be okay, with a piece at the end of the quarter to reconcile the code in the repositories. Otherwise the work on the framework repo is going to slow this down significantly
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.
This has been addressed in PR #25
Related framework PR #25 |
4828520
to
d8071b2
Compare
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.
This PR looks good to me. I just edited the description stating that it depends on Mbed-TLS/mbedtls-framework#25, so we should merge that one first, then come back on this and merge it. I will also add the proper label
9425050
to
473245f
Compare
f70b715
to
102918d
Compare
bump |
102918d
to
3b40ce3
Compare
As of 3b40ce3 there is still a conflict in the framework, and the CI is failing. Please rebase and fix the content of the framework to pass the CI. |
f7c2bcb
to
39350a6
Compare
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.
LGTM
We'll need a 3.6 backport to update the generated files. |
The CI is failing in |
Signed-off-by: Minos Galanakis <[email protected]>
Signed-off-by: Minos Galanakis <[email protected]>
39350a6
to
eae4ce7
Compare
This pr is no longer required as the framework pointer has been updated as of #9394 |
This pull request was still required because it was supposed to extend |
Description
This pr introduces a
PSAWrapperclass
which abstracts the generic code-wrapper code and makesPSATestWrapper
inherit from it.It also migrates all the relevant code in its own sub-package since there will be many more relevant modules planned for dynamic c code generation.
Resolves #8961
Depends on Mbed-TLS/mbedtls-framework#25.
PR checklist
Please tick as appropriate and edit the reasons (e.g.: "backport: not needed because this is a new feature")
Notes for the submitter
Please refer to the contributing guidelines, especially the
checklist for PR contributors.
Help make review efficient: