Skip to content

[ProviderHub] Update definitions#13602

Closed
wwendyc wants to merge 9 commits intoAzure:masterfrom
wwendyc:master
Closed

[ProviderHub] Update definitions#13602
wwendyc wants to merge 9 commits intoAzure:masterfrom
wwendyc:master

Conversation

@wwendyc
Copy link
Copy Markdown
Contributor

@wwendyc wwendyc commented Mar 24, 2021

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

Changelog

Please ensure to add changelog with this PR by answering the following questions.

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify
  2. When you are targeting to deploy new service/feature to public regions? Please provide date, or month to public if date is not available yet.
  3. When you expect to publish swagger? Please provide date, or month to public if date is not available yet.
  4. If it's an update to existing version, please select SDKs of specific language and CLIs that require refresh after swagger is published.
    • SDK of .NET (need service team to ensure code readiness)
    • SDK of Python
    • SDK of Java
    • SDK of Js
    • SDK of Go
    • PowerShell
    • CLI
    • Terraform
    • No, no need to refresh for updates in this PR

Contribution checklist:

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

  • Ensure to check this box if one of the following scenarios meet updates in the PR, so that label “WaitForARMFeedback” will be added automatically to involve ARM API Review. Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs, all “removals” and “adding a new property” no more require ARM API review.

    • Adding new API(s)
    • Adding a new API version
    • Ensure to copy the existing version into new directory structure for first commit (including refactoring) and then push new changes including version updates in separate commits. This is required to review the changes efficiently.
    • Adding a new service
  • Please ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

  • If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist

If there are following updates in the PR, ensure to request an approval from Breaking Change Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in stable version
  • Removing properties in stable version
  • Removing API version(s) in stable version
  • Updating API in stable or public preview version with Breaking Change Validation errors
  • Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.

Please follow the link to find more details on PR review process.

@openapi-workflow-bot
Copy link
Copy Markdown

Hi, @wwendyc Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. vsswagger@microsoft.com

    @openapi-workflow-bot
    Copy link
    Copy Markdown

    [Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks.

    @openapi-pipeline-app
    Copy link
    Copy Markdown

    openapi-pipeline-app bot commented Mar 24, 2021

    Swagger Validation Report

    ️❌BreakingChange: 12 Errors, 2 Warnings failed [Detail]

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

    Rule Message
    1021 - AddedAdditionalProperties The new version adds an 'additionalProperties' element.
    New: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3381:9
    Old: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3376:9
    1021 - AddedAdditionalProperties The new version adds an 'additionalProperties' element.
    New: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3249:11
    Old: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3249:11
    1021 - AddedAdditionalProperties The new version adds an 'additionalProperties' element.
    New: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3823:9
    Old: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3821:9
    1021 - AddedAdditionalProperties The new version adds an 'additionalProperties' element.
    New: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3823:9
    Old: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3821:9
    1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3381:9
    Old: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3376:9
    1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3249:11
    Old: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3249:11
    1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3659:9
    Old: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3649:9
    1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3662:9
    Old: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3656:9
    1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3823:9
    Old: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3821:9
    1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3823:9
    Old: Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#L3821:9
    ️⚠️LintDiff: 0 Warnings warning [Detail]
    The following errors/warnings exist before current PR submission:

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

    Rule Message
    D5001 - XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'ResourceLinks_Delete'
    Location: Microsoft.Resources/stable/2016-09-01/links.json#L63
    D5001 - XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'ResourceLinks_CreateOrUpdate'
    Location: Microsoft.Resources/stable/2016-09-01/links.json#L91
    D5001 - XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'ResourceLinks_Get'
    Location: Microsoft.Resources/stable/2016-09-01/links.json#L134
    D5001 - XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'ResourceLinks_ListAtSubscription'
    Location: Microsoft.Resources/stable/2016-09-01/links.json#L164
    D5001 - XmsExamplesRequired Please provide x-ms-examples describing minimum/maximum property set for response/request payloads for operations. Operation: 'ResourceLinks_ListAtSourceScope'
    Location: Microsoft.Resources/stable/2016-09-01/links.json#L200
    R2016 - PatchBodyParametersSchema Properties of a PATCH request body must not be required. PATCH operation: 'Applications_UpdateById' Model Definition: 'Application' Property: 'properties'
    Location: Microsoft.Solutions/stable/2018-06-01/managedapplications.json#L1021
    R2016 - PatchBodyParametersSchema Properties of a PATCH request body must not be required. PATCH operation: 'Applications_UpdateById' Model Definition: 'Application' Property: 'kind'
    Location: Microsoft.Solutions/stable/2018-06-01/managedapplications.json#L1021
    R2026 - AvoidAnonymousTypes Inline/anonymous models must not be used, instead define a schema with a model name in the 'definitions' section and refer to it. This allows operations to share the models.
    Location: Microsoft.Resources/stable/2021-01-01/resources.json#L5514
    R3030 - PathResourceProviderMatchNamespace The last resource provider 'Microsoft.Resources, Microsoft.Management' doesn't match the namespace.
    Location: Microsoft.Resources/stable/2021-01-01/resources.json#L36
    R4007 - DefaultErrorResponseSchema the default error response schema does not correspond to the schema documented at https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-details.md#error-response-content.
    Location: Microsoft.Solutions/stable/2018-06-01/managedapplications.json#L116
    ️❌Avocado: 33 Errors, 0 Warnings failed [Detail]

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

    Rule Message
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/resources/resource-manager/readme.md
    json: stable/2021-04-01/examples/CalculateTemplateHash.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/resources/resource-manager/readme.md
    json: stable/2021-04-01/examples/CheckResourceName.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/resources/resource-manager/readme.md
    json: stable/2021-04-01/examples/CreateResourceGroup.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/resources/resource-manager/readme.md
    json: stable/2021-04-01/examples/ExportResourceGroup.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/resources/resource-manager/readme.md
    json: stable/2021-04-01/examples/ExportResourceGroupWithFiltering.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/resources/resource-manager/readme.md
    json: stable/2021-04-01/examples/GetLocations.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/resources/resource-manager/readme.md
    json: stable/2021-04-01/examples/GetLocationsWithExtendedLocations.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/resources/resource-manager/readme.md
    json: stable/2021-04-01/examples/GetNamedProviderAtTenant.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/resources/resource-manager/readme.md
    json: stable/2021-04-01/examples/GetProvider.json
    UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
    readme: specification/resources/resource-manager/readme.md
    json: stable/2021-04-01/examples/GetProviderPermissions.json
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️Cross Version BreakingChange (Base on preview version) succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️Cross Version BreakingChange (Base on stable version) succeeded [Detail] [Expand]
    There are no breaking changes.

    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️[Staging] SDK Track2 Validation: 2 Warnings warning [Detail]
    The following errors/warnings are introduced by current PR:
    Rule Message
    ⚠️ Modeler/MissingType "readme":"providerhub/resource-manager/readme.md",
    "tag":"package-2020-11-20",
    "details":"The schema 'ResourceType-metadata' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#/components/schemas/ResourceType-metadata"
    ⚠️ Modeler/MissingType "readme":"providerhub/resource-manager/readme.md",
    "tag":"package-2020-11-20",
    "details":"The schema 'OperationsDefinition-properties' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/providerhub/resource-manager/Microsoft.ProviderHub/stable/2020-11-20/providerhub.json#/components/schemas/OperationsDefinition-properties"
    💬 AutorestCore/Exception "readme":"providerhub/resource-manager/readme.md",
    "tag":"package-2020-11-20",
    "details":"> Installing AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0)"
    💬 AutorestCore/Exception "readme":"providerhub/resource-manager/readme.md",
    "tag":"package-2020-11-20",
    "details":"> Installed AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0->1.8.0)"


    The following errors/warnings exist before current PR submission:

    Rule Message
    AutorestCore/Exception "readme":"providerhub/resource-manager/readme.md",
    "tag":"package-2020-11-20",
    "details":"Error: Plugin pre-namer reported failure."
    💬 AutorestCore/Exception "readme":"providerhub/resource-manager/readme.md",
    "tag":"package-2020-11-20",
    "details":"> Loading AutoRest extension '@autorest/modelerfour' (4.15.456->4.15.456)"
    ️❌[Staging] PrettierCheck: 1 Errors, 0 Warnings failed [Detail]
    Rule Message
    HowToFix Code style issues found
    path: stable/2021-04-01/examples/GetProviderPermissions.json
    ️️✔️[Staging] SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link
    Copy Markdown

    openapi-pipeline-app bot commented Mar 24, 2021

    Swagger Generation Artifacts

    ️❌[Staging] ApiDocPreview: 1 Errors, 0 Warnings failed [Detail]
    Rule Message
    RestBuild error "logUrl":"https://apidrop.visualstudio.com/Content%20CI/_build/results?buildId=210617&view=logs&j=fd490c07-0b22-5182-fac9-6d67fe1e939b",
    "detail":"Run.ps1 failed with exit code 1 "
    ️❌ azure-sdk-for-net failed [Detail]
    • Failed [Logs] Generate from dd70268630abc25a114d1d9b675d6fa08accd324. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	sudo apt-get install -y dotnet-sdk-5.0
      command	autorest --version=V2 --csharp --reflect-api-versions --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.csharp@2.3.82 --csharp-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/providerhub/resource-manager/readme.md
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      command	autorest --version=V2 --csharp --reflect-api-versions --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.csharp@2.3.82 --csharp-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/resources/resource-manager/readme.md
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
    • Microsoft.Azure.Management.ProviderHub [View full logs]  [Preview SDK Changes]
      cmdout	[msbuild] /home/vsts/work/1/s/azure-sdk-for-net/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/tests/ScenarioTests/ProviderRegistrationTests.cs(28,54): error CS0246: The type or namespace name 'ProviderHubMetadataProviderAuthentication' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/tests/Microsoft.Azure.Management.ProviderHub.Tests.csproj]
      cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/tests/ScenarioTests/ProviderRegistrationTests.cs(28,54): error CS0246: The type or namespace name 'ProviderHubMetadataProviderAuthentication' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/providerhub/Microsoft.Azure.Management.ProviderHub/tests/Microsoft.Azure.Management.ProviderHub.Tests.csproj]
      error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-net]: dotnet
    • ️✔️Microsoft.Azure.Management.ResourceManager [View full logs]  [Preview SDK Changes]
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs] Generate from dd70268630abc25a114d1d9b675d6fa08accd324. 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.
      warn		specification/providerhub/resource-manager/readme.md skipped due to azure-sdk-for-python-track2 not found in swagger-to-sdk
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    • ️✔️track2_azure-mgmt-resource [View full logs]  [Preview SDK Changes] Breaking Change Detected
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Model TemplateSpecVersion has a new parameter ui_form_definition
      info	[Changelog]   - Model TemplateSpecVersion has a new parameter metadata
      info	[Changelog]   - Model TemplateSpecVersion has a new parameter main_template
      info	[Changelog]   - Model TemplateSpecVersion has a new parameter linked_templates
      info	[Changelog]   - Model TemplateSpec has a new parameter metadata
      info	[Changelog]
      info	[Changelog] **Breaking changes**
      info	[Changelog]
      info	[Changelog]   - Model TemplateSpecVersion no longer has parameter template
      info	[Changelog]   - Model TemplateSpecVersion no longer has parameter artifacts
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from dd70268630abc25a114d1d9b675d6fa08accd324. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.typescript@4.4.4 --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/providerhub/resource-manager/readme.md
      command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.typescript@4.4.4 --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/resources/resource-manager/readme.md
    • ️✔️@azure/arm-features [View full logs]  [Preview SDK Changes]
      cmderr	[npmPack] loaded rollup.config.js with warnings
      cmderr	[npmPack] (!) Unused external imports
      cmderr	[npmPack] default imported from external module 'rollup' but never used
      cmderr	[npmPack] ./esm/featureClient.js → ./dist/arm-features.js...
      cmderr	[npmPack] created ./dist/arm-features.js in 151ms
    • ️✔️@azure/arm-links [View full logs]  [Preview SDK Changes]
      cmderr	[npmPack] loaded rollup.config.js with warnings
      cmderr	[npmPack] (!) Unused external imports
      cmderr	[npmPack] default imported from external module 'rollup' but never used
      cmderr	[npmPack] ./esm/managementLinkClient.js → ./dist/arm-links.js...
      cmderr	[npmPack] created ./dist/arm-links.js in 159ms
    • ️✔️@azure/arm-locks [View full logs]  [Preview SDK Changes]
      cmderr	[npmPack] loaded rollup.config.js with warnings
      cmderr	[npmPack] (!) Unused external imports
      cmderr	[npmPack] default imported from external module 'rollup' but never used
      cmderr	[npmPack] ./esm/managementLockClient.js → ./dist/arm-locks.js...
      cmderr	[npmPack] created ./dist/arm-locks.js in 216ms
    • ️✔️@azure/arm-managedapplications [View full logs]  [Preview SDK Changes]
      cmderr	[npmPack] loaded rollup.config.js with warnings
      cmderr	[npmPack] (!) Unused external imports
      cmderr	[npmPack] default imported from external module 'rollup' but never used
      cmderr	[npmPack] ./esm/applicationClient.js → ./dist/arm-managedapplications.js...
      cmderr	[npmPack] created ./dist/arm-managedapplications.js in 291ms
    • ️✔️@azure/arm-policy [View full logs]  [Preview SDK Changes]
      cmderr	[npmPack] loaded rollup.config.js with warnings
      cmderr	[npmPack] (!) Unused external imports
      cmderr	[npmPack] default imported from external module 'rollup' but never used
      cmderr	[npmPack] ./esm/policyClient.js → ./dist/arm-policy.js...
      cmderr	[npmPack] created ./dist/arm-policy.js in 362ms
    • ️✔️@azure/arm-resources [View full logs]  [Preview SDK Changes]
      cmderr	[npmPack] loaded rollup.config.js with warnings
      cmderr	[npmPack] (!) Unused external imports
      cmderr	[npmPack] default imported from external module 'rollup' but never used
      cmderr	[npmPack] ./esm/resourceManagementClient.js → ./dist/arm-resources.js...
      cmderr	[npmPack] created ./dist/arm-resources.js in 566ms
    ️⚠️ azure-sdk-for-python warning [Detail]
    • ⚠️Warning [Logs] Generate from dd70268630abc25a114d1d9b675d6fa08accd324. 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] ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
      cmderr	[automation_init.sh] azure-mgmt-core 1.2.2 requires azure-core<2.0.0,>=1.9.0, but you have azure-core 1.6.0 which is incompatible.
      cmderr	[automation_init.sh] ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
      cmderr	[automation_init.sh] azure-mgmt-core 1.2.2 requires azure-core<2.0.0,>=1.9.0, but you have azure-core 1.6.0 which is incompatible.
      cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
      warn		specification/resources/resource-manager/readme.md skipped due to azure-sdk-for-python not found in swagger-to-sdk
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
      warn	No package detected after generation
    ️⚠️ azure-sdk-for-java warning [Detail]
    • ⚠️Warning [Logs] Generate from dd70268630abc25a114d1d9b675d6fa08accd324. 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
      cmderr	[generate.py] 2021-04-23 23:31:21 INFO [VERSION][Not Found] cannot find version for "com.azure.resourcemanager:azure-resourcemanager-providerhub"
      cmderr	[generate.py] 2021-04-23 23:31:21 INFO [VERSION][Not Found] cannot find stable version, current version "1.0.0-beta.1"
      cmderr	[generate.py] 2021-04-23 23:31:21 INFO autorest --version=3.1.3 --use=@autorest/java@4.0.24 --java.azure-libraries-for-java-folder=/home/vsts/work/1/s/azure-sdk-for-java --java.output-folder=/home/vsts/work/1/s/azure-sdk-for-java/sdk/providerhub/azure-resourcemanager-providerhub --java.namespace=com.azure.resourcemanager.providerhub   --java --pipeline.modelerfour.additional-checks=false --pipeline.modelerfour.lenient-model-deduplication=true --azure-arm --verbose --sdk-integration --fluent=lite --java.fluent=lite --java.license-header=MICROSOFT_MIT_SMALL ../azure-rest-api-specs/specification/providerhub/resource-manager/readme.md
      cmderr	[generate.py] 2021-04-23 23:32:03 INFO [CI][Success] Write to ci.yml
      cmderr	[generate.py] 2021-04-23 23:32:03 INFO [POM][Process] dealing with pom.xml
      cmderr	[generate.py] 2021-04-23 23:32:03 INFO [POM][Skip] pom already has module azure-resourcemanager-providerhub
      cmderr	[generate.py] 2021-04-23 23:32:03 INFO [POM][Success] Write to pom.xml
      cmderr	[generate.py] 2021-04-23 23:32:03 INFO [POM][Process] dealing with root pom
      cmderr	[generate.py] 2021-04-23 23:32:03 INFO [POM][Success] Write to root pom
    • ️✔️azure-resourcemanager-providerhub [View full logs]  [Preview SDK Changes]
      cmderr	[Inst] 2021-04-23 23:36:03 DEBUG Got artifact_id: azure-resourcemanager-providerhub
      cmderr	[Inst] 2021-04-23 23:36:03 DEBUG Got artifact: pom.xml
      cmderr	[Inst] 2021-04-23 23:36:03 DEBUG Got artifact: azure-resourcemanager-providerhub-1.0.0-beta.1.jar
      cmderr	[Inst] 2021-04-23 23:36:03 DEBUG Match jar package: azure-resourcemanager-providerhub-1.0.0-beta.1.jar
      cmderr	[Inst] 2021-04-23 23:36:03 DEBUG output: {"full": "```sh\ncurl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/13602/azure-sdk-for-java/azure-resourcemanager-providerhub/azure-resourcemanager-providerhub-1.0.0-beta.1.jar\" -o azure-resourcemanager-providerhub-1.0.0-beta.1.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-providerhub -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-providerhub-1.0.0-beta.1.jar -Dpackaging=jar -DgeneratePom=true
      ```"}
    • ️✔️azure-resourcemanager-resources-generated [View full logs]  [Preview SDK Changes]
      cmderr	[Inst] 2021-04-23 23:38:54 DEBUG Got artifact_id: azure-resourcemanager-resources-generated
      cmderr	[Inst] 2021-04-23 23:38:54 DEBUG Got artifact: pom.xml
      cmderr	[Inst] 2021-04-23 23:38:54 DEBUG Got artifact: azure-resourcemanager-resources-generated-1.0.0-beta.1.jar
      cmderr	[Inst] 2021-04-23 23:38:54 DEBUG Match jar package: azure-resourcemanager-resources-generated-1.0.0-beta.1.jar
      cmderr	[Inst] 2021-04-23 23:38:54 DEBUG output: {"full": "```sh\ncurl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/13602/azure-sdk-for-java/azure-resourcemanager-resources-generated/azure-resourcemanager-resources-generated-1.0.0-beta.1.jar\" -o azure-resourcemanager-resources-generated-1.0.0-beta.1.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-resources-generated -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-resources-generated-1.0.0-beta.1.jar -Dpackaging=jar -DgeneratePom=true
      ```"}
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs] Generate from dd70268630abc25a114d1d9b675d6fa08accd324. 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]  WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
      warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
      warn		specification/providerhub/resource-manager/readme.md skipped due to azure-resource-manager-schemas not found in swagger-to-sdk
      command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
      warn	No file changes detected after generation
      warn	Skip detect changed packages
    • ️✔️resources [View full logs]  [Preview Schema Changes]
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link
    Copy Markdown

    Hi @wwendyc, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review.
    Action: To initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
    If you want to know the production traffic statistic, please see ARM Traffic statistic.
    If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ms/swaggerfeedback.

    @leniatgh
    Copy link
    Copy Markdown
    Contributor

    @wwendyc please clarify the purpose of this update in PR description, and go through all the checks

    @leniatgh leniatgh assigned jianyexi and unassigned leniatgh Mar 29, 2021
    @openapi-workflow-bot
    Copy link
    Copy Markdown

    NewApiVersionRequired reason:

    A service’s API is a contract with customers and is represented by using the api-version query parameter. Changes such as adding an optional property to a request/response or introducing a new operation is a change to the service’s contract and therefore requires a new api-version value. This is critically important for documentation, client libraries, and customer support.

    EXAMPLE: if a customer calls a service in the public cloud using api-version=2020-07-27, the new property or operation may exist but if they call the service in a government cloud, air-gapped cloud, or Azure Stack Hub cloud using the same api-version, the property or operation may not exist. Because there is no clear relationship between the service api-version and the new property/operation, customers can’t trust the documentation and Azure customer have difficulty helping customers diagnose issues. In addition, each client library version documents the service version it supports. When an optional property or new operation is added to a service and its Swagger, new client libraries must be produced to expose this functionality to customers. Without updating the api-version, it is unclear to customers which version of a client library supports these new features.

    @wwendyc
    Copy link
    Copy Markdown
    Contributor Author

    wwendyc commented Apr 12, 2021

    @jianyexi This PR is to correct our Swagger for PS Cmdlets, not a breaking change. Please take a look.

    @jianyexi
    Copy link
    Copy Markdown
    Contributor

    jianyexi commented Apr 13, 2021

    @jianyexi Jianye Xi FTE This PR is to correct our Swagger for PS Cmdlets, not a breaking change. Please take a look.

    But your change introduced some breaking changes , you should follow the below action:

    Hi @wwendyc Wendy Chang FTE, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review.
    Action: To initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.
    If you want to know the production traffic statistic, please see ARM Traffic statistic.
    If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ms/swaggerfeedback.

    @openapi-workflow-bot
    Copy link
    Copy Markdown

    Hi @wwendyc, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff.

    TaskHow to fixPrioritySupport (Microsoft alias)
    AvocadoFix-AvocadoHighruowan
    Semantic validationFix-SemanticValidation-ErrorHighraychen, jianyxi
    Model validationFix-ModelValidation-ErrorHighraychen,jianyxi
    LintDiffFix-LintDiffhighjianyxi, ruoxuan
    If you need further help, please feedback via swagger feedback."

    @wwendyc wwendyc closed this Apr 23, 2021
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    3 participants