Skip to content

azure lexicon: bump the ARM schema pin (2026-07-27, 129 commits behind) and schedule the next #5454

Closed

Description

@lex00

Bump the azure lexicon's ARM schema pin. It is four months old.

What exists, checked at chant 3bf0df0

  • lexicons/azure/src/spec/fetch.ts pins AZURE_SCHEMA_COMMIT = "0085cb6f…", an Azure/azure-resource-manager-schemas commit from 2026-07-27, set in fix(azure): pin the resource-manager-schemas source — codegen stops drifting with upstream main (#1144) #1145.
  • Upstream main is at d15606ff… (2026-11-15), 129 commits ahead, with five "Update Generated Schemas" batches.
  • Upstream also retired its AutoRest generator in that range (Completely retire Autorest generation process Azure/azure-resource-manager-schemas#3899, "Completely retire Autorest generation process"), and later commits handle read-only providers and normalise slashes in definition names. The schema files may differ in shape as well as in content, so parse.ts needs checking against the new output, not only a regenerate.
  • The comment on the pin says bumps are done by hand until a scheduled upgrade proposes them. chant lexicon rolling-upgrade (packages/core/src/codegen/rolling-upgrade.ts) detects azure drift and reports a per-provider API-version delta. .github/workflows/lexicon-upgrade.yml runs azure-upgrade weekly, and the job succeeds, but on 2026-11-16 it reported HasUpgrade: false while upstream was 129 commits ahead. The likely cause is that the regenerate reads the tarball at AZURE_SCHEMA_COMMIT, so it compares the pin with itself; confirm that first. The same run's k8s, gitlab, cedar, gcp and docker jobs failed, which is outside this issue. The comment at fetch.ts:102-104 is out of date. aws has a pin with a content digest (lexicons/aws/src/spec/pin.ts); azure does not.

What to do

  1. Run chant lexicon rolling-upgrade for azure against the current main sha and post its API-version delta here.
  2. Bump the pin, regenerate, and fix any composite that names a renamed or removed export (PROVIDER_VERSION_OVERRIDES where a resource dropped out of the latest-by-date pick).
  3. Check parse.ts against the post-AutoRest schema shape; add a fixture from the new output.
  4. Confirm the types the CCCS and FedRAMP work (Research: FedRAMP Moderate and CCCS Medium profiles and an evidence export #5447) and the Azure DevOps lines (ci generators: Azure DevOps Pipelines #5350, azure-devops-warden: govern an Azure DevOps organization (deferred to the end of #5452) #5453) lean on are current: Microsoft.DevOps/*, Microsoft.Security/securityConnectors/devops, Key Vault, Policy and role assignments.
  5. Make the weekly azure-upgrade compare the pin with upstream main and open the bump as a pull request, so the next bump is not another four-month gap; give azure a content digest as aws has, and update the comment at fetch.ts:102-104.

Done when

  • The pin names a commit from this month, the lexicon regenerates cleanly and just check passes.
  • The surface snapshot diff is reviewed and the API-version delta is in the pull request.
  • A test runs the upgrade's comparison against a fake upstream ahead of the pin and gets HasUpgrade: true. A person checks the first weekly run after merge.

Activity

  1. added
    epic:ci-hardening
    on Nov 21, 2026
  2. lex00 commented on Nov 22, 2026

    @lex00
    ContributorAuthor

    Checked against the code. The weekly job reported HasUpgrade false because azure was classed as a rolling lexicon: it regenerated from the pinned tarball and compared that with its own committed snapshot. Fix on the ci-hardening branch: the azure plugin now declares an upstreamPin with a new kind: "commits" (head of main), azure leaves the rolling set, and the pinned path opens the bump pull request. A content digest like aws's is not added: a commit sha already addresses the tree by content, and aws needs a digest only because its archive has no version in its path. The bump to d15606ff dropped 409 resources from the newest-file-per-provider pick (upstream retired the per-service files such as Microsoft.Network.NRP and now publishes delta files), so 28 providers got PROVIDER_VERSION_OVERRIDES entries; 17 resources remain removed because upstream removed or renamed them (Kusto clusters_dataConnections, Sovereign landing zones, DBforMySQL to DBForMySql, ...). Surface: 5492 added, 1813 removed (mostly property-type renames), 41 renamed, 467 changed.

  3. lex00 commented on Nov 22, 2026

    @lex00
    ContributorAuthor

    Three follow-ups on the ci-hardening branch.

    The pin bump left four Service Fabric kinds that clash on Resource Graph's lowercase type: the 2026-05-01-preview file spells the parent managedClusters and the 2023-11-01-preview file spells it managedclusters, and the merge of dated files compared type names case-sensitively. The merge now compares them lowercased, so the first file in pin order keeps its spelling. That removes 4 resources and 47 property types, all duplicates.

    Item 4 was not checked against the regenerated surface. Microsoft.DevOps/pipelines, Key Vault, policy assignments, definitions and exemptions, and role assignments and definitions are present. Microsoft.Security/securityConnectors and securityConnectors/devops were missing, before and after the bump, because only older dated files define them. The Microsoft.Security pin now also reads 2026-08-01-preview (securityConnectors, which has no GA date) and 2025-03-01 (devops and its azureDevOpsOrgs, projects and repos children). The bare property names AzureDevOpsOrgProperties and AzureDevOpsProjectProperties become ambiguous with Microsoft.SecurityDevOps and are dropped; the provider-qualified names remain, and nothing in the repo used the bare ones.

    The hand bump of the azure package to 0.125.0 is undone. The release train labels each changed member past every version it already has and takes the level from conventional commits, so a version edited in package.json only pushes azure ahead of the train. The surface snapshot does not record a version, so only package.json and the lock entry changed. The comment in fetch.ts still suggests --bump on a hand bump; that flag predates the train and is worth removing in a later change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic:ci-hardening

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions