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

Update ResourceIdentity reference and remove ManagedInstanceMetric #11960

Merged
merged 2 commits into from
Dec 9, 2020
Merged

Update ResourceIdentity reference and remove ManagedInstanceMetric #11960

merged 2 commits into from
Dec 9, 2020

Conversation

ericshape
Copy link
Contributor

@ericshape ericshape commented Dec 4, 2020

Most of the changes in this PR are auto-generated by SQL DB DSMainDev Repo:

  1. change the reference of ResourceIdentity in https://github.com/ericshape/azure-rest-api-specs/blob/2382a3b1c11562eeba18480e7b8fd5490ae0129f/specification/sql/resource-manager/Microsoft.Sql/preview/2019-06-01-preview/servers.json#L349-L376 auto-generated
  2. add None and UserAssigned to ResourceIdentity in SQL specific common type file: https://github.com/ericshape/azure-rest-api-specs/blob/33b5733cc82028c9ce6e2c9ec9f28e7f763098f7/specification/sql/resource-manager/common/v1/types.json#L100-L129 manually change
    • It would lead to breaking change: Add new values to the enum.
  3. update all the references in 2020-08-01-preview spec files. auto-generated
  4. remove all the ManagedInstanceMetric from 2020-08-01-preview, which is requested by the owner and not ready to publish in Public API. auto-generated
    • It would lead to breaking change: removing paths. But we have not published any doc and SDK for 2020-08-01-preview. It is fine for us.

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
    • 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 API 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 version with Breaking Change Validation errors
  • Updating API(s) in preview over 1 year

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.

@ericshape ericshape requested a review from bcham as a code owner December 4, 2020 22:07
@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Dec 4, 2020

Swagger Validation Report

️❌BreakingChange: 5 Errors, 0 Warnings failed [Detail]

Rule Message
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/metricDefinitions' removed or restructured?
New: azure-rest-api-specs/blob/cc8b1c8d2d202c2482180872a6f301dcc25617e1/
Old: Microsoft.Sql/preview/2020-08-01-preview/ManagedInstances.json#L19:5
1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/metrics' removed or restructured?
New: azure-rest-api-specs/blob/cc8b1c8d2d202c2482180872a6f301dcc25617e1/
Old: Microsoft.Sql/preview/2020-08-01-preview/ManagedInstances.json#L61:5
1020 - AddedEnumValue The new version is adding enum value(s) 'UserAssigned' from the old version.
New: resource-manager/common/v1/types.json#L168:9
Old: Microsoft.Sql/preview/2020-08-01-preview/ManagedInstances.json#L930:9
1020 - AddedEnumValue The new version is adding enum value(s) 'None, UserAssigned' from the old version.
New: resource-manager/common/v1/types.json#L168:9
Old: Microsoft.Sql/preview/2019-06-01-preview/servers.json#L359:9
1020 - AddedEnumValue The new version is adding enum value(s) 'UserAssigned' from the old version.
New: resource-manager/common/v1/types.json#L168:9
Old: Microsoft.Sql/preview/2020-08-01-preview/Servers.json#L359:9
️️✔️LintDiff succeeded [Detail] [Expand]
Validation passes for LintDiff.

️⚠️Avocado: 1 Warnings warning [Detail]
Rule Message
⚠️ MULTIPLE_API_VERSION The default tag contains multiple API versions swaggers.
readme: specification/sql/resource-manager/readme.md
tag: specification/sql/resource-manager/readme.md#tag-package-composite-v4
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️[Staging] Cross Version BreakingChange (Base on preview version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️[Staging] Cross Version BreakingChange (Base on stable version) succeeded [Detail] [Expand]
There are no breaking changes.
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Dec 4, 2020

Swagger Generation Artifacts

️⚠️ azure-sdk-for-net warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 0b03b72. 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/sql/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.Sql [View full logs]  [Release SDK Changes]
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 0b03b72. 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] 2020-12-09 02:54:29 INFO [VERSION][Not Found] cannot find version for "com.azure.resourcemanager:azure-resourcemanager-sql-generated"
    cmderr	[generate.py] 2020-12-09 02:54:29 INFO [VERSION][Not Found] cannot find stable version, current version "1.0.0-beta.1"
    cmderr	[generate.py] 2020-12-09 02:54:29 INFO autorest --version=3.0.6327 --use=@autorest/java@4.0.5 --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/sql/azure-resourcemanager-sql-generated --java.namespace=com.azure.resourcemanager.sql.generated  --package-version=1.0.0-beta.1 --java --pipeline.modelerfour.additional-checks=false --pipeline.modelerfour.lenient-model-deduplication=true --pipeline.modelerfour.flatten-payloads=false --azure-arm --verbose --sdk-integration --fluent=lite --java.fluent=lite --java.license-header=MICROSOFT_MIT_SMALL ../azure-rest-api-specs/specification/sql/resource-manager/readme.md
    cmderr	[generate.py] 2020-12-09 02:58:53 INFO [CI][Success] Write to ci.yml
    cmderr	[generate.py] 2020-12-09 02:58:53 INFO [POM][Process] dealing with pom.xml
    cmderr	[generate.py] 2020-12-09 02:58:53 INFO [POM][Success] Write to pom.xml
    cmderr	[generate.py] 2020-12-09 02:58:53 INFO [POM][Process] dealing with root pom
    cmderr	[generate.py] 2020-12-09 02:58:53 INFO [POM][Success] Write to root pom
    cmderr	[generate.py] WARNING: An illegal reflective access operation has occurred
    cmderr	[generate.py] WARNING: Illegal reflective access by org.codehaus.groovy.reflection.ReflectionUtils (file:/home/vsts/.m2/repository/org/codehaus/groovy/groovy/3.0.0-beta-2/groovy-3.0.0-beta-2-indy.jar) to method java.util.Collections$UnmodifiableCollection.toString()
    cmderr	[generate.py] WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.ReflectionUtils
    cmderr	[generate.py] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    cmderr	[generate.py] WARNING: All illegal access operations will be denied in a future release
  • ️✔️azure-resourcemanager-sql-generated [View full logs]  [Release SDK Changes]
    cmderr	[Inst] 2020-12-09 03:04:13 DEBUG Got artifact_id: azure-resourcemanager-sql-generated
    cmderr	[Inst] 2020-12-09 03:04:13 DEBUG Got artifact: pom.xml
    cmderr	[Inst] 2020-12-09 03:04:13 DEBUG Got artifact: azure-resourcemanager-sql-generated-1.0.0-beta.1-sources.jar
    cmderr	[Inst] 2020-12-09 03:04:13 DEBUG Got artifact: azure-resourcemanager-sql-generated-1.0.0-beta.1-javadoc.jar
    cmderr	[Inst] 2020-12-09 03:04:13 DEBUG Got artifact: azure-resourcemanager-sql-generated-1.0.0-beta.1.jar
    cmderr	[Inst] 2020-12-09 03:04:13 DEBUG Match jar package: azure-resourcemanager-sql-generated-1.0.0-beta.1.jar
    cmderr	[Inst] 2020-12-09 03:04:13 DEBUG output: {"full": "curl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/11960/azure-sdk-for-java/azure-resourcemanager-sql-generated/azure-resourcemanager-sql-generated-1.0.0-beta.1.jar\" -o azure-resourcemanager-sql-generated-1.0.0-beta.1.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-sql-generated -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-sql-generated-1.0.0-beta.1.jar -Dpackaging=jar -DgeneratePom=true\n"}
️️✔️ azure-sdk-for-python succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 0b03b72. SDK Automation 14.0.0
    warn	Skip initScript due to not configured
    command	npx n 12
    command	python3 -m venv venv
    command	pip install --upgrade setuptools wheel pip
    command	pip install pathlib jinja2 msrestazure
    command	autorest --version=V2 --use=@microsoft.azure/autorest.python@~4.0.71 --python --python-mode=update --multiapi --keep-version-file --no-async --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk ../azure-rest-api-specs/specification/sql/resource-manager/readme.md
  • ️✔️azure-mgmt-sql [View full logs]  [Release SDK Changes] Breaking Change Detected
    cmderr	[buildConf] INFO:packaging_tools:Building template azure-mgmt-sql
    cmderr	[buildConf] INFO:packaging_tools.conf:Skipping default conf since the file exists
    cmderr	[buildConf] INFO:packaging_tools:Skipping CHANGELOG.md template, since a previous one was found
    cmderr	[buildConf] INFO:packaging_tools:Template done azure-mgmt-sql
    cmderr	[changelogSetup] WARNING: Skipping azure-nspkg as it is not installed.
    cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.sql
    cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.sql
    cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.sql
    cmderr	[changelogReport] INFO:__main__:Report written to sdk/sql/azure-mgmt-sql/code_reports/latest/report.json
    cmderr	[changelogReportLatest] INFO:__main__:Download versions of azure-mgmt-sql on PyPI
    cmderr	[changelogReportLatest] INFO:__main__:Got ['0.1.0', '0.2.0', '0.3.0', '0.3.1', '0.3.2', '0.3.3', '0.4.0', '0.5.0', '0.5.1', '0.5.2', '0.5.3', '0.6.0', '0.7.0', '0.7.1', '0.8.0', '0.8.1', '0.8.2', '0.8.3', '0.8.4', '0.8.5', '0.8.6', '0.9.0', '0.9.1', '0.10.0', '0.11.0', '0.12.0', '0.13.0', '0.14.0', '0.15.0', '0.16.0', '0.17.0', '0.18.0', '0.19.0', '0.20.0', '0.21.0', '0.22.0', '0.23.0', '0.24.0', '1.0.0b1', '1.0.0']
    cmderr	[changelogReportLatest] INFO:__main__:Only keep last PyPI version
    cmderr	[changelogReportLatest] INFO:__main__:Installing version 0.24.0 of azure-mgmt-sql in a venv
    cmderr	[changelogReportLatest] Cache entry deserialization failed, entry ignored
    cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.sql
    cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.sql
    cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.sql
    cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/sql/azure-mgmt-sql/code_reports/0.24.0/report.json
    cmdout	[Changelog] Size of delta 1.414% size of original (original: 327027 chars, delta: 4625 chars)
    cmdout	[Changelog] **Features**
    cmdout	[Changelog]   - Added operation DatabasesOperations.import_method
    cmdout	[Changelog]   - Added operation DatabasesOperations.import_database
    cmdout	[Changelog]   - Added operation DatabasesOperations.list_inaccessible_by_server
    cmdout	[Changelog]   - Added operation group ServerDevOpsAuditSettingsOperations
    cmdout	[Changelog] **Breaking changes**
    cmdout	[Changelog]   - Removed operation ServersOperations.import_database
    cmdout	[Changelog]   - Removed operation group ImportExportOperations
    warn	Breaking change found in changelog
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 0b03b72. 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/sql/resource-manager/readme.md
  • ️✔️@azure/arm-sql [View full logs]  [Release 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/sqlManagementClient.js → ./dist/arm-sql.js...
    cmderr	[npmPack] created ./dist/arm-sql.js in 2.2s
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 0b03b72. SDK Automation 14.0.0
    command	sh ./initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
    command	go run ./tools/generator/main.go ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
  • ️✔️preview/sql/mgmt/v3.0/sql [View full logs]  [Release SDK Changes] Breaking Change Detected
    Only show 20 items here, please refer to log for details.
    info	[Changelog] 1. PrimaryAggregationType.Maximum
    info	[Changelog] 1. PrimaryAggregationType.Minimum
    info	[Changelog] 1. PrimaryAggregationType.Total
    info	[Changelog]
    info	[Changelog] ## Signature Changes
    info	[Changelog]
    info	[Changelog] ### Const Types
    info	[Changelog]
    info	[Changelog] 1. None changed type from PrimaryAggregationType to IdentityType
    info	[Changelog]
    info	[Changelog] ### New Constants
    info	[Changelog]
    info	[Changelog] 1. IdentityType.UserAssigned
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeAverage
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeCount
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeMaximum
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeMinimum
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeNone
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeTotal
    info	[Changelog]
  • ️✔️preview/sql/mgmt/2018-06-01-preview/sql [View full logs]  [Release SDK Changes] Breaking Change Detected
    Only show 20 items here, please refer to log for details.
    info	[Changelog] 1. SensitivityLabelRank.Critical
    info	[Changelog] 1. SensitivityLabelRank.High
    info	[Changelog] 1. SensitivityLabelRank.Low
    info	[Changelog] 1. SensitivityLabelRank.Medium
    info	[Changelog]
    info	[Changelog] ## Signature Changes
    info	[Changelog]
    info	[Changelog] ### Const Types
    info	[Changelog]
    info	[Changelog] 1. None changed type from SensitivityLabelRank to IdentityType
    info	[Changelog]
    info	[Changelog] ### New Constants
    info	[Changelog]
    info	[Changelog] 1. IdentityType.UserAssigned
    info	[Changelog] 1. SensitivityLabelRank.SensitivityLabelRankCritical
    info	[Changelog] 1. SensitivityLabelRank.SensitivityLabelRankHigh
    info	[Changelog] 1. SensitivityLabelRank.SensitivityLabelRankLow
    info	[Changelog] 1. SensitivityLabelRank.SensitivityLabelRankMedium
    info	[Changelog] 1. SensitivityLabelRank.SensitivityLabelRankNone
    info	[Changelog]
  • ️✔️preview/sql/mgmt/2017-10-01-preview/sql [View full logs]  [Release SDK Changes]
    info	[Changelog] No exported changes
  • ️✔️preview/sql/mgmt/2017-03-01-preview/sql [View full logs]  [Release SDK Changes] Breaking Change Detected
    Only show 20 items here, please refer to log for details.
    info	[Changelog] ### Const Types
    info	[Changelog]
    info	[Changelog] 1. Count changed type from PrimaryAggregationType to UnitDefinitionType
    info	[Changelog] 1. None changed type from PrimaryAggregationType to IdentityType
    info	[Changelog]
    info	[Changelog] ### New Constants
    info	[Changelog]
    info	[Changelog] 1. IdentityType.UserAssigned
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeAverage
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeCount
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeMaximum
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeMinimum
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeNone
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeTotal
    info	[Changelog] 1. UnitDefinitionType.Bytes
    info	[Changelog] 1. UnitDefinitionType.BytesPerSecond
    info	[Changelog] 1. UnitDefinitionType.CountPerSecond
    info	[Changelog] 1. UnitDefinitionType.Percent
    info	[Changelog] 1. UnitDefinitionType.Seconds
    info	[Changelog]
  • ️✔️preview/sql/mgmt/2015-05-01-preview/sql [View full logs]  [Release SDK Changes] Breaking Change Detected
    Only show 20 items here, please refer to log for details.
    info	[Changelog] ### Const Types
    info	[Changelog]
    info	[Changelog] 1. Count changed type from PrimaryAggregationType to UnitDefinitionType
    info	[Changelog] 1. None changed type from PrimaryAggregationType to IdentityType
    info	[Changelog]
    info	[Changelog] ### New Constants
    info	[Changelog]
    info	[Changelog] 1. IdentityType.UserAssigned
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeAverage
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeCount
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeMaximum
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeMinimum
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeNone
    info	[Changelog] 1. PrimaryAggregationType.PrimaryAggregationTypeTotal
    info	[Changelog] 1. UnitDefinitionType.Bytes
    info	[Changelog] 1. UnitDefinitionType.BytesPerSecond
    info	[Changelog] 1. UnitDefinitionType.CountPerSecond
    info	[Changelog] 1. UnitDefinitionType.Percent
    info	[Changelog] 1. UnitDefinitionType.Seconds
    info	[Changelog]
  • ️✔️sql/mgmt/2014-04-01/sql [View full logs]  [Release SDK Changes]
    info	[Changelog] No exported changes
️❌ azure-sdk-for-ruby failed [Detail]
  • Failed [Logs]Release - Generate from 0b03b72. SDK Automation 14.0.0
    warn	Skip initScript due to not configured
    command	autorest --version=preview --use=@microsoft.azure/autorest.ruby@preview --ruby --multiapi --ruby-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-ruby ../azure-rest-api-specs/specification/sql/resource-manager/readme.md
    cmderr	[Autorest] realpath(): Permission denied
    cmderr	[Autorest] realpath(): Permission denied
    cmderr	[Autorest] realpath(): Permission denied
    cmderr	[Autorest] /home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/pipeline.js - FAILURE {}
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Error: Plugin modeler reported failure.
    cmderr	[Autorest]     at /home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/plugins/external.js:26:19
    cmderr	[Autorest]     at async ScheduleNode (/home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/pipeline.js:280:33)
    cmderr	[Autorest] (Use `node --trace-warnings ...` to show where the warning was created)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 77)
    cmderr	[Autorest] (node:2690) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Error: Plugin modeler reported failure.
    cmderr	[Autorest]     at /home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/plugins/external.js:26:19
    cmderr	[Autorest]     at async ScheduleNode (/home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/pipeline.js:280:33)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 78)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Error: Plugin modeler reported failure.
    cmderr	[Autorest]     at /home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/plugins/external.js:26:19
    cmderr	[Autorest]     at async ScheduleNode (/home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/pipeline.js:280:33)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 79)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Error: Plugin modeler reported failure.
    cmderr	[Autorest]     at /home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/plugins/external.js:26:19
    cmderr	[Autorest]     at async ScheduleNode (/home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/pipeline.js:280:33)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 80)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Error: Plugin modeler reported failure.
    cmderr	[Autorest]     at /home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/plugins/external.js:26:19
    cmderr	[Autorest]     at async ScheduleNode (/home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/pipeline.js:280:33)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 81)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Error: Plugin modeler reported failure.
    cmderr	[Autorest]     at /home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/plugins/external.js:26:19
    cmderr	[Autorest]     at async ScheduleNode (/home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/pipeline.js:280:33)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 82)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Error: Plugin modeler reported failure.
    cmderr	[Autorest]     at /home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/plugins/external.js:26:19
    cmderr	[Autorest]     at async ScheduleNode (/home/vsts/.autorest/@autorest_core@3.0.6112/node_modules/@autorest/core/dist/lib/pipeline/pipeline.js:280:33)
    cmderr	[Autorest] (node:2690) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 83)
    cmderr	[Autorest] Failure during batch task - {"tag":"package-pure-2014-04"} -- Error: Plugin modeler reported failure..
    cmderr	[Autorest]   Error: Plugin modeler reported failure.
    error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-ruby]: autorest
    warn	Skip package processing as generation is failed
