-
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
driver-only ECDSA: fix testing disparities in ecp, random, se_driver_hal #6946
Conversation
ef2c347
to
413ec8e
Compare
Hi @gilles-peskine-arm, I'm adding you as reviewer here since we started a discussion on the original issue and I thought you might be interested in this. |
Compared to my previous attempt and following @gilles-peskine-arm suggestion I did the following:
As a consequence:
Wdyt? |
413ec8e
to
c09f985
Compare
This needs rebasing now that #6855 has been merged. Also, since this is the first follow-up to #6855, can you fix the two typos that @mprse spotted in his review? |
yes, I'll do it immediately
sure! Only 1 last question on my side. Concerning the discussion in the original issue and in particular to this part:
it seems to me that I can return back to the original implementation I proposed, right? It was based on a "simple" check of the test case description in order to understand which test was to be skipped in the driver's coverage analysis |
c09f985
to
354df33
Compare
2bc1d8d
to
dd3e95d
Compare
Yes, if that's not too much trouble. What I like with the original implementation is that all the information about what to ignore is centralized in one data structure in |
This is not a problem at all! I asked mostly to be sure what to do ;)
I agree. As you might have seen yesterday I tried to fix also other issues (in other python scripts) coming from the fact that I changed something in the test generator script. The original implementation was definitely more limited in scope as number of changes |
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
dd3e95d
to
c373933
Compare
… suite Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
c373933
to
9cb0f7a
Compare
This last forced push is to cancel out the previous implementation, which attempted to modify the test generator script, and to return to a more simple solution which only acts on |
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.
Looks all good to me! Thanks!
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. Left only one minor proposition for improvement.
Tested locally with positive results.
tests/scripts/analyze_outcomes.py
Outdated
full_test_suite = key.split(';')[0] # retrieve full test suit name | ||
test_string = key.split(';')[1] # retrieve the text string of this test | ||
test_suite = full_test_suite.split('.')[0] # retrieve main part of test suit name |
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.
Minor: I think these lines can be move to line 87, so we have everything together.
Additionally if we continue
loop because test suite was ignored(line 82) or test was not executed(line 86) it is not needed.
@valeriosetti Both Przemek and I left optional comments. Since the CI results have expired in the meantime, I think it would make sense for you to push an updated version, so the CI will run again tonight and we can re-review and hopefully merge tomorrow. |
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
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
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
Description
The goal of this PR is to solve test disparities with and without driver implementation when ECDSA is accelerated. Full description is provided in #6856.
Resolves #6856
NOTES
analyze_outcomes.py
which was mentioned in the discussion of driver-only ECDSA: fix testing disparities in ecp, random, se_driver_hal #6856 here.Gatekeeper checklist