← Back to Pull requests

fix(recipes): add AL2023 EKS inference overlays for amazonlinux os #2743

Closed
unknown closed this pull request without merging on Oct 16, 2026 23:15 UTC
View on GitHub
unknown unknown commented on Sep 14, 2026 10:41 UTC
Author

Summary

Adds AL2023 (--os amazonlinux) EKS inference leaves for h100, gb200, gb300 and rtx-pro-6000, so aicr recipe --service eks --os amazonlinux --intent inference resolves instead of returning [INVALID_REQUEST] no recipe provides os 'amazonlinux'.

Motivation / Context

amazonlinux is a valid --os value, but no EKS recipe provided it; omitting --os silently dropped the OS constraint set.

Fixes: #2514
Related: #3272

Type of Change

  • Bug fix (non-breaking change that fixes an issue)

  • Documentation update
  • Component(s) Affected

  • Recipe engine / data (pkg/recipe)

  • Bundler and deployers (pkg/bundler, pkg/component)

  • Docs/examples (docs/, examples/)
  • Implementation Notes

  • New mixin recipes/mixins/os-amazonlinux.yaml (ID=amzn, VERSION_ID=2023, kernel >= 6.1), mutually exclusive with the other OS-scoped mixins.

  • New leaves: {h100,gb200,gb300,rtx-pro-6000}-eks-amazonlinux-inference. All four are unprofiled (no gpuStack profile): no EKS snapshot reading establishes which AMI a node runs or who owns the driver, so ADR-015's distinguishing-constraint rule cannot be met.

  • Each leaf carries plain preinstalled-driver overrides (NVIDIA AL2023 AMI family): gpu-operator driver/toolkit off, DRA nvidiaDriverRoot: /, NVSentinel labeler.assumeDriverInstalled: true and resetJob.hostDriverRootPath: /.

  • Each leaf disables nodewright-customizations (enabled: false): nvidia-setup is Debian/Ubuntu-only, and manifestFiles merge additively, so the inherited tuning manifest cannot be cleared.

  • K8s floors: gb200 >= 1.33 (AWS P6e-GB200 minimum), gb300 >= 1.34 (GA DRA), h100 and rtx-pro-6000 >= 1.32.4.

  • Regenerated goldens: pkg/bundler/testdata/stock_render_golden.yaml, pkg/recipe/testdata/catalog_parity_golden.yaml, pkg/recipe/testdata/coverage_golden.yaml (only the four new leaves and their amazonlinux projections are added).

  • New test TestAmazonLinuxLeavesDoNotRenderTuning (pkg/recipe/nodewright_tuning_gate_test.go) asserts no os=amazonlinux leaf keeps nodewright-customizations enabled.

  • Docs: os-amazonlinux added to the mixin inventory (docs/contributor/recipe.md), the OS-mixin guidance (docs/integrator/recipe-development.md) and the reset-job driver-root table (docs/user/component-catalog.md).
  • Not hardware-validated. None of these leaves has been deployed on a real AL2023 cluster. AMI-level prerequisites (NVreg flags on R580 GB200/GB300, GPU isolation for unprivileged pods, CDI specs) are unverified and tracked in #3272 .

    Testing

    go test ./pkg/recipe/ -run 'TestAmazonLinuxLeavesDoNotRenderTuning|TestNodewrightTuningGate|TestCatalogParityGolden|TestCoverageGoldenMatrix'
    go test ./pkg/bundler/ -run TestStockRenderParityGolden
    go test ./pkg/bundler/validations/ -run TestNVSentinelRemediationResetJobOnEveryLeaf
    go test ./pkg/client/v1/ -run TestResolveRecipeWithProfile
    

    Risk Assessment

  • Low — Additive recipe data; no existing leaf changes.
  • Rollout notes: N/A

    Checklist

  • I did not skip/disable tests to make CI green

  • I added/updated tests for new functionality

  • I updated docs if user-facing behavior changed
  • Diff: 408 lines (+306 / -102) across 5 files Reviewer: mohityadav8 Review duration: 46834m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 408 lines diff across 5 files
    0.45
    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.360
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #2743"
    general weight: 0.35
    Reviewers
    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: 44.8% (MEDIUM) · Higher = larger blast radius
    44.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: 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: 17.7% · Safe to merge
    17.7%
    Repository