← Back to Pull requests

fix(fleet): use tier disk size as a minimum #7675

Closed
unknown closed this pull request without merging on Oct 22, 2026 09:24 UTC
View on GitHub
unknown unknown commented on Oct 21, 2026 21:50 UTC
Author

What

Treat TierConfig.MinOSDiskSizeGB as the minimum ephemeral OS disk capacity for SKU filtering. Regional and per-zone desired pools use the selected SKU's full EphemeralDiskSizeGB for their actual disk size. Pool identity hashes that resolved size instead of the tier minimum.

Reject capacities that cannot be represented by the pool/ARM int32 field before conversion.

Why

Using the tier requirement as the requested disk size leaves supported ephemeral capacity unused. This separates SKU eligibility from actual sizing while retaining minimum-based family fallback. Changing only the minimum does not replace a pool when its selected VM and resolved size remain unchanged; changing the actual disk size changes pool identity.

Testing

  • Full fleet suite: cd fleet && go test ./... — passed.

  • make -C fleet build — passed.

  • make lint MODULES=./fleet/... — passed with zero issues.

  • Repository-pinned formatting and working-tree/base-to-HEAD whitespace checks — passed.

  • Regression tests cover minimum boundaries, both allocation modes, fallback capacities, integer bounds, identity stability, replacement simulation, observed disk preservation, and ARM payload sizing.

  • Regenerated 45 golden fixtures through repository test helpers, then verified without regeneration.

  • External-service integration suites and live Azure E2E were not run. Local controller simulation and read-only reconciliation tests are included in the fleet suite.
  • Special notes for your reviewer

    The controller remains shadow-only. Larger resolved disks change desired pool names and imply replacement in the projection, subject to existing quota and capacity protections.

    Existing SKU capacity interpretation is preserved: positive NVMe capacity takes precedence over cache capacity, followed by resource-disk capacity only when ResourceDisk placement is supported. This does not combine device capacities or introduce new Azure service limits.

    Static AKS creation, customer nodepool APIs, and live controller mutation behavior are unchanged. No tracking issue was supplied. UI and new-E2E checklist items are not applicable.

    PR Checklist

  • PR is scoped to a single task (no mixed concerns)

  • Title follows Conventional Commits format

  • Summary explains the "Why" behind the change

  • Linked to relevant ticket/issue

  • Screenshots included (if dashboards or other UI changes)

  • Self-reviewed the diff

  • CI/CD checks are passing (ignore Tide)

  • Draft PR used for WIP (if applicable)

  • Commit history is clean (rebased/squashed)

  • Tricky code blocks are commented

  • Specific reviewers tagged

  • All comment threads resolved before merge
  • If E2E tests are included:

  • E2E tests follow Principles of Good E2E Test Case Design

  • If new E2E use case is covered (via a new test or new check/verifier),

  • demonstrate that the test is able to detect a defect/error and fail with
    proper error message and logs which communicates nature of the problem.

    ---
    AI-generated. Review for accuracy.

    @geoberle requested from Slack

    Diff: 394 lines (+295 / -99) across 4 files Reviewer: geoberle Review duration: 694m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 394 lines diff across 4 files
    0.43
    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.358
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #7675"
    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: 43.2% (MEDIUM) · Higher = larger blast radius
    43.2%
    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.1% · Safe to merge
    17.1%
    Repository