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

[Public-Preview] Review request for Microsoft.Migrate to add version … #9883

Merged
merged 3 commits into from
Aug 5, 2020

Conversation

innosam
Copy link
Contributor

@innosam innosam commented Jun 18, 2020

Private-preview PR request: https://github.com/Azure/azure-rest-api-specs-pr/pull/968
Status: ARMSignedOff

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

Contribution checklist:

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

ARM API Review Checklist

  • Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
    • adding/removing APIs.
    • adding/removing properties.
    • adding/removing API-version.
    • adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

  • If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
    Please follow the link to find more details on API review process.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Jun 18, 2020

[Staging] Swagger Validation Report

️✔️BreakingChange [Detail]
 There are no breaking changes. 
️✔️LintDiff [Detail]
 Validation passes for LintDiff. 
️✔️Avocado [Detail]
 Validation passes for Avocado. 
Posted by Swagger Pipeline | How to fix these errors?

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Jun 18, 2020

azure-sdk-for-go - Release

failed [Logs] [Expand Details]
  • Generate from d20f294 with merge commit 0085d3c. SDK Automation 13.0.17.20200619.4
    [AutoRest] FATAL: System.InvalidOperationException: namespace can only contains lower case letters, numbers and underscore
    [AutoRest]    at AutoRest.Go.CodeGeneratorGo.d__7.MoveNext() in /home/vsts/work/1/s/src/CodeGeneratorGo.cs:line 58
    [AutoRest] --- End of stack trace from previous location where exception was thrown ---
    [AutoRest]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    [AutoRest]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [AutoRest]    at AutoRest.Go.Program.d__3.MoveNext() in /home/vsts/work/1/s/src/Program.cs:line 107
    [AutoRest] --- End of stack trace from previous location where exception was thrown ---
    [AutoRest]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    [AutoRest]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [AutoRest]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    [AutoRest]    at NewPlugin.d__20.MoveNext() in /home/vsts/work/1/s/autorest.common/src/Plugins/NewPlugin.cs:line 163
    [AutoRest] FATAL: go/generate - FAILED
    [AutoRest] FATAL: Error: Plugin go reported failure.
    [AutoRest]   Error: Plugin go reported failure.
    Failed to run autorest.
    Error: /z/node_modules/.bin/autorest [email protected]/autorest.go@~2.1.144 --go --verbose --multiapi --use-onever --preview-chk --version=previous --go-sdk-folder=/z/work/src/github.com/Azure/azure-sdk-for-go /z/work/azure-rest-api-specs/specification/regionmove/resource-manager/readme.md FATAL: System.InvalidOperationException: namespace can only contains lower case letters, numbers and underscore
       at AutoRest.Go.CodeGeneratorGo.d__7.MoveNext() in /home/vsts/work/1/s/src/CodeGeneratorGo.cs:line 58
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at AutoRest.Go.Program.d__3.MoveNext() in /home/vsts/work/1/s/src/Program.cs:line 107
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at NewPlugin.d__20.MoveNext() in /home/vsts/work/1/s/autorest.common/src/Plugins/NewPlugin.cs:line 163
    FATAL: go/generate - FAILED
    FATAL: Error: Plugin go reported failure.
      Error: Plugin go reported failure.
    , {} 
    Failed to find any diff after autorest so no changed packages was found.

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Jun 18, 2020

Azure CLI Extension Generation - Release

No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Jun 18, 2020

azure-sdk-for-net - Release

No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Jun 18, 2020

azure-sdk-for-js - Release

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from d20f294 with merge commit 0085d3c. SDK Automation 13.0.17.20200619.4
    Failed to find any diff after autorest so no changed packages was found.

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Jun 18, 2020

azure-sdk-for-python - Release

