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

EventHub 2024-05-01-preview #28450

Merged
merged 28 commits into from
Apr 12, 2024

Conversation

schaudhari6254888
Copy link
Contributor

@schaudhari6254888 schaudhari6254888 commented Mar 26, 2024

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.

Copy link

openapi-pipeline-app bot commented Mar 26, 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 26, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
Compared specs (v0.10.7) new version base version
ApplicationGroups.json 2024-05-01-preview(1954910) 2024-01-01(main)
ApplicationGroups.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
AuthorizationRules.json 2024-05-01-preview(1954910) 2024-01-01(main)
AuthorizationRules.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
AvailableClusterRegions-preview.json 2024-05-01-preview(1954910) 2021-11-01(main)
AvailableClusterRegions-preview.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
CheckNameAvailability.json 2024-05-01-preview(1954910) 2024-01-01(main)
CheckNameAvailability.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
Clusters-preview.json 2024-05-01-preview(1954910) 2021-11-01(main)
Clusters-preview.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
SchemaRegistry.json 2024-05-01-preview(1954910) 2024-01-01(main)
SchemaRegistry.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
consumergroups.json 2024-05-01-preview(1954910) 2024-01-01(main)
consumergroups.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
disasterRecoveryConfigs.json 2024-05-01-preview(1954910) 2024-01-01(main)
disasterRecoveryConfigs.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
eventhubs.json 2024-05-01-preview(1954910) 2024-01-01(main)
eventhubs.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
namespaces.json 2024-05-01-preview(1954910) 2024-01-01(main)
networkrulessets-preview.json 2024-05-01-preview(1954910) 2021-11-01(main)
networkrulessets-preview.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
operations.json 2024-05-01-preview(1954910) 2024-01-01(main)
operations.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
quotaConfiguration-preview.json 2024-05-01-preview(1954910) 2021-11-01(main)
quotaConfiguration-preview.json 2024-05-01-preview(1954910) 2023-01-01-preview(main)
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 33 Warnings warning [Detail]
Compared specs (v2.2.0) new version base version
package-2024-05-preview package-2024-05-preview(1954910) default(main)

[must fix]The following errors/warnings are introduced by current PR:

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

Rule Message Related RPC [For API reviewers]
⚠️ PageableOperation Based on the response model schema, operation 'Clusters_ListAvailableClusterRegion' might be pageable. Consider adding the x-ms-pageable extension.
Location: Microsoft.EventHub/preview/2024-05-01-preview/AvailableClusterRegions-preview.json#L38
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/AvailableClusterRegions-preview.json#L49
⚠️ XmsIdentifierValidation Missing identifier id in array item property
Location: Microsoft.EventHub/preview/2024-05-01-preview/AvailableClusterRegions-preview.json#L78
⚠️ LocationMustHaveXmsMutability Property location must have 'x-ms-mutability':['read', 'create'] extension defined.
Location: Microsoft.EventHub/preview/2024-05-01-preview/AvailableClusterRegions-preview.json#L91
RPC-Put-V1-14
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/Clusters-preview.json#L49
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/Clusters-preview.json#L88
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/Clusters-preview.json#L130
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/Clusters-preview.json#L170
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/Clusters-preview.json#L232
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/Clusters-preview.json#L291
⚠️ PageableOperation Based on the response model schema, operation 'Clusters_ListNamespaces' might be pageable. Consider adding the x-ms-pageable extension.
Location: Microsoft.EventHub/preview/2024-05-01-preview/Clusters-preview.json#L326
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/Clusters-preview.json#L331
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: Microsoft.EventHub/preview/2024-05-01-preview/Clusters-preview.json#L424
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L345
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L385
⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L989
⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L998
⚠️ ReservedResourceNamesModelAsEnum The service-defined (reserved name) resource 'default' should be represented as a path parameter enum with modelAsString set to true.
Location: Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json#L37
RPC-ConstrainedCollections-V1-04
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json#L49
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json#L98
⚠️ MissingSegmentsInNestedResourceListOperation A nested resource type's List operation must include all the parent segments in its api path.
Location: Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json#L128
RPC-Get-V1-11
⚠️ PageableOperation Based on the response model schema, operation 'Namespaces_ListNetworkRuleSet' might be pageable. Consider adding the x-ms-pageable extension.
Location: Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json#L129
⚠️ ParameterNotDefinedInGlobalParameters Parameter 'api-version' is referenced but not defined in the global parameters section of Service Definition
Location: Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json#L140
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json#L209
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json#L222
⚠️ XmsIdentifierValidation Missing identifier id in array item property
Location: Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json#L238
⚠️ XmsIdentifierValidation Missing identifier id in array item property
Location: Microsoft.EventHub/preview/2024-05-01-preview/networkrulessets-preview.json#L245
⚠️ MissingSegmentsInNestedResourceListOperation A nested resource type's List operation must include all the parent segments in its api path.
Location: Microsoft.EventHub/preview/2024-05-01-preview/quotaConfiguration-preview.json#L37
RPC-Get-V1-11
⚠️ RequiredReadOnlySystemData The response of operation:'Configuration_Patch' is defined without 'systemData'. Consider adding the systemData to the response.
Location: Microsoft.EventHub/preview/2024-05-01-preview/quotaConfiguration-preview.json#L38
⚠️ PatchInOperationName 'PATCH' operation 'Configuration_Patch' should use method name 'Update'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.EventHub/preview/2024-05-01-preview/quotaConfiguration-preview.json#L42


The following errors/warnings exist before current PR submission:

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

Rule Message
TrackedResourcePatchOperation Tracked resource 'Eventhub' must have patch operation that at least supports the update of tags.
Location: Microsoft.EventHub/preview/2024-05-01-preview/eventhubs.json#L309
SystemDataDefinitionsCommonTypes System data references must utilize common types.
Location: Microsoft.EventHub/preview/2024-05-01-preview/eventhubs.json#L400
GuidUsage Usage of Guid is not recommended. If GUIDs are absolutely required in your service, please get sign off from the Azure API review board.
Location: Microsoft.EventHub/preview/2024-05-01-preview/eventhubs.json#L474
PutResponseCodes Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L119
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L172
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L178
DeleteResponseCodes Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L187
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L216
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L225
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L274
PatchResponseCodes Synchronous PATCH operations must have responses with 200 and default return codes. They also must not have other response codes.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L274
PatchBodyParametersSchema Properties of a PATCH request body must not have default value, property:publicNetworkAccess.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L296
PatchBodyParametersSchema Properties of a PATCH request body must not have default value, property:keySource.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L296
PatchBodyParametersSchema Properties of a PATCH request body must not be required, property:name.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L296
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L321
LroExtension Operations with a 202 response must specify x-ms-long-running-operation: true. GET operation is excluded from the validation as GET will have 202 only if it is a polling action & hence x-ms-long-running-operation wouldn't be defined
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L444
PutResponseCodes Synchronous and long-running PUT operations must have responses with 200, 201 and default return codes. They also must not have other response codes.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L444
RequestSchemaForTrackedResourcesMustHaveTags A tracked resource MUST always have tags as a top level optional property. Tracked resource does not have tags in the request schema.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L444
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L487
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L493
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L497
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L499
DeleteResponseCodes Long-running delete operations must have responses with 202, 204 and default return codes. They also must have no other response codes.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L511
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L546
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L555
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L598
XmsPageableForListCalls x-ms-pageable extension must be specified for LIST APIs.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L612
XmsPageableForListCalls x-ms-pageable extension must be specified for LIST APIs.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L657
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L685
ResourceNameRestriction The resource name parameter 'resourceAssociationName' should be defined with a 'pattern' restriction.
Location: Microsoft.EventHub/preview/2024-05-01-preview/namespaces.json#L698
️❌Avocado: 5 Errors, 0 Warnings failed [Detail]
Rule Message
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/ipfilterrules is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/eventhub/resource-manager/readme.md
json: Microsoft.EventHub/preview/2018-01-01-preview/ipfilterrules-preview.json
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/ipfilterrules/{} is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/eventhub/resource-manager/readme.md
json: Microsoft.EventHub/preview/2018-01-01-preview/ipfilterrules-preview.json
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/providers/Microsoft.EventHub/sku/{}/regions is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/eventhub/resource-manager/readme.md
json: Microsoft.EventHub/preview/2018-01-01-preview/sku.json
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/virtualnetworkrules is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/eventhub/resource-manager/readme.md
json: Microsoft.EventHub/preview/2018-01-01-preview/virtualnetworkrules-preview.json
MISSING_APIS_IN_DEFAULT_TAG The default tag should contain all APIs. The API path /subscriptions/{}/resourceGroups/{}/providers/Microsoft.EventHub/namespaces/{}/virtualnetworkrules/{} is not in the default tag. Please make sure the missing API swaggers are in the default tag.
readme: specification/eventhub/resource-manager/readme.md
json: Microsoft.EventHub/preview/2018-01-01-preview/virtualnetworkrules-preview.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 26, 2024

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
️❌ azure-sdk-for-net-track2 failed [Detail]
  • Pipeline Framework Failed in generating from 4f3da4120e56c0d0e954cf6c471f956bf715d635. 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
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:714�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1mLine |�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1m�[36;1m 714 | �[0m         �[36;1mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m�[31;1m�[31;1m�[36;1m     | �[31;1mFailed to generate sdk. exit code: False�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGet-ChildItem: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:807�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1mLine |�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1m�[36;1m 807 | �[0m … rtifacts += �[36;1mGet-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s�[0m …�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m�[31;1m�[31;1m�[36;1m     | �[31;1mCannot find path�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m�[31;1m�[31;1m�[36;1m�[31;1m�[36;1m     | �[31;1m'/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m�[31;1m�[31;1m�[36;1m�[31;1m�[36;1m�[31;1m�[36;1m     | �[31;1mit does not exist.�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:714�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1mLine |�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1m�[36;1m 714 | �[0m         �[36;1mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m�[31;1m�[31;1m�[36;1m     | �[31;1mFailed to generate sdk artifact�[0m
    To https://github.com/azure-sdk/azure-sdk-for-net!	refs/heads/main:refs/heads/main	[remote rejected] (protected branch hook declined)DonePushing to https://github.com/azure-sdk/azure-sdk-for-netPOST git-receive-pack (211 bytes)remote: error: GH006: Protected branch update failed for refs/heads/main.        remote: error: Cannot force-push to this branch        error: failed to push some refs to 'https://github.com/azure-sdk/azure-sdk-for-net'
  • Azure.ResourceManager.EventHubs
    error	Fatal error: To https://github.com/azure-sdk/azure-sdk-for-net!	refs/heads/main:refs/heads/main	[remote rejected] (protected branch hook declined)DonePushing to https://github.com/azure-sdk/azure-sdk-for-netPOST git-receive-pack (211 bytes)remote: error: GH006: Protected branch update failed for refs/heads/main.        remote: error: Cannot force-push to this branch        error: failed to push some refs to 'https://github.com/azure-sdk/azure-sdk-for-net'
    error	Fatal error: Error: To https://github.com/azure-sdk/azure-sdk-for-net!	refs/heads/main:refs/heads/main	[remote rejected] (protected branch hook declined)DonePushing to https://github.com/azure-sdk/azure-sdk-for-netPOST git-receive-pack (211 bytes)remote: error: GH006: Protected branch update failed for refs/heads/main.        remote: error: Cannot force-push to this branch        error: failed to push some refs to 'https://github.com/azure-sdk/azure-sdk-for-net'    at Object.action (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/simple-git@3.22.0/node_modules/simple-git/dist/cjs/index.js:1332:25)    at PluginStore.exec (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/simple-git@3.22.0/node_modules/simple-git/dist/cjs/index.js:1367:29)    at /mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/simple-git@3.22.0/node_modules/simple-git/dist/cjs/index.js:1766:43    at new Promise (<anonymous>)    at GitExecutorChain.handleTaskData (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/simple-git@3.22.0/node_modules/simple-git/dist/cjs/index.js:1764:16)    at GitExecutorChain.<anonymous> (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/simple-git@3.22.0/node_modules/simple-git/dist/cjs/index.js:1748:44)    at Generator.next (<anonymous>)    at fulfilled (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/simple-git@3.22.0/node_modules/simple-git/dist/cjs/index.js:55:24)    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    error	The following packages are still pending:
    error		Azure.ResourceManager.EventHubs
️⚠️ azure-sdk-for-python warning [Detail]
  • ⚠️Warning in generating from 4f3da4120e56c0d0e954cf6c471f956bf715d635. 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.
    command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    cmderr	[automation_generate.sh]
    cmderr	[automation_generate.sh] npm notice New minor version of npm available! 10.2.4 -> 10.5.2
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.5.2>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@10.5.2` to update!
    cmderr	[automation_generate.sh] npm notice
  • ️✔️azure-mgmt-eventhub [Preview SDK Changes]
    • azure-mgmt-eventhub-11.0.0.zip
    • azure_mgmt_eventhub-11.0.0-py3-none-any.whl
    info	[Changelog] ### Features Added
    info	[Changelog]
    info	[Changelog]   - Model NetworkSecurityPerimeterConfiguration has a new parameter location
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning in generating from 4f3da4120e56c0d0e954cf6c471f956bf715d635. 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
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 24.0
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 24.0
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
  • ️✔️azure-resourcemanager-eventhubs-generated [Preview SDK Changes]
    • pom.xml
    • azure-resourcemanager-eventhubs-generated-1.0.0-beta.1.jar
    • azure-resourcemanager-eventhubs-generated-1.0.0-beta.1-sources.jar
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from 4f3da4120e56c0d0e954cf6c471f956bf715d635. 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/eventhub/armeventhub [Preview SDK Changes]
️❌ azure-sdk-for-js failed [Detail]
  • Failed in generating from 4f3da4120e56c0d0e954cf6c471f956bf715d635. 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
    cmderr	[automation_generate.sh] ERROR: The command failed with exit code 1
    cmderr	[automation_generate.sh] [ERROR] Error:
    cmderr	[automation_generate.sh] [ERROR] An error occurred while run build for readme file: "specification/eventhub/resource-manager/readme.md":
    cmderr	[automation_generate.sh] [ERROR] Err: Error: Command failed: rush update
    cmderr	[automation_generate.sh] [ERROR] Stderr: "null"
    cmderr	[automation_generate.sh] [ERROR] Stdout: "null"
    cmderr	[automation_generate.sh] [ERROR] ErrorStack: "Error: Command failed: rush update
    cmderr	[automation_generate.sh] [ERROR]     at checkExecSyncError (node:child_process:885:11)
    cmderr	[automation_generate.sh] [ERROR]     at Object.execSync (node:child_process:957:15)
    cmderr	[automation_generate.sh] [ERROR]     at Object.<anonymous> (/home/cloudtest/.nvm/versions/node/v18.15.0/lib/node_modules/@azure-tools/js-sdk-release-tools/dist/hlc/generateMgmt.js:85:33)
    cmderr	[automation_generate.sh] [ERROR]     at Generator.next (<anonymous>)
    cmderr	[automation_generate.sh] [ERROR]     at fulfilled (/home/cloudtest/.nvm/versions/node/v18.15.0/lib/node_modules/@azure-tools/js-sdk-release-tools/node_modules/tslib/tslib.js:112:62)
    cmderr	[automation_generate.sh] [ERROR]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
  • @azure/arm-eventhub [Preview SDK Changes]
    info	[Changelog]
    error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
️⚠️ azure-resource-manager-schemas warning [Detail]
  • ⚠️Warning in generating from 4f3da4120e56c0d0e954cf6c471f956bf715d635. 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] npm notice
    cmderr	[initScript.sh] npm notice New minor version of npm available! 10.2.4 -> 10.5.2
    cmderr	[initScript.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.5.2>
    cmderr	[initScript.sh] npm notice Run `npm install -g npm@10.5.2` to update!
    cmderr	[initScript.sh] npm notice
    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
  • ️✔️eventhub [Preview Schema Changes]
️️✔️ azure-powershell succeeded [Detail] [Expand]
  • ️✔️Succeeded in generating from 4f3da4120e56c0d0e954cf6c471f956bf715d635. 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.eventhub.DefaultTag [Preview SDK Changes]
    • Az.EventHub.0.1.0.nupkg
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Mar 26, 2024

@schaudhari6254888 schaudhari6254888 marked this pull request as ready for review March 26, 2024 09:06
@AzureRestAPISpecReview AzureRestAPISpecReview added ARMReview WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Mar 26, 2024
@ms-henglu
Copy link
Member

There are a bunch of breaking changes reported on this PR. Please get a breaking changes approval from Azure Breaking Changes Reviewers azbreakchangereview@microsoft.com and ARM can review the changes afterwards. Once you have the approval, please remove the "ARMChangesRequested" label from the PR to make the PR visible to the ARM reviewers.

@ms-henglu ms-henglu added the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Mar 27, 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.

@openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Mar 27, 2024
@schaudhari6254888 schaudhari6254888 removed the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Apr 10, 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 Apr 10, 2024
}
}
},
"x-ms-long-running-operation": true
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you also add x-ms-long-running-operation-options to indicate which header to use? This applies to all other occurrences.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

}
}
},
"patch": {
Copy link
Contributor

Choose a reason for hiding this comment

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

Also add x-ms-long-running-operation and x-ms-long-running-operation-options?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

Copy link
Contributor

Choose a reason for hiding this comment

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

They don't seem to be added under patch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @gary-x-li ,this change is causing too much CI checks failed because previous swagger of a namespace doesn't have this x-ms-long-running-operation property
https://github.com/schaudhari6254888/azure-rest-api-specs/blob/716b241d1cc21b7830b7d5bfaa605d85501668f0/specification/eventhub/resource-manager/Microsoft.EventHub/stable/2024-01-01/namespaces.json#L265

Can you pls approve is this change is not very concerning, this PR is blocking future SDK release.

@gary-x-li gary-x-li added the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Apr 10, 2024
@openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Apr 10, 2024
@schaudhari6254888 schaudhari6254888 removed the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Apr 11, 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 Apr 11, 2024
@gary-x-li gary-x-li added the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Apr 11, 2024
@openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Apr 11, 2024
@AzureRestAPISpecReview AzureRestAPISpecReview added the BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required label Apr 11, 2024
@AzureRestAPISpecReview AzureRestAPISpecReview removed the BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required label Apr 11, 2024
@schaudhari6254888
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@schaudhari6254888 schaudhari6254888 removed the ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review label Apr 11, 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 Apr 11, 2024
@gary-x-li gary-x-li added the ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review label Apr 11, 2024
@openapi-workflow-bot openapi-workflow-bot bot removed the WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required label Apr 11, 2024
@schaudhari6254888
Copy link
Contributor Author

/pr RequestMerge

@gary-x-li gary-x-li merged commit b34ead8 into Azure:main Apr 12, 2024
29 of 32 checks passed
tjprescott pushed a commit that referenced this pull request Apr 17, 2024
* Base Check-In: Copying latest api version 2023-01-01-Preview folder to the 2024-05-01-preview

* renaming 2023-01-01-preview to 2024-05-01-preview

* New Updates

* Readme Updates

* Updates

* Updates

* Updates

* update

* Updates

* Updates

* Updates

* Updates

* namespace-preview renamed to namespaces.json

* Removed Preview naming

* Reverse the changes Removed Preview naming

* Updates

* updates

* LintDiff suppression

* LintDiff suppression2

* LintDiff suppression3

* LintDiff suppression4

* LintDiff suppression6

* Updates

* X-MS-Long added in Patch

* X-MS-Long added in Patch

* removed X-MS-Long added in Patch
wiboris pushed a commit to wiboris/azure-rest-api-specs that referenced this pull request May 7, 2024
* Base Check-In: Copying latest api version 2023-01-01-Preview folder to the 2024-05-01-preview

* renaming 2023-01-01-preview to 2024-05-01-preview

* New Updates

* Readme Updates

* Updates

* Updates

* Updates

* update

* Updates

* Updates

* Updates

* Updates

* namespace-preview renamed to namespaces.json

* Removed Preview naming

* Reverse the changes Removed Preview naming

* Updates

* updates

* LintDiff suppression

* LintDiff suppression2

* LintDiff suppression3

* LintDiff suppression4

* LintDiff suppression6

* Updates

* X-MS-Long added in Patch

* X-MS-Long added in Patch

* removed X-MS-Long added in Patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved-Suppression ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review new-api-version resource-manager SuppressionReviewRequired
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants