← Back to Pull requests

configure.py: Apply module selection switches in command line order #6079

Open
unknown opened this pull request with 200 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 31, 2026 14:42 UTC
Author

Closes #5253.

The first commit switches configure.py from optparse to argparse. 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 --help differ.

The second commit records --enable-modules, --disable-modules and --with-X/--without-X in 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 enables X; before, disable always won. I applied the ordering to --with-X/--without-X too, 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, plus python_unittests_unix.py). I also compared the module list printed by configure.py before and after for 13 command lines; only the "enable after disable" cases change. Not run: pylint, Python 3.10, Windows. Docs updated in building.rst, entry added to news.rst.

    Diff: 200 lines (+150 / -50) across 2 files Reviewer: RajaBabu15 Review duration: 44416m
    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
    0.59
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    44%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.2% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 59.4% (MEDIUM) · Higher = larger blast radius
    59.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 44.2% · Lower = rushed or shallow review
    44.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 33.1% · Safe to merge
    33.1%