-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Reverting the schedule.json response code for Created to 201 as that … #3312
Reverting the schedule.json response code for Created to 201 as that … #3312
Conversation
…conforms with our Web Service API
Automation for azure-sdk-for-javaNothing to generate for azure-sdk-for-java |
Automation for azure-sdk-for-goEncountered a Subprocess error: (azure-sdk-for-go)
Command: ['/usr/local/bin/autorest', '/tmp/tmpg4f3glua/rest/specification/automation/resource-manager/readme.md', '--go', '--go-sdk-folder=/tmp/tmpg4f3glua/src/github.com/Azure/azure-sdk-for-go', '--multiapi', '--use=@microsoft.azure/autorest.go@~2.1.100', '--use-onever', '--verbose'] AutoRest code generation utility [version: 2.0.4280; node: v7.10.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4280)
Loading AutoRest extension '@microsoft.azure/autorest.go' (~2.1.100->2.1.104)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.38->2.3.38)
Processing batch task - {"tag":"package-2015-10"} .
ERROR (Fatal/DuplicateModelCollsion): Duplicated model name with non-identical definitions
- file:///tmp/tmpg4f3glua/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json:1056:4 ($.definitions.JobStreamProperties)
- file:///tmp/tmpg4f3glua/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json:780:4 ($.definitions.JobStreamProperties)
- file:///tmp/tmpg4f3glua/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json:561:4 ($.definitions.JobStreamProperties)
Process() cancelled due to exception : Cancellation requested.
Failure during batch task - {"tag":"package-2015-10"} -- Cancellation requested..
Cancellation requested. |
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
Automation for azure-sdk-for-rubyEncountered a Subprocess error: (azure-sdk-for-ruby)
Command: ['/usr/local/bin/autorest', '/tmp/tmp48zy5whu/rest/specification/automation/resource-manager/readme.md', '--multiapi', '--ruby', '--ruby-sdks-folder=/tmp/tmp48zy5whu/sdk', '--use=@microsoft.azure/autorest.ruby@3.0.20', '--version=preview'] AutoRest code generation utility [version: 2.0.4280; node: v7.10.1]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4280)
Loading AutoRest extension '@microsoft.azure/autorest.ruby' (3.0.20->3.0.20)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.1.22->2.1.22)
Processing batch task - {"tag":"package-2015-10"} .
ERROR (Fatal/DuplicateModelCollsion): Duplicated model name with non-identical definitions
- file:///tmp/tmp48zy5whu/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/runbook.json:1056:4 ($.definitions.JobStreamProperties)
- file:///tmp/tmp48zy5whu/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/job.json:780:4 ($.definitions.JobStreamProperties)
- file:///tmp/tmp48zy5whu/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2015-10-31/dscCompilationJob.json:561:4 ($.definitions.JobStreamProperties)
Process() cancelled due to exception : Cancellation requested.
Failure during batch task - {"tag":"package-2015-10"} -- Cancellation requested..
Cancellation requested. |
Automation for azure-sdk-for-nodeThe initial PR has been merged into your service PR: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks @DeveloperTommy! |
Hi Anna, Thanks for pointing that out. This change is somewhat urgent as it is blocking a recent large refactoring that we have done for our Swagger spec. My team does not own that asset; however, I'll note to our point of contact that we should fix this. Thanks, |
Hi @annatisch - To resolve the "duplicate model definition for "JobStreamProperties"", I recently did the whole refactoring of our specs - #3190.
If you go to out specs, you'll find common definitions for really common things and the individual definitions have been refactored.
How should we change our readme.md to fix the issue with Go and Python? |
Thanks @vrdmr - I'm guessing in the earlier refactor the definitions for
There are only two minor corrections that would be needed:
|
Thanks @annatisch. I'll take a look at the suggestions and do them. In the meantime, could you please approve this PR? This is urgent and is currently blocking our SDK release which we need for Powershell cmdlet work. |
@vrdmr - I can add the commit to this PR if you advise how to resolve the two conflicts identified above. |
@annatisch - We wanted to make multiple changes - add a preview tag to Go and Python SDKs. And drop the tag 2015-10 as this is not being used and we have moved to the 2018 tag. |
@vrdmr could you define more precisely "this is not being used". Do you say the endpoint does not exist anymore and is not reachable? Or do you say you don't recommend it anymore? The contract with multi-api versioning packages in Go, Ruby and Python (and soon more language by the way), is that we ship all Swagger that matches a real end-point. Meaning customers can decide without installing an old version of SDK what Api version they want. Not shipping an api-version already shipped is then not an option, since it might break customers. If we merge this PR as-is, this means that you're telling Go/Ruby/Python SDK customers that they can't get the content of this PR and all latest fixes and updates, because you prioritized Powershell users. Being that the change needed is faster to implement that the time we spent to discuss it, I think we should consider making everybody happy and not just Powershell :) Edit: My biggest fear when a sentence contains "I'll do it later" is that it becomes "never" because we all have busy life and work. If you commit to fix old api-versions asap after this PR is released, I think Go/Ruby/Python can wait a few days. It's not that critical to release everything the exact same day if the waiting gap is short. Adding @jhendrixMSFT for Go and @sarangan12 for Ruby FYI that Go/Ruby might be not in sync with C#/Powershell once this is merged. |
@annatisch I discussed with @vrdmr off-Github, please merge the PR without considering the Autorest failure for now to unlock him. The fix PR should be here by next Monday. |
…conforms with our Web Service API
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-version
in the path should match theapi-version
in the spec).Quality of Swagger