-
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
config.py: don't rely on section names #9604
config.py: don't rely on section names #9604
Conversation
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 happy with the general approach, but there's a few things I need clarified before I can approve.
Please refer to Mbed-TLS#9604 This commit will be ammended when a consensus is reached. Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
Please refer to Mbed-TLS#9604 This commit will be ammended when a consensus is reached. Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
To get rid on the reliance on sections, change "full" and friends to enable settings based on whether the setting is boolean, rather than based on the section it contains. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
Change "realfull" to activate everything. After investigation, it seems that having "realfull" not activate everything was a historical oddity due to proximity with "full", not a goal in itself. Mbed-TLS#520 (comment) https://github.com/Mbed-TLS/mbedtls/pull/965/files#r523409092 This changes the output of `scripts/config.py realfull`: now all non-boolean options are uncommented. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
1fb3d7a
to
408aa31
Compare
We have finished removing the reliance of named configuration on section names. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
408aa31
to
00b9144
Compare
Please refer to Mbed-TLS#9604 This commit will be ammended when a consensus is reached. Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
I have rebased twice:
|
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 happy with the rebases but I don't think my previous feedback has been addressed.
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!
I had marked some of my comments as resolved by the realfull rework, but I for some reason I failed to notice that was also the case for the others, sorry.
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
I've merged the framework PR, please update to point to the merge commit. |
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
3c16e99
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
5602651
In
config.py
, stop relying on section names forconfig.py full
,config.py realfull
, etc. This way we can move configuration settings around as described in #9236 without having to worry about messing up the tooling.Specifically:
full
and friends no longer rely on the section to determine which settings are booleans that should be activated.realfull
is now really full. The goal is to document everything, and it turns out that uncommenting everything does work.Testing
The script
tests/scripts/test_config_script.py
runs some tests onconfig.py
and places the output in the given directory. Run it on the version ofconfig.py
from two commits to compare its effects.2→3 has an expected difference in the behavior of
realfull
.PR checklist
config.py
in 2.28