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

Add new api version 2024-06-01-preview for Microsoft.Cdn #29588

Merged
merged 41 commits into from
Aug 10, 2024

Conversation

ZianWang02
Copy link
Contributor

@ZianWang02 ZianWang02 commented Jun 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.

PR review workflow diagram

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

spec_pr_review_workflow_diagram

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 created in adherence to OpenAPI specs PR creation guidance).
  • 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.
  • If you don't have permissions to remove or add labels to the PR, request write access per aka.ms/azsdk/access#request-access-to-rest-api-or-sdk-repositories
  • 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 ARM review (PR workflow diagram Step 2), 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 Jun 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 Jun 26, 2024

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️❌Breaking Change(Cross-Version): 133 Errors, 24 Warnings failed [Detail]
Compared specs (v0.10.12) new version base version
afdx.json 2024-06-01-preview(c8d392b) 2024-02-01(main)
afdx.json 2024-06-01-preview(c8d392b) 2024-05-01-preview(main)
cdn.json 2024-06-01-preview(c8d392b) 2024-02-01(main)
cdn.json 2024-06-01-preview(c8d392b) 2024-05-01-preview(main)
cdnwebapplicationfirewall.json 2024-06-01-preview(c8d392b) 2024-02-01(main)
cdnwebapplicationfirewall.json 2024-06-01-preview(c8d392b) 2024-05-01-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
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/cdn.json#L3139:9
Old: Microsoft.Cdn/stable/2024-02-01/cdn.json#L2968:9
1023 - TypeFormatChanged The new version has a different format 'arm-id' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/cdn.json#L3279:9
Old: Microsoft.Cdn/stable/2024-02-01/cdn.json#L3107:9
1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L6327:7
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L4926:7
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L78:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L78:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L129:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L129:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L169:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L169:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L8106:11
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L6243:11
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L8088:9
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L6226:9
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L175:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L175:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L233:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L233:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L284:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L284:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L346:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L346:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L390:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L390:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5631:9
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L4413:9
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5683:9
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L4464:9
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5721:9
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L4490:9
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L396:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L396:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L452:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L452:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L529:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L529:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5706:9
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L4476:9
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5721:9
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L4490:9
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L604:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L604:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L667:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L667:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L729:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L729:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L773:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L773:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L6115:9
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L4721:9
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L779:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L779:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L835:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L835:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L912:13
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L912:13
1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L6173:9
Old: Microsoft.Cdn/stable/2024-02-01/afdx.json#L4777:9


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

Rule Message
⚠️ 1038 - AddedPath The new version is adding a path that was not found in the old version.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L3750:5
⚠️ 1038 - AddedPath The new version is adding a path that was not found in the old version.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L3795:5
⚠️ 1038 - AddedPath The new version is adding a path that was not found in the old version.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L3892:5
⚠️ 1038 - AddedPath The new version is adding a path that was not found in the old version.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L3946:5
⚠️ 1038 - AddedPath The new version is adding a path that was not found in the old version.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L4000:5
⚠️ 1038 - AddedPath The new version is adding a path that was not found in the old version.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L4720:5
⚠️ 1038 - AddedPath The new version is adding a path that was not found in the old version.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L4769:5
⚠️ 1038 - AddedPath The new version is adding a path that was not found in the old version.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5041:5
⚠️ 1038 - AddedPath The new version is adding a path that was not found in the old version.
New: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5090:5
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️❌LintDiff: 18 Errors, 7 Warnings failed [Detail]
Compared specs (v2.2.2) new version base version
package-preview-2024-06 package-preview-2024-06(c8d392b) default(main)

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

