← Back to Pull requests

twister, west, scripts: use EXTRA_CONF_FILE for overlay confs #119033

Open
unknown opened this pull request with 285 lines diff across 3 files
View on GitHub
unknown unknown commented on Sep 14, 2026 14:09 UTC
Author

twister, west and two helper scripts still passed test suite and sample overlay conf files to CMake through OVERLAY_CONFIG, the variable that EXTRA_CONF_FILE replaced in Zephyr 3.4. On the CMake side both names are merged into EXTRA_CONF_FILE, so this only keeps working while the deprecated alias is still accepted.

Pass the overlay conf files through EXTRA_CONF_FILE instead. All sources are merged into one -D: the last EXTRA_CONF_FILE a test suite sets in extra_args first, then its extra_conf_files, then the overlay conf files last. Two -D options for the same variable would silently keep only the last one, and the overlays have to stay last to keep the precedence they had as a separate variable.

  • scripts/pylib/twister/twisterlib/runner.py, scripts/west_commands/build.py: merge the extra args, extra conf files and overlay conf files into the single EXTRA_CONF_FILE argument, so a suite that sets both extra_conf_files and EXTRA_CONF_FILE in extra_args keeps both. The twister expectations in scripts/tests/twister/test_runner.py follow.

  • scripts/net/run-sample-tests.sh: hand the --overlay files over as EXTRA_CONF_FILE. samples/net/mqtt_publisher/docker-test.sh consumes that same $overlay value next to its own -DEXTRA_CONF_FILE=, so its three call sites merge the two lists, last. This completes what PR #87546 left behind, which converted the other samples/net/*/docker-test.sh scripts but missed this one.

  • tests/bsim/compile.source: pass conf_overlay and extra_conf_file in one EXTRA_CONF_FILE, conf_overlay last.
  • Checks: twister unit tests pass (scripts/tests/twister/, 955 tests), ruff and pylint clean, bash -n clean. For twister a test suite with extra_conf_files: [common.conf] and extra_overlay_confs: [overlay.conf] now builds with EXTRA_CONF_FILE=common.conf;overlay.conf and produces the same .config as before, in both the plain and the sysbuild case, and no OVERLAY_CONFIG is passed to CMake any more. The west path was verified the same way with west build -T.

    Not verified: no real bsim build (the nRF BSIM environment is not available here), and the networking scripts were checked at the argument level only, not by running the docker based sample tests.

    Fixes #113145

    Diff: 285 lines (+213 / -72) across 3 files Reviewer: rootkiller6788 Review duration: 111163m
    All Vouch review confidence checks passed
    Residual risk 0.26 = Change Risk (0.47) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 285 lines diff across 3 files
    0.47
    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.338
    Real PR Conversation Timeline
    1 comments
    "Review active on #119033"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 44.7% reviewed
    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: 46.8% (MEDIUM) · Higher = larger blast radius
    46.8%
    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.7% · Lower = rushed or shallow review
    44.7%
    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: 25.9% · Safe to merge
    25.9%