⚠️ warning [Logs] [Expand Details]
  • ⚠️ Generate from d20f294 with merge commit 0085d3c. SDK Automation 13.0.17.20200619.4
    Failed to find any changed packages. Please check the changed file list.
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/__init__.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/_configuration.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/_region_move_service_api.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/models/__init__.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/models/_models.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/models/_models_py3.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/models/_paged_models.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/models/_region_move_service_api_enums.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/operations/__init__.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/operations/_move_collection_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/operations/_move_collections_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/operations/_move_resources_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/operations/_operations_discovery_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/operations/_unresolved_dependencies_operations.py
    /z/work/azure-sdk-for-python/sdk/azure-mgmt/regionmove/version.py

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Jun 18, 2020

Trenton Generation - Release

No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Jun 18, 2020

azure-sdk-for-java - Release

failed [Logs] [Expand Details]
  • Generate from d20f294 with merge commit 0085d3c. SDK Automation 13.0.17.20200619.4
    [AutoRest] FATAL: System.Exception: Duplicate File Generation: src/main/java//implementation/MoveCollectionsImpl.java
    [AutoRest]    at AutoRest.Core.CodeGenerator.d__13.MoveNext() in /home/vsts/work/1/s/autorest.common/src/CodeGenerator.cs:line 151
    [AutoRest] --- End of stack trace from previous location where exception was thrown ---
    [AutoRest]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    [AutoRest]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [AutoRest]    at AutoRest.Core.CodeGenerator.d__12.MoveNext() in /home/vsts/work/1/s/autorest.common/src/CodeGenerator.cs:line 121
    [AutoRest] --- End of stack trace from previous location where exception was thrown ---
    [AutoRest]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    [AutoRest]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [AutoRest]    at AutoRest.Java.CodeGeneratorJv.d__10.MoveNext() in /home/vsts/work/1/s/src/vanilla/CodeGeneratorJv.cs:line 58
    [AutoRest] --- End of stack trace from previous location where exception was thrown ---
    [AutoRest]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    [AutoRest]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [AutoRest]    at AutoRest.Java.Program.d__3.MoveNext() in /home/vsts/work/1/s/src/Program.cs:line 114
    [AutoRest] --- End of stack trace from previous location where exception was thrown ---
    [AutoRest]    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    [AutoRest]    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    [AutoRest]    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    [AutoRest]    at NewPlugin.d__20.MoveNext() in /home/vsts/work/1/s/autorest.common/src/Plugins/NewPlugin.cs:line 163
    [AutoRest] FATAL: java/generate - FAILED
    [AutoRest] FATAL: Error: Plugin java reported failure.
    [AutoRest]   Error: Plugin java reported failure.
    Failed to run autorest.
    Error: /z/node_modules/.bin/autorest --version=V2 --java --verbose --multiapi [email protected]/autorest.java@preview --azure-libraries-for-java-folder=/z/work/azure-sdk-for-java /z/work/azure-rest-api-specs/specification/regionmove/resource-manager/readme.md FATAL: System.Exception: Duplicate File Generation: src/main/java//implementation/MoveCollectionsImpl.java
       at AutoRest.Core.CodeGenerator.d__13.MoveNext() in /home/vsts/work/1/s/autorest.common/src/CodeGenerator.cs:line 151
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at AutoRest.Core.CodeGenerator.d__12.MoveNext() in /home/vsts/work/1/s/autorest.common/src/CodeGenerator.cs:line 121
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at AutoRest.Java.CodeGeneratorJv.d__10.MoveNext() in /home/vsts/work/1/s/src/vanilla/CodeGeneratorJv.cs:line 58
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at AutoRest.Java.Program.d__3.MoveNext() in /home/vsts/work/1/s/src/Program.cs:line 114
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at NewPlugin.d__20.MoveNext() in /home/vsts/work/1/s/autorest.common/src/Plugins/NewPlugin.cs:line 163
    FATAL: java/generate - FAILED
    FATAL: Error: Plugin java reported failure.
      Error: Plugin java reported failure.
    , {} 
    Failed to find any diff after autorest so no changed packages was found.

