Skip to content

HDInsight test recordings need re-recording (stale Storage Management API version) #57632

@m-redding

Description

@m-redding

Problem

HDInsight recorded tests fail with TestRecordingMismatchException in the full-repo PR CI pipeline.

Error: .properties: Missing in record JSON - the Storage account PUT request body now includes "properties": {} but the recordings don't have it. Additionally, the recorded api-version (2022-09-01) does not match the current Storage Management SDK version (2025-08-01).

Failing tests: HDInsight cluster creation tests (linux net9.0, multiple CI partitions: ib11, ib13, ib15, ib16)
Build: net - pullrequest #20260331 (Build ID 6083541)

Root Cause

This is the same pattern as #57594 (Synapse) and #57316 (HealthcareApis):

  • HDInsight test recordings use Azure Storage Management API to provision storage accounts as test setup infrastructure (HDInsightManagementTestBase.CreateStorageResources())
  • The Storage Management SDK has been updated to use api-version=2025-08-01 (up from 2022-09-01) as part of the TypeSpec migration (PR [Mgmt] Migrate Azure.ResourceManager.Storage from Swagger/AutoRest to TypeSpec #56896)
  • The newer API version serializes .properties unconditionally (WriteCore serialization change)
  • With UseProjectReferenceToAzureClients=true, the tests pick up the newer Storage client source instead of the NuGet package, causing the mismatch
  • This surfaces when HDInsight tests land in the same CI batch as the PR being tested

Impact

Affects any PR that randomly gets HDInsight in its UseProjectReferenceToAzureClients=true integration batch. Currently observed in PR #57600.

Fix Required

Re-record HDInsight tests to capture the updated Storage Management API version and serialization format. The CreateStorageResources() helper in HDInsightManagementTestBase.cs creates storage accounts that are now hitting api-version=2025-08-01 instead of the recorded 2022-09-01.

See #57594 and #57316 for the analogous Synapse and HealthcareApis fix patterns.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HDInsightMgmtThis issue is related to a management package.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions