Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cosmos DB] Microsoft.DocumentDB New API Version 2024-05-15-preview #28368

Conversation

pjohari-ms
Copy link
Member

ARM (Control Plane) API Specification Update Pull Request

Tip

Overwhelmed by all this guidance? See the Getting help section at the bottom of this PR description.

Note

As of January 2024 there is no PR assignee. This is expected. See https://aka.ms/azsdk/pr-arm-review.

PR review workflow diagram

Please understand this diagram before proceeding. It explains how to get your PR approved & merged.

diagram

Click here to see the details of Step 1, Breaking Changes review

If you are in purview of Step 1 of the diagram, follow the Breaking Changes review process.
IMPORTANT! This applies even if you believe your PR was mislabeled, for any reason, including tool failure.

Click here to see the details of Step 2, ARM review

See https://aka.ms/azsdk/pr-arm-review.

Click here to see the diagram footnotes

Diagram footnotes

[1] See ARM review queue (for PR merge queues, see [2]).
[2] public repo merge queue, private repo merge queue (for ARM review queue, [1])
The ARM reviewer on-call engineer visits the merge queue twice a day, so the approximate ETA for merges is 12 - 24 hours.

Purpose of this PR

What's the purpose of this PR? Check the specific option that applies. This is mandatory!

  • New resource provider.
  • New API version for an existing resource provider. (If API spec is not defined in TypeSpec, the PR should have been generated using OpenAPI Hub).
  • Update existing version for a new feature. (This is applicable only when you are revising a private preview API version.)
  • Update existing version to fix OpenAPI spec quality issues in S360.
  • Other, please clarify:
    • edit this with your clarification

Due diligence checklist

To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:

  • I confirm this PR is modifying Azure Resource Manager (ARM) related specifications, and not data plane related specifications.
  • I have reviewed following Resource Provider guidelines, including
    ARM resource provider contract and
    REST guidelines (estimated time: 4 hours).
    I understand this is required before I can proceed to the diagram Step 2, "ARM API changes review", for this PR.

Additional information

Viewing API changes

For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.

Suppressing failures

If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
suppressions guide to get approval.

Getting help

  • First, please carefully read through this PR description, from top to bottom. Please fill out the Purpose of this PR and Due diligence checklist.
  • To understand what you must do next to merge this PR, see the Next Steps to Merge comment. It will appear within few minutes of submitting this PR and will continue to be up-to-date with current PR state.
  • For guidance on fixing this PR CI check failures, see the hyperlinks provided in given failure
    and https://aka.ms/ci-fix.
  • For help with PR workflow diagram Step 2 (ARM review), see https://aka.ms/azsdk/pr-arm-review.
  • If the PR CI checks appear to be stuck in queued state, please add a comment with contents /azp run.
    This should result in a new comment denoting a PR validation pipeline has started and the checks should be updated after few minutes.
  • If the help provided by the previous points is not enough, post to https://aka.ms/azsdk/support/specreview-channel and link to this PR.

@pjohari-ms pjohari-ms added the NotReadyForReview <valid label in PR review process>It is in draft for swagger or not swagger PR label Mar 21, 2024
Copy link

openapi-pipeline-app bot commented Mar 21, 2024

Next Steps to Merge

✅ All automated merging requirements have been met! To get your PR merged, see aka.ms/azsdk/specreview/merge.

Copy link

openapi-pipeline-app bot commented Mar 21, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️❌Breaking Change(Cross-Version): 30 Errors, 10 Warnings failed [Detail]
Compared specs (v0.10.8) new version base version
cosmos-db.json 2024-05-15-preview(4e2ec21) 2023-11-15(main)
cosmos-db.json 2024-05-15-preview(4e2ec21) 2024-02-15-preview(main)
dataTransferService.json 2024-05-15-preview(4e2ec21) 2024-02-15-preview(main)
managedCassandra.json 2024-05-15-preview(4e2ec21) 2023-11-15(main)
managedCassandra.json 2024-05-15-preview(4e2ec21) 2024-02-15-preview(main)
mongorbac.json 2024-05-15-preview(4e2ec21) 2023-11-15(main)
mongorbac.json 2024-05-15-preview(4e2ec21) 2024-02-15-preview(main)
notebook.json 2024-05-15-preview(4e2ec21) 2023-11-15(main)
notebook.json 2024-05-15-preview(4e2ec21) 2024-02-15-preview(main)
privateEndpointConnection.json 2024-05-15-preview(4e2ec21) 2023-11-15(main)
privateEndpointConnection.json 2024-05-15-preview(4e2ec21) 2024-02-15-preview(main)
privateLinkResources.json 2024-05-15-preview(4e2ec21) 2023-11-15(main)
privateLinkResources.json 2024-05-15-preview(4e2ec21) 2024-02-15-preview(main)
rbac.json 2024-05-15-preview(4e2ec21) 2023-11-15(main)
rbac.json 2024-05-15-preview(4e2ec21) 2024-02-15-preview(main)
restorable.json 2024-05-15-preview(4e2ec21) 2023-11-15(main)
restorable.json 2024-05-15-preview(4e2ec21) 2024-02-15-preview(main)
services.json 2024-05-15-preview(4e2ec21) 2023-11-15(main)
services.json 2024-05-15-preview(4e2ec21) 2024-02-15-preview(main)
throughputpool.json 2024-05-15-preview(4e2ec21) 2024-02-15-preview(main)

The following breaking changes are detected by comparison with the latest stable version:

Only 30 items are listed, please refer to log for more details.

Rule Message
1022 - RemovedAdditionalProperties The new version removes the 'additionalProperties' element.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L1542:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L1202:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v1/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v1/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v1/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v1/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: common-types/resource-management/v5/types.json#L14:9
Old: common-types/resource-management/v1/types.json#L14:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L49:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L49:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L85:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L85:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L121:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L121:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L159:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L159:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L197:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L197:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L250:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L250:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L305:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L305:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L586:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L356:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L625:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L395:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L666:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L436:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L707:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L477:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L763:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L533:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L821:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L591:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L861:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L628:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L897:9
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L664:9
1023 - TypeFormatChanged The new version has a different format 'uuid' than the previous one ''.
New: common-types/resource-management/v5/types.json#L632:5
Old: common-types/resource-management/v2/types.json#L649:5
1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
New: Microsoft.DocumentDB/preview/2024-05-15-preview/services.json#L322:7
Old: Microsoft.DocumentDB/stable/2023-11-15/services.json#L331:7
1030 - DifferentDiscriminator The new version has a different discriminator than the previous one.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/services.json#L312:9
Old: Microsoft.DocumentDB/stable/2023-11-15/services.json#L322:9
1030 - DifferentDiscriminator The new version has a different discriminator than the previous one.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/services.json#L318:5
Old: Microsoft.DocumentDB/stable/2023-11-15/services.json#L328:5
1033 - RemovedProperty The new version is missing a property found in the old version. Was 'readwrite' renamed or removed?
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L1537:7
Old: Microsoft.DocumentDB/stable/2023-11-15/managedCassandra.json#L1197:7
1033 - RemovedProperty The new version is missing a property found in the old version. Was 'code' renamed or removed?
New: common-types/resource-management/v5/types.json#L306:7
Old: Microsoft.DocumentDB/stable/2023-11-15/cosmos-db.json#L6008:7
1033 - RemovedProperty The new version is missing a property found in the old version. Was 'message' renamed or removed?
New: common-types/resource-management/v5/types.json#L306:7
Old: Microsoft.DocumentDB/stable/2023-11-15/cosmos-db.json#L6008:7
1034 - AddedRequiredProperty The new version has new required property 'serviceType' that was not found in the old version.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/services.json#L312:9
Old: Microsoft.DocumentDB/stable/2023-11-15/services.json#L322:9
1034 - AddedRequiredProperty The new version has new required property 'serviceType' that was not found in the old version.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/services.json#L318:5
Old: Microsoft.DocumentDB/stable/2023-11-15/services.json#L328:5


The following breaking changes are detected by comparison with the latest preview version:

Rule Message
⚠️ 1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/managedCassandra.json#L1273:13
Old: Microsoft.DocumentDB/preview/2024-02-15-preview/managedCassandra.json#L1273:13
⚠️ 1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
New: Microsoft.DocumentDB/preview/2024-05-15-preview/services.json#L322:7
Old: Microsoft.DocumentDB/preview/2024-02-15-preview/services.json#L321:7
⚠️ 1030 - DifferentDiscriminator The new version has a different discriminator than the previous one.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/services.json#L312:9
Old: Microsoft.DocumentDB/preview/2024-02-15-preview/services.json#L312:9
⚠️ 1030 - DifferentDiscriminator The new version has a different discriminator than the previous one.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/services.json#L318:5
Old: Microsoft.DocumentDB/preview/2024-02-15-preview/services.json#L318:5
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'code' renamed or removed?
New: common-types/resource-management/v5/types.json#L306:7
Old: Microsoft.DocumentDB/preview/2024-02-15-preview/cosmos-db.json#L7468:7
⚠️ 1033 - RemovedProperty The new version is missing a property found in the old version. Was 'message' renamed or removed?
New: common-types/resource-management/v5/types.json#L306:7
Old: Microsoft.DocumentDB/preview/2024-02-15-preview/cosmos-db.json#L7468:7
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'serviceType' that was not found in the old version.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/services.json#L312:9
Old: Microsoft.DocumentDB/preview/2024-02-15-preview/services.json#L312:9
⚠️ 1034 - AddedRequiredProperty The new version has new required property 'serviceType' that was not found in the old version.
New: Microsoft.DocumentDB/preview/2024-05-15-preview/services.json#L318:5
Old: Microsoft.DocumentDB/preview/2024-02-15-preview/services.json#L318:5
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️🔄LintDiff inProgress [Detail]
️❌Avocado: 7 Errors, 0 Warnings failed [Detail]
Rule Message
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/providers/Microsoft.DocumentDB/mongoClusters is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{} is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{}/firewallRules/{} is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{}/firewallRules is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/providers/Microsoft.DocumentDB/locations/{}/checkMongoClusterNameAvailability is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{}/listConnectionStrings is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Mar 21, 2024

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
️⚠️ azure-sdk-for-python warning [Detail]
  • ⚠️Warning in generating from 28b00f30a5b86aaadabb18cb7273d582bffb67f6. SDK Automation 14.0.0
    command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
    cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
    cmderr	[automation_init.sh]
    cmderr	[automation_init.sh] npm notice New minor version of npm available! 10.5.0 -> 10.7.0
    cmderr	[automation_init.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.7.0>
    cmderr	[automation_init.sh] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[automation_init.sh] npm notice
    command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
  • ️✔️azure-mgmt-cosmosdb [Preview SDK Changes]
    • azure_mgmt_cosmosdb-0.7.0-py3-none-any.whl
    • azure-mgmt-cosmosdb-0.7.0.zip
️️✔️ azure-sdk-for-net-track2 succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from 28b00f30a5b86aaadabb18cb7273d582bffb67f6. SDK Automation 14.0.0
    command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
    command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
  • ️✔️Azure.ResourceManager.CosmosDB [Preview SDK Changes] Breaking Change Detected
    • Azure.ResourceManager.CosmosDB.1.4.0-alpha.20240513.1.nupkg
    info	[Changelog] Breaking Changes: /home/cloudtest/.nuget/packages/microsoft.dotnet.apicompat/5.0.0-beta.20467.1/build/Microsoft.DotNet.ApiCompat.targets(82,5): error : TypesMustExist : Type 'Azure.ResourceManager.CosmosDB.Models.CosmosDBServiceType' does not exist in the implementation but it does exist in the contract. [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Azure.ResourceManager.CosmosDB.csproj::TargetFramework=netstandard2.0],
    info	[Changelog] /home/cloudtest/.nuget/packages/microsoft.dotnet.apicompat/5.0.0-beta.20467.1/build/Microsoft.DotNet.ApiCompat.targets(96,5): error : ApiCompat failed for '/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/bin/Azure.ResourceManager.CosmosDB/Debug/netstandard2.0/Azure.ResourceManager.CosmosDB.dll' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Azure.ResourceManager.CosmosDB.csproj::TargetFramework=netstandard2.0]
    Parse Suppression File Errors
    No suppression file added.
    Please refer to https://aka.ms/azsdk/sdk-suppression for more information.
️️✔️ azure-sdk-for-java succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from 28b00f30a5b86aaadabb18cb7273d582bffb67f6. SDK Automation 14.0.0
    command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
  • ️✔️azure-resourcemanager-cosmos-generated [Preview SDK Changes]
    • pom.xml
    • azure-resourcemanager-cosmos-generated-1.0.0-beta.1-sources.jar
    • azure-resourcemanager-cosmos-generated-1.0.0-beta.1.jar
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from 28b00f30a5b86aaadabb18cb7273d582bffb67f6. SDK Automation 14.0.0
    command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
    command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
  • ️✔️sdk/resourcemanager/cosmos/armcosmos [Preview SDK Changes]
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from 28b00f30a5b86aaadabb18cb7273d582bffb67f6. SDK Automation 14.0.0
    command	sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json
    warn	File azure-sdk-for-js_tmp/initOutput.json not found to read
    command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
  • ️✔️@azure/arm-cosmosdb [Preview SDK Changes]
    • azure-arm-cosmosdb-16.0.0-beta.8.tgz
️❌ azure-resource-manager-schemas failed [Detail]
  • Code Generator Failed in generating from 28b00f30a5b86aaadabb18cb7273d582bffb67f6. Schema Automation 14.0.0
    command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
    cmderr	[initScript.sh] Submodule 'bicep-types-az' (https://github.com/Azure/bicep-types-az) registered for path 'bicep-types-az'
    cmderr	[initScript.sh] Cloning into '/mnt/vss/_work/1/s/azure-resource-manager-schemas/bicep-types-az'...
    cmderr	[initScript.sh] Submodule 'bicep-types' (https://github.com/Azure/bicep-types) registered for path 'bicep-types-az/bicep-types'
    cmderr	[initScript.sh] Cloning into '/mnt/vss/_work/1/s/azure-resource-manager-schemas/bicep-types-az/bicep-types'...
    cmderr	[initScript.sh]  notice
    cmderr	[initScript.sh] npm notice New minor version of npm available! 10.5.0 -> 10.7.0
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.7.0>
    cmderr	[initScript.sh] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[initScript.sh] npm notice
    error	Script return with result [failed] code [1] signal [null] cwd [azure-resource-manager-schemas]: .sdkauto/initScript.sh
    warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
    command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
    cmderr	[generateScript.sh] /mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:500
    cmderr	[generateScript.sh]     return new TSError(diagnosticText, diagnosticCodes)
    cmderr	[generateScript.sh]            ^
    cmderr	[generateScript.sh] TSError: ⨯ Unable to compile TypeScript:
    cmderr	[generateScript.sh] cmd/generateall.ts(6,20): error TS2307: Cannot find module 'colors' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(10,19): error TS2307: Cannot find module 'yargs' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(11,18): error TS2307: Cannot find module 'path' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(13,35): error TS2307: Cannot find module 'fs' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(14,23): error TS2307: Cannot find module 'strip-ansi' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(42,9): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(53,9): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(69,67): error TS7006: Parameter 'x' implicitly has an 'any' type.
    cmderr	[generateScript.sh] cmd/generateall.ts(70,49): error TS7006: Parameter 'f' implicitly has an 'any' type.
    cmderr	[generateScript.sh] cmd/generateall.ts(94,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(105,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(106,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(157,13): error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
    cmderr	[generateScript.sh]     at createTSError (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:500:12)
    cmderr	[generateScript.sh]     at reportTSError (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:504:19)
    cmderr	[generateScript.sh]     at getOutput (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:739:36)
    cmderr	[generateScript.sh]     at Object.compile (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:955:32)
    cmderr	[generateScript.sh]     at Module.m._compile (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:1043:43)
    cmderr	[generateScript.sh]     at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    cmderr	[generateScript.sh]     at Object.require.extensions.<computed> [as .ts] (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:1046:12)
    cmderr	[generateScript.sh]     at Module.load (node:internal/modules/cjs/loader:1203:32)
    cmderr	[generateScript.sh]     at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
    cmderr	[generateScript.sh]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
    error	Script return with result [failed] code [1] signal [null] cwd [azure-resource-manager-schemas]: .sdkauto/generateScript.sh
    warn	Skip package processing as generation is failed
    error	ERROR: The 'breakingChangesLabel' configuration is missing or incorrect from the 'swagger_to_sdk_config.json file.
️⚠️ azure-powershell warning [Detail]
  • ⚠️Warning in generating from 28b00f30a5b86aaadabb18cb7273d582bffb67f6. SDK Automation 14.0.0
    command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
    command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
  • ⚠️Az.cosmos-db.DefaultTag [Preview SDK Changes]
Posted by Swagger Pipeline | How to fix these errors?

@AzureRestAPISpecReview AzureRestAPISpecReview added ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review ARMReview BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required new-api-version resource-manager labels Mar 21, 2024
Copy link

Please address or respond to feedback from the ARM API reviewer.
When you are ready to continue the ARM API review, please remove the ARMChangesRequested label.
This will notify the reviewer to have another look.
If the feedback provided needs further discussion, please use this Teams channel to post your questions - aka.ms/azsdk/support/specreview-channel.
Please include [ARM Query] in the title of your question to indicate that it is ARM-related.

@microsoft-github-policy-service microsoft-github-policy-service bot added no-recent-activity There has been no recent activity on this issue. and removed no-recent-activity There has been no recent activity on this issue. labels Apr 15, 2024
* swagger changes for capacityMode changes

* Ran the npx Prettier command

* fixing swagger lint

* fixing camelcase issue
vandit15 and others added 2 commits April 15, 2024 16:02
* NSP RP API changes

* small change

* validation failures handling

* linter errors

* types version

* still failing

* Probably all the fixes

* Missed one file

* Will revert this commit - temp fix for hanging push

* Reverted commit

---------

Co-authored-by: pjohari-ms <[email protected]>
Copy link
Contributor

@chandugunturi chandugunturi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the responses need to change api version.

@TimLovellSmith
Copy link
Member

TimLovellSmith commented May 2, 2024

@vandit15 @pjohari-ms I'm working on adding NetworkSecurityPerimeters to common types, as something like this is clearly urgently needed!
Please help me review my PR. #28958

@TimLovellSmith TimLovellSmith added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review labels May 3, 2024
@TimLovellSmith
Copy link
Member

TimLovellSmith commented May 3, 2024

I have a lingering worry that some of the avocado errors might matter (e.g. missing a link to an example could stop it showing in docs, or perhaps impact model validation), have you looked into fixing them?

Unfortunately some tools struggle to understand circular references, you can try normalizing them to a noncircular structure by moving definitions between jsons -- or by refactoring using common-types version of privatelinks.json if its sufficiently compatible. (Did we already reject that option? Too many PRs to remember them all properly, sorry!)

❌ UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/cosmos-db/resource-manager/readme.md
json: preview/2024-05-15-preview/examples/CosmosDBManagedCassandraCommandResultList.json
❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/providers/Microsoft.DocumentDB/mongoClusters is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{} is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{}/firewallRules/{} is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{}/firewallRules is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/providers/Microsoft.DocumentDB/locations/{}/checkMongoClusterNameAvailability is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{}/listConnectionStrings is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json
⚠️ CIRCULAR_REFERENCE The JSON file has a circular reference.
readme: specification/cosmos-db/resource-manager/readme.md
json: Microsoft.DocumentDB/preview/2024-05-15-preview/privateEndpointConnection.json

@konrad-jamrozik konrad-jamrozik added ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review and removed NotReadyForARMReview labels May 4, 2024
Copy link
Member

@TimLovellSmith TimLovellSmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using github to add a TODO here -
Independent of ARM API review and manifest rollout:
Please let us update this PR to use the common types definition for networkSecurityPerimeter.json here #28958 (PR will be merged asap)
before actually merging.

* Review comments - Cassandra and circular reference

* Nits - Services.json

* Porting from stable brranch

* Nits

* Moved files
@pjohari-ms pjohari-ms removed the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label May 8, 2024
@openapi-workflow-bot openapi-workflow-bot bot added the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label May 8, 2024
@pjohari-ms
Copy link
Member Author

Using github to add a TODO here - Independent of ARM API review and manifest rollout: Please let us update this PR to use the common types definition for networkSecurityPerimeter.json here #28958 (PR will be merged asap) before actually merging.

ACK. Will wait for the PR to be edited by the maintainers before merging.

@pjohari-ms
Copy link
Member Author

I have a lingering worry that some of the avocado errors might matter (e.g. missing a link to an example could stop it showing in docs, or perhaps impact model validation), have you looked into fixing them?

Unfortunately some tools struggle to understand circular references, you can try normalizing them to a noncircular structure by moving definitions between jsons -- or by refactoring using common-types version of privatelinks.json if its sufficiently compatible. (Did we already reject that option? Too many PRs to remember them all properly, sorry!)

❌ UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file. readme: specification/cosmos-db/resource-manager/readme.md json: preview/2024-05-15-preview/examples/CosmosDBManagedCassandraCommandResultList.json ❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/providers/Microsoft.DocumentDB/mongoClusters is not in the default tag. Please make sure the missing API swaggers are in the default tag. readme: specification/cosmos-db/resource-manager/readme.md json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json ❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters is not in the default tag. Please make sure the missing API swaggers are in the default tag. readme: specification/cosmos-db/resource-manager/readme.md json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json ❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{} is not in the default tag. Please make sure the missing API swaggers are in the default tag. readme: specification/cosmos-db/resource-manager/readme.md json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json ❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{}/firewallRules/{} is not in the default tag. Please make sure the missing API swaggers are in the default tag. readme: specification/cosmos-db/resource-manager/readme.md json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json ❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{}/firewallRules is not in the default tag. Please make sure the missing API swaggers are in the default tag. readme: specification/cosmos-db/resource-manager/readme.md json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json ❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/providers/Microsoft.DocumentDB/locations/{}/checkMongoClusterNameAvailability is not in the default tag. Please make sure the missing API swaggers are in the default tag. readme: specification/cosmos-db/resource-manager/readme.md json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json ❌ MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.DocumentDB/mongoClusters/{}/listConnectionStrings is not in the default tag. Please make sure the missing API swaggers are in the default tag. readme: specification/cosmos-db/resource-manager/readme.md json: Microsoft.DocumentDB/preview/2024-02-15-preview/mongoCluster.json ⚠️ CIRCULAR_REFERENCE The JSON file has a circular reference. readme: specification/cosmos-db/resource-manager/readme.md json: Microsoft.DocumentDB/preview/2024-05-15-preview/privateEndpointConnection.json

These are fixed. MISSING_APIS ones are expected.

@madhura-np
Copy link
Member

madhura-np commented May 9, 2024

All comments other than the incorrect api-version in examples are addressed.
Signing off as its not blocking, please merge after the commit for NSP updates by Api Reviewer team is made.
Placed a DoNotMerge label that can be removed once ready.

@madhura-np madhura-np added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review DoNotMerge <valid label in PR review process> use to hold merge after approval and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels May 9, 2024
@pjohari-ms
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@konrad-jamrozik
Copy link

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@konrad-jamrozik konrad-jamrozik removed the DoNotMerge <valid label in PR review process> use to hold merge after approval label May 13, 2024
@mentat9
Copy link
Member

mentat9 commented May 14, 2024

Merge without branch refresh should be OK per comment in API Spec Review team here: https://teams.microsoft.com/l/message/19:[email protected]/1715629299216?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=3e17dcb0-4257-4a30-b843-77f47f1d4121&parentMessageId=1715624451175&teamName=Azure%20SDK&channelName=API%20Spec%20Review&createdTime=1715629299216.

However, merge is currently blocked by @TimLovellSmith pending review comments. Tim, please approve or comment.

@pjohari-ms
Copy link
Member Author

@TimLovellSmith Can this be merged? The PR merge is being delayed and we have to work for achieving BUILD timelines.

@TimLovellSmith
Copy link
Member

@pjohari-ms update, hopefully this is unblocked for refactor real soon. The adding NSP common-types PR should be merge-ready now, it should just need the checks to come back alive and tell us if its all clear to merge.

@TimLovellSmith
Copy link
Member

TimLovellSmith commented May 15, 2024

@pjohari-ms finally NSP common types is merged: #28958 - please can you update your PRs with NSPs to use common types or let me know any remaining blocker.

@pjohari-ms
Copy link
Member Author

Created a new PR to handle the ongoing issues in this one - #29192
Since that one is merged, will close this PR.

@pjohari-ms pjohari-ms closed this May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review BreakingChange-Approved-UserImpact Changes are not backward compatible and may cause customer disruption. BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required new-api-version resource-manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.