← Back to Pull requests

Layering multiple v2 and v1 config file inputs #3314

Closed
unknown closed this pull request without merging on Nov 27, 2026 15:08 UTC
View on GitHub
unknown unknown commented on Nov 27, 2026 11:53 UTC
Author

Beyla can now load several configuration files and layer them:

    BEYLA_CONFIG_PATH=team.yml:local.yml beyla -config base.yml -config site.yml

  • Files load in increasing priority: -config flags in order, then the

  • comma-separated BEYLA_CONFIG_PATH entries.
  • Files can mix Config v1 and v2. The first file sets the version and the

  • defaults; each later file overrides only the settings that differ from the
    defaults of its own version. Lists and maps replace the previous value.
  • A later file cannot reset a setting to its default value.

  • When the result is v2, the discovery-criteria watcher monitors all files and

  • reloads the whole stack when any of them changes.

    Rationale

    Smoothen the transition from v1 to v2 in existing users. Users can keep their legacy v1 configuration while adding new features in v2 config.

    This is also a useful feature independently of the v1->v2 transition. Yo can define a base configuration and pack it inside a container and then override few environment-dependant features.

    Compatibility

  • Affected surfaces: -config flag (now repeatable, additive) and

  • OTEL_EBPF_CONFIG_PATH.
  • Single-file invocations behave as before.

  • Validation: unit tests for layering, mixed versions, path ordering and

  • multi-file reload; make lint, make lint-markdown.

    A theoretically breaking change but I consider it as an edge case that would not justify a major version increase: an OBI installation defining both OTEL_EBPF_CONFIG_PATH and -config now mix both configurations instead of prioritizing the env var over the CLI arg.

    Diff: 202 lines (+151 / -51) across 2 files Reviewer: mariomac Review duration: 194m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.59) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.59 · 202 lines diff across 2 files
    0.59
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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
    Diff Size diff_size
    0.318
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.059
    Real PR Conversation Timeline
    1 comments
    "Review active on #3314"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 23.5% · Safe to merge
    23.5%
    Repository