← Back to Pull requests

Support cbc files with legacy syntax for v1 recipes #6103

Closed
unknown closed this pull request without merging on Sep 18, 2026 08:25 UTC
View on GitHub
unknown unknown commented on Aug 21, 2026 12:47 UTC
Author

This adds support for config files that use the # [selector] syntax. They can be loaded using
rattler_build.VariantConfig.from_conda_build_config() from py-rattler-build. While doing that, we must provide a JinjaConfig object containing the platform configuration used to evaluate the selectors.

Closes: https://github.com/conda/conda-build/issues/6101

<!-- Hello! Thanks for submitting a PR! To help make things go a bit more
smoothly, we would appreciate it if you follow this template. -->

Description

<!-- Good things to put here include:
- reasons for the change (please link any relevant issues!),
- any noteworthy (or hacky) choices to be aware of,
- or what the problem resolved here looked like. -->

Checklist - did you ...

<!-- If any of the following items aren't relevant to your contribution,
please either tick them or use ~strikethrough~ so we know you've gone
through the checklist. -->

  • Add a file to the news directory (using the template) for the next release's release notes?

  • <!-- All "significant" changes should get an entry:
    - user-facing changes or enhancements
    - bug fixes
    - deprecations
    - documentation updates
    - etc -->
  • Add / update necessary tests?

  • Add / update outdated documentation?
  • <!-- Just as a reminder, everyone in all conda org spaces (including PRs)
    must follow the Conda Org Code of Conduct (link below).

    Finally, once again, thanks for your time and effort. If you have any
    feedback in regards to your experience contributing here, please
    let us know!

    Helpful links:
    - Conda Org COC: https://github.com/conda/conda-build/blob/main/CODE_OF_CONDUCT.md
    - Contributing docs: https://github.com/conda/conda-build/blob/main/CONTRIBUTING.md -->

    Diff: 246 lines (+184 / -62) across 3 files Reviewer: schuylermartin45 Review duration: 40057m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 246 lines diff across 3 files
    0.39
    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.330
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #6103"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 38.9% (MEDIUM) · Higher = larger blast radius
    38.9%
    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: 15.4% · Safe to merge
    15.4%