← Back to Pull requests

api: scaffold new stable API version 2027-02-01 #7995

Open
unknown opened this pull request with 331 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 06, 2026 22:34 UTC
Author

Re-land of API scaffold PR

Original commits intact with the e2e skip fix on top

Summary

Adds the 2027-02-01 stable ARM API version as an identical copy of the current latest stable version 2026-10-01, with no feature changes. This establishes the new version entry point so new features can be added incrementally in follow-up PRs.

Base version: 2026-10-01 (package v20261001). This is a stable (GA) version — not a preview — so it follows the stable naming/aliasing convention (no -preview suffix, SDK alias hcpsdk20270201).

What changed

Commit 1 — api: scaffold new API version 2027-02-01

  • TypeSpec Versions enum: added v2027_02_01: "2027-02-01" (stable pattern).

  • Regenerated OpenAPI spec + examples under .../hcpopenshiftclusters/stable/2027-02-01/; spec-level readme.md / readme.go.md / readme.python.md tag blocks updated (newest first, default tag bumped).

  • New internal/azureapi/v20270201/ package copied from v20261001 (generated models + copied methods); register.go String() returns 2027-02-01.

  • internal/api/metadataapi/apiversions.go: added APIVersionV20270201 constant.

  • Frontend registration (blank import + RegisterVersion), integration test registry, and test SDK module (require + local replace) wired for the new version.

  • VersionCompliance fixtures copied from 2026-10-01 (identical), and defaults-consistency test cases extended for the new version.

  • Version-suffixed E2E framework helpers and SDK client wiring for 2027-02-01.

  • New cluster-create/health E2E test, gated on the deployment-deadline pattern used by the stable 2026-10-01 tests (IsAPINotDeployedError, deadline 2027-03-01T00:00:00Z) — not a preview registration timebomb.

  • make record-nonlocal-e2e fixtures updated.
  • Verification

    Passing in-workspace: make -C api lint-openapi (all versions incl. 2027-02-01), make -C api validate-examples, make -C api swagger (zero generated drift), make tidy && make fmt && make licenses (clean), full make lint (0 issues), and the touched test packages (internal/api/coreapi, internal/api/metadataapi, internal/azureapi/..., internal/database/cosmosstorage/cosmosstorageutils, test-integration/frontend), plus deepcopy/json-format/materialize/schema/E2E-policy checks.

    The full make verify and make test aggregates exceeded the local time budget and are expected to be validated by CI on this PR.

    Ticket

    No tracking ticket was provided for this scaffolding change; it is a mechanical version bootstrap with no behavioral changes.

    ---
    AI-generated. Review for accuracy.

    @twolff-gh requested from Slack

    Diff: 331 lines (+248 / -83) across 4 files Reviewer: cadenmarchese Review duration: 10698m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.42) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 331 lines diff across 4 files
    0.42
    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%
    46%
    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.347
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #7995"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.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: 42.1% (MEDIUM) · Higher = larger blast radius
    42.1%
    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: 46.7% · Lower = rushed or shallow review
    46.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: 22.4% · Safe to merge
    22.4%
    Repository