️️✔️ azure-resource-manager-schemas succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 0b03b72. Schema Automation 14.0.0
    warn	Skip initScript due to not configured
    command	npx n 12
    command	autorest --use=@autorest/azureresourceschema@3.0.92 --version=3.0.6320 --azureresourceschema --multiapi --title=none --pass-thru:subset-reducer --azureresourceschema-folder=/home/vsts/work/1/s/azure-resource-manager-schemas/azure-resource-manager-schemas ../../azure-rest-api-specs/specification/sql/resource-manager/readme.md
    cmdout	[Autorest] WARNING: Found duplicate definition for type Microsoft.Sql/servers/firewallRules in scope ResourceGroup
  • cmderr	[resource-manager] node-pre-gyp
    cmderr	[resource-manager] WARN Using request for node-pre-gyp https download
    cmderr	[resource-manager]  template-schema-validation-tools@1.0.0 No repository field.
    cmderr	[resource-manager]  SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
    cmderr	[resource-manager] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
️🔄[Staging] ApiDocPreview inProgress [Detail]
Posted by Swagger Pipeline | How to fix these errors?

@ericshape ericshape changed the title update ResourceIdentity reference Update ResourceIdentity reference and remove ManagedInstanceMetric Dec 4, 2020
@openapi-workflow-bot
Copy link

Hi @ericshape, 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 think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ma/swaggerfeedback.

@jianyexi
Copy link
Contributor

jianyexi commented Dec 7, 2020

@PhoenixHe-msft could you have a look at the failure of SDK azure-sdk-for-java

@PhoenixHe-NV
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@ChenTanyi
Copy link
Contributor

The Java automation is not blocking the PR merge. And it shows in log that the Java generation is successful.

@akning-ms
Copy link
Contributor

Hi @ericschung, can I know when ManagedInstanceMetric is added? in which PR?

@ericshape
Copy link
Contributor Author

ericshape commented Dec 8, 2020

Hi @ericschung, can I know when ManagedInstanceMetric is added? in which PR?

@akning-ms
it was just added in 2020-08-01-preview #10994 two weeks ago. And we have not added it into any version of SDK and any public doc. Thus, we are fine to remove it.
For your reference, the blame link is here: https://github.com/Azure/azure-rest-api-specs/blame/33b5733cc82028c9ce6e2c9ec9f28e7f763098f7/specification/sql/resource-manager/Microsoft.Sql/preview/2020-08-01-preview/examples/ManagedInstancesListMetrics.json

BTW, you might tag the wrong ID LOL

@ericshape
Copy link
Contributor Author

@akning-ms
I have addressed your comments and @jamestao also approved this PR. For the breaking changes, I have explained them in the beginning of the PR description.
Can you help us to merge this PR? Thanks!

BTW, the upcoming PR is ready: #11840 and it passed all the checks. Can you help to take a look?
In #11840, I cherry-picked the changes from this PR #11960 to make it through. I will rebase it once #11960 is merged.

@openapi-workflow-bot
Copy link

Hi, @ericshape 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

    @akning-ms akning-ms added Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 and removed BreakingChangeReviewRequired labels Dec 9, 2020
    @akning-ms akning-ms merged commit 0b03b72 into Azure:master Dec 9, 2020
    DeMale pushed a commit to DeMale/azure-rest-api-specs that referenced this pull request Dec 11, 2020
    …zure#11960)
    
    * update ResourceIdentity reference
    
    * Change IdentityTypeWithNone to IdentityType
    giromm2ms pushed a commit to giromm2ms/azure-rest-api-specs that referenced this pull request Dec 20, 2020
    …zure#11960)
    
    * update ResourceIdentity reference
    
    * Change IdentityTypeWithNone to IdentityType
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 CI-BreakingChange-Go CI-BreakingChange-Python
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    6 participants