Rule Message Related RPC [For API reviewers]
PostResponseCodes 200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L3893
RPC-Async-V1-11, RPC-Async-V1-14
PostResponseCodes 200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L4001
RPC-Async-V1-11, RPC-Async-V1-14
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L4720
RPC-Uri-V1-05
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L4769
RPC-Uri-V1-05
ResourceNameRestriction The resource name parameter 'targetGroupName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L4769
RPC-Uri-V1-05
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.Cdn/preview/2024-06-01-preview/afdx.json#L4821
RPC-Async-V1-11, RPC-Put-V1-11
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L4893
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L4968
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.Cdn/preview/2024-06-01-preview/afdx.json#L4977
RPC-Delete-V1-01
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5031
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5041
RPC-Uri-V1-05
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5090
RPC-Uri-V1-05
ResourceNameRestriction The resource name parameter 'tunnelPolicyName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5090
RPC-Uri-V1-05
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.Cdn/preview/2024-06-01-preview/afdx.json#L5142
RPC-Async-V1-11, RPC-Put-V1-11
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5214
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5289
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.Cdn/preview/2024-06-01-preview/afdx.json#L5298
RPC-Delete-V1-01
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5352
⚠️ MissingSegmentsInNestedResourceListOperation A nested resource type's List operation must include all the parent segments in its api path.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L3549
RPC-Get-V1-11
⚠️ MissingSegmentsInNestedResourceListOperation A nested resource type's List operation must include all the parent segments in its api path.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L3750
RPC-Get-V1-11
⚠️ MissingSegmentsInNestedResourceListOperation A nested resource type's List operation must include all the parent segments in its api path.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L4720
RPC-Get-V1-11
⚠️ MissingSegmentsInNestedResourceListOperation A nested resource type's List operation must include all the parent segments in its api path.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L5041
RPC-Get-V1-11
⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L7427
⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L7442
⚠️ XmsIdentifierValidation Missing identifier id in array item property
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L8195


The following errors/warnings exist before current PR submission:

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

Rule Message
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L136
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L185
PostResponseCodes 202 response for a LRO POST operation must not have a response schema specified.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L292
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L347
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L357
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L406
ResourceNameRestriction The resource name parameter 'customDomainName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L406
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.Cdn/preview/2024-06-01-preview/afdx.json#L458
RepeatedPathInfo The 'profileName' already appears in the path, please don't repeat it in the request body.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L473
LroLocationHeader A 202 response should include an Location response header.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L521
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L530
PatchBodyParametersSchema Properties of a PATCH request body must not be required, property:certificateType.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L573
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L605
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.Cdn/preview/2024-06-01-preview/afdx.json#L614
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L668
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L678
ResourceNameRestriction The resource name parameter 'customDomainName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L678
PostResponseCodes 200 return code does not have a schema specified. LRO POST must have a 200 return code if only if the final response is intended to have a schema, if not the 200 return code must not be specified.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L679
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L730
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L740
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L789
ResourceNameRestriction The resource name parameter 'endpointName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L789
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.Cdn/preview/2024-06-01-preview/afdx.json#L841
RepeatedPathInfo The 'profileName' already appears in the path, please don't repeat it in the request body.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L856
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L913
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L988
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.Cdn/preview/2024-06-01-preview/afdx.json#L997
LroErrorContent Error response content of long running operations must follow the error schema provided in the common types v2 and above.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L1051
ResourceNameRestriction The resource name parameter 'profileName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L1061
ResourceNameRestriction The resource name parameter 'endpointName' should be defined with a 'pattern' restriction.
Location: Microsoft.Cdn/preview/2024-06-01-preview/afdx.json#L1061
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️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 Jun 26, 2024

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
️⚠️ azure-sdk-for-python warning [Detail]
    For more instructions, please refer to the FAQ .
  • ⚠️Warning in generating from 6bd23756559899d27d595f71a0018081512e6ff2. 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] W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
    cmderr	[automation_init.sh] npm notice
    cmderr	[automation_init.sh] npm notice New minor version of npm available! 10.7.0 -> 10.8.2
    cmderr	[automation_init.sh] npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
    cmderr	[automation_init.sh] npm notice To update run: npm install -g npm@10.8.2
    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-cdn [Preview SDK Changes]
    info	[Changelog]
️❌ azure-sdk-for-java failed [Detail]
    For more instructions, please refer to the FAQ .
  • Code Generator Failed in generating from 6bd23756559899d27d595f71a0018081512e6ff2. SDK Automation 14.0.0
    command	./eng/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
    command	./eng/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmdout	[Java-Sdk-Automation] [ERROR] COMPILATION ERROR :
    cmdout	[Java-Sdk-Automation] [ERROR] /mnt/vss/_work/1/s/azure-sdk-for-java/sdk/cdn/azure-resourcemanager-cdn-generated/src/main/java/com/azure/resourcemanager/cdn/generated/models/PolicySettings.java:[178,60] cannot find symbol
    cmdout	[Java-Sdk-Automation] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project azure-resourcemanager-cdn-generated: Compilation failure
    cmdout	[Java-Sdk-Automation] [ERROR] /mnt/vss/_work/1/s/azure-sdk-for-java/sdk/cdn/azure-resourcemanager-cdn-generated/src/main/java/com/azure/resourcemanager/cdn/generated/models/PolicySettings.java:[178,60] cannot find symbol
    cmdout	[Java-Sdk-Automation] [ERROR]   symbol:   method toInt()
    cmdout	[Java-Sdk-Automation] [ERROR]   location: variable defaultCustomBlockResponseStatusCode of type com.azure.resourcemanager.cdn.generated.models.PolicySettingsDefaultCustomBlockResponseStatusCode
    cmdout	[Java-Sdk-Automation] [ERROR]
    cmdout	[Java-Sdk-Automation] [ERROR] -> [Help 1]
    cmdout	[Java-Sdk-Automation] [ERROR]
    cmdout	[Java-Sdk-Automation] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    cmdout	[Java-Sdk-Automation] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    cmdout	[Java-Sdk-Automation] [ERROR]
    cmdout	[Java-Sdk-Automation] [ERROR] For more information about the errors and possible solutions, please read the following articles:
    cmdout	[Java-Sdk-Automation] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    cmdout	[Java-Sdk-Automation] [ERROR]
    cmdout	[Java-Sdk-Automation] [ERROR] After correcting the problems, you can resume the build with the command
    cmdout	[Java-Sdk-Automation] [ERROR]   mvn <args> -rf :azure-resourcemanager-cdn-generated
    cmdout	[Java-Sdk-Automation] 2024-07-23 09:57:33 [ERROR] [COMPILE] Maven build fail.
    cmdout	[Java-Sdk-Automation] 2024-07-23 09:57:33 [ERROR] You can inquire in "Language - Java" Teams channel. Please include the link of this Pull Request in the query.
    cmderr	[Java-Sdk-Automation] Traceback (most recent call last):
    cmderr	[Java-Sdk-Automation]   File "/mnt/vss/_work/1/s/azure-sdk-for-java/./eng/automation/generate.py", line 429, in <module>
    cmderr	[Java-Sdk-Automation]     main()
    cmderr	[Java-Sdk-Automation]   File "/mnt/vss/_work/1/s/azure-sdk-for-java/./eng/automation/generate.py", line 340, in main
    cmderr	[Java-Sdk-Automation]     return sdk_automation(args["config"][0], args["config"][1])
    cmderr	[Java-Sdk-Automation]   File "/mnt/vss/_work/1/s/azure-sdk-for-java/./eng/automation/generate.py", line 118, in sdk_automation
    cmderr	[Java-Sdk-Automation]     packages = sdk_automation_autorest(config)
    cmderr	[Java-Sdk-Automation]   File "/mnt/vss/_work/1/s/azure-sdk-for-java/./eng/automation/generate.py", line 206, in sdk_automation_autorest
    cmderr	[Java-Sdk-Automation]     "changelog": {"content": changelog, "hasBreakingChange": breaking},
    cmderr	[Java-Sdk-Automation] UnboundLocalError: local variable 'changelog' referenced before assignment
    error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-java]: ./eng/automation/generate.py
    warn	Warning: Package processing is skipped as the SDK generation fails. Please look into the above generation errors or report this issue through https://aka.ms/azsdk/support/specreview-channel.
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    For more instructions, please refer to the FAQ .
  • ️✔️Succeeded in generating from 6bd23756559899d27d595f71a0018081512e6ff2. 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/cdn/armcdn [Preview SDK Changes]
    info	[Changelog] ### Other Changes
    info	[Changelog]
    info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