@innosam innosam changed the title [Public-Preview] Review request for Microsoft.Migrate to add version … [Public-Preview][Do not merge] Review request for Microsoft.Migrate to add version … Jun 18, 2020
@innosam innosam changed the title [Public-Preview][Do not merge] Review request for Microsoft.Migrate to add version … [Public-Preview] Review request for Microsoft.Migrate to add version … Jun 18, 2020
@innosam innosam added WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed Do Not Merge WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review labels Jun 19, 2020
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@openapi-sdkautomation
Copy link

openapi-sdkautomation bot commented Jun 26, 2020

azure-sdk-for-python-track2 - Release

No readme.md specification configuration files were found that are associated with the files modified in this pull request, or swagger_to_sdk section in readme.md is not configured

@innosam innosam force-pushed the hsingh/regionmovepublicpreview branch from b3a19c9 to 5a6db0b Compare June 26, 2020 04:58
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@innosam innosam force-pushed the hsingh/regionmovepublicpreview branch from 5a6db0b to 2b75111 Compare June 26, 2020 05:07
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@innosam innosam force-pushed the hsingh/regionmovepublicpreview branch from 2b75111 to 060c79b Compare June 26, 2020 05:40
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@innosam innosam force-pushed the hsingh/regionmovepublicpreview branch from 060c79b to 5633341 Compare June 26, 2020 05:44
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

},
"MoveState": {
"description": "Defines the MoveResource states.",
"enum": [
Copy link
Member

Choose a reason for hiding this comment

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

Will you consider using x-ms-enum (https://github.com/Azure/autorest/tree/master/docs/extensions#x-ms-enum) for better code generation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, i have added this. This is an additional information on the enum and as I have understood does not require any change from service.

@@ -0,0 +1,79 @@
# regionmove
Copy link
Member

Choose a reason for hiding this comment

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

why do you use a separate location for the readme files?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey, when we raised this PR earlier for private preview, these files were auto-generated by HUB.
However, what is the location preferred for readme files?

@pilor pilor added ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Jul 1, 2020
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@innosam innosam force-pushed the hsingh/regionmovepublicpreview branch from 5c37328 to cb04c75 Compare July 9, 2020 07:20
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@innosam innosam requested review from pilor and lirenhe July 9, 2020 07:32
}
],
"responses": {
"200": {
Copy link
Contributor

Choose a reason for hiding this comment

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

this operation is marked as long running but does not have a long running response code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed it as the operation is not long running, thanks.

}
],
"responses": {
"200": {
Copy link
Contributor

Choose a reason for hiding this comment

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

patch async requires 202

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed the long running from PUT/PATCH of move collection.

}
},
"x-ms-pageable": {
"nextLinkName": null
Copy link
Contributor

Choose a reason for hiding this comment

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

you don't control whether there is a nextLink on subscription and RG Level GETs for tracked resources. It must be supported because ARM may return it for you if one of your regional endpoints does not return a response in time or returns a retryable error code

Copy link
Contributor Author

@innosam innosam Jul 27, 2020

Choose a reason for hiding this comment

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

Got it, i have added the "nextLink" in both RG level and subscription level GETs.

@innosam innosam force-pushed the hsingh/regionmovepublicpreview branch from cb04c75 to d20f294 Compare July 27, 2020 08:03
@innosam innosam requested a review from pilor July 27, 2020 08:03
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@innosam innosam added ARMReviewInProgress WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required and removed ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review labels Jul 30, 2020
@pilor pilor added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed ARMReviewInProgress WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required labels Aug 3, 2020
@innosam innosam added DoNotMerge <valid label in PR review process> use to hold merge after approval and removed DoNotMerge <valid label in PR review process> use to hold merge after approval labels Aug 4, 2020
@lirenhe lirenhe merged commit 0085d3c into Azure:master Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants