configure.py: Apply module selection switches in command line order #6079
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.59) × (1 − Review Confidence (0.44)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.59 · 200 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.317
Sensitive Paths
sensitive_paths
0.059
Real PR Conversation Timeline
1 comments
"Review active on #6079"
general
weight: 0.35
RajaBabu15
Closes #5253.
The first commit switches
configure.pyfromoptparsetoargparse. No functional change is intended: option names, destinations, defaults and help texts are unchanged, and a separate value that starts with a dash (--extra-cxxflags -fno-foo) is still accepted. Only the wording of command line errors and the layout of--helpdiffer.The second commit records
--enable-modules,--disable-modulesand--with-X/--without-Xin command line order and applies them left to right, so a later specific switch overrides an earlier generic one:--minimized-build --enable-modules='pcurves' --disable-modules='pcurves_brainpool'(already worked, unchanged)--disable-modules='pcurves' --enable-modules=pcurves_generic--disable-modules='avx2' --enable-modules=sha2_32_avx2--minimized-build, module policies, deprecated/experimental handling and dependency resolution are unchanged; they work on the resulting enabled/disabled lists.Behavior change:
--disable-modules=X --enable-modules=X(and--without-X --with-X) now enablesX; before, disable always won. I applied the ordering to--with-X/--without-Xtoo, since otherwise they would be inconsistent with--enable-modules; happy to drop that if you prefer.Testing: new unit tests in
python_unittests.py(25 pass, pluspython_unittests_unix.py). I also compared the module list printed byconfigure.pybefore and after for 13 command lines; only the "enable after disable" cases change. Not run: pylint, Python 3.10, Windows. Docs updated inbuilding.rst, entry added tonews.rst.