️❌ azure-sdk-for-net-track2 failed [Detail]
    For more instructions, please refer to the FAQ .
  • Failed in generating from 6bd23756559899d27d595f71a0018081512e6ff2. 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] GeneratePackage: /mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:714
    cmderr	[Invoke-GenerateAndBuildV2.ps1] Line |
    cmderr	[Invoke-GenerateAndBuildV2.ps1]  714 |          GeneratePackage -projectFolder $projectFolder -sdkRootPath $s …
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      | Failed to generate sdk. exit code: False
    cmderr	[Invoke-GenerateAndBuildV2.ps1] Get-ChildItem: /mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:787
    cmderr	[Invoke-GenerateAndBuildV2.ps1] Line |
    cmderr	[Invoke-GenerateAndBuildV2.ps1]  787 |  … rtifacts += Get-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s …
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      | Cannot find path
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      | '/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      | it does not exist.
  • Azure.ResourceManager.Cdn [Preview SDK Changes]
    info	[Changelog]
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    For more instructions, please refer to the FAQ .
  • ️✔️Succeeded in generating from 6bd23756559899d27d595f71a0018081512e6ff2. 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	Warning: File azure-sdk-for-js_tmp/initOutput.json not found to read. Please re-run the pipeline if the error is transitient error or report this issue through https://aka.ms/azsdk/support/specreview-channel.
    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] Cannot generate changelog because the codes of local and npm may be the same.
  • ️✔️@azure/arm-cdn [Preview SDK Changes]
    info	[Changelog]
️❌ azure-resource-manager-schemas failed [Detail]
    For more instructions, please refer to the FAQ .
  • Code Generator Failed in generating from 6bd23756559899d27d595f71a0018081512e6ff2. 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] npm notice
    cmderr	[initScript.sh] npm notice New minor version of npm available! 10.7.0 -> 10.8.2
    cmderr	[initScript.sh] npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
    cmderr	[initScript.sh] npm notice To update run: npm install -g npm@10.8.2
    cmderr	[initScript.sh] npm notice
    error	Script return with result [failed] code [1] signal [null] cwd [azure-resource-manager-schemas]: .sdkauto/initScript.sh
    warn	Warning: File azure-resource-manager-schemas_tmp/initOutput.json not found to read. Please re-run the pipeline if the error is transitient error or report this issue through https://aka.ms/azsdk/support/specreview-channel.
    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/ts-node@9.0.0_typescript@5.3.3/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/ts-node@9.0.0_typescript@5.3.3/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/ts-node@9.0.0_typescript@5.3.3/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/ts-node@9.0.0_typescript@5.3.3/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/ts-node@9.0.0_typescript@5.3.3/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/ts-node@9.0.0_typescript@5.3.3/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/ts-node@9.0.0_typescript@5.3.3/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	Warning: Package processing is skipped as the SDK generation fails. Please look into the above generation errors or report this issue through https://aka.ms/azsdk/support/specreview-channel.
️⚠️ azure-powershell warning [Detail]
    For more instructions, please refer to the FAQ .
  • ⚠️Warning in generating from 6bd23756559899d27d595f71a0018081512e6ff2. 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.cdn.DefaultTag [Preview SDK Changes]
Posted by Swagger Pipeline | How to fix these errors?

@AzureRestAPISpecReview AzureRestAPISpecReview removed the ReadyForApiTest <valid label in PR review process>add this label when swagger and service APIs are ready for test label Jul 1, 2024
ZianWang02 and others added 5 commits July 25, 2024 17:04
* Revert "Remove default so that the API becomes patchable"

This reverts commit 5217599.

* Revert "Add Capacity based round-robin load balancing settings"

This reverts commit bd08ac0.

---------

Co-authored-by: Anupam Srivastava <srivastavaan@microsoft.com>
@ZianWang02 ZianWang02 requested a review from Ptnan7 as a code owner July 31, 2024 03:49
Copy link

PR validation pipeline can not start as the pull request is not merged or mergeable - most likely it has merge conflicts.

@ZianWang02 ZianWang02 added the PublishToCustomers Acknowledgement the changes will be published to Azure customers. label Aug 8, 2024
@ZianWang02
Copy link
Contributor Author

/pr RequestMerge

@ZianWang02 ZianWang02 added MergeRequested and removed PublishToCustomers Acknowledgement the changes will be published to Azure customers. labels Aug 8, 2024
@rkmanda rkmanda added the PublishToCustomers Acknowledgement the changes will be published to Azure customers. label Aug 10, 2024
@rkmanda rkmanda merged commit 3cef1bf into Azure:main Aug 10, 2024
26 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved-LintDiff ARMReview ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review BreakingChange-Approved-BugFix Changes are to correct the REST API definition to correctly describe service behavior BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required Network - CDN new-api-version PublishToCustomers Acknowledgement the changes will be published to Azure customers. resource-manager
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants