-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Moved the Publish method from runbookDraft to Runbook. #3325
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
Conversation
Automation for azure-sdk-for-javaNothing to generate for azure-sdk-for-java |
Automation for azure-sdk-for-pythonEncountered a Subprocess error: (azure-sdk-for-python)
Command: ['/usr/local/bin/autorest', '/tmp/tmp38mkjt8j/rest/specification/automation/resource-manager/readme.md', '--multiapi', '--python', '--python-mode=update', '--python-sdks-folder=/tmp/tmp38mkjt8j/sdk', '[email protected]/autorest.python@~3.0.56', '--version=preview'] AutoRest code generation utility [version: 2.0.4283; node: v8.11.3]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/root/.autorest/@[email protected]/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4283)
Loading AutoRest extension '@microsoft.azure/autorest.python' (~3.0.56->3.0.58)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.44->2.3.44)
ERROR (Fatal/DuplicateModelCollsion): Duplicated model name with non-identical definitions
- file:///tmp/tmp38mkjt8j/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json:1056:4 ($.definitions.JobStreamProperties)
- file:///tmp/tmp38mkjt8j/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json:546:4 ($.definitions.JobStreamProperties)
- file:///tmp/tmp38mkjt8j/rest/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/job.json:627:4 ($.definitions.JobStreamProperties)
Process() cancelled due to exception : Cancellation requested.
Cancellation requested. |
Automation for azure-sdk-for-goEncountered a Subprocess error: (azure-sdk-for-go)
Command: ['/usr/local/bin/autorest', '/tmp/tmp_co_y2qj/rest/specification/automation/resource-manager/readme.md', '--go', '--go-sdk-folder=/tmp/tmp_co_y2qj/src/github.com/Azure/azure-sdk-for-go', '--multiapi', '[email protected]/autorest.go@~2.1.110', '--use-onever', '--verbose'] AutoRest code generation utility [version: 2.0.4283; node: v8.11.3]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/root/.autorest/@[email protected]/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4283)
Loading AutoRest extension '@microsoft.azure/autorest.go' (~2.1.110->2.1.110)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.38->2.3.38)
Processing batch task - {"tag":"package-2015-10"} .
Processing batch task - {"tag":"package-2017-05-preview"} .
Processing batch task - {"tag":"package-2018-01-preview"} .
Processing batch task - {"tag":"package-2018-06-preview"} .
ERROR (Fatal/DuplicateModelCollsion): Duplicated model name with non-identical definitions
- file:///tmp/tmp_co_y2qj/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json:1056:4 ($.definitions.JobStreamProperties)
- file:///tmp/tmp_co_y2qj/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json:546:4 ($.definitions.JobStreamProperties)
- file:///tmp/tmp_co_y2qj/rest/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/job.json:627:4 ($.definitions.JobStreamProperties)
Process() cancelled due to exception : Cancellation requested.
Failure during batch task - {"tag":"package-2018-06-preview"} -- Cancellation requested..
Cancellation requested. |
Automation for azure-sdk-for-rubyA PR has been created for you: |
Automation for azure-sdk-for-nodeEncountered a Subprocess error: (azure-sdk-for-node)
Command: ['/usr/local/bin/autorest', '/tmp/tmp7yh6v7f1/rest/specification/automation/resource-manager/readme.md', '--license-header=MICROSOFT_MIT_NO_VERSION', '--node-sdks-folder=/tmp/tmp7yh6v7f1/sdk', '--nodejs', '[email protected]/autorest.nodejs@^2.1.43'] AutoRest code generation utility [version: 2.0.4283; node: v8.11.3]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/root/.autorest/@[email protected]/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4283)
Loading AutoRest extension '@microsoft.azure/autorest.nodejs' (^2.1.43->2.1.79)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.44->2.3.44)
ERROR (Fatal/DuplicateModelCollsion): Duplicated model name with non-identical definitions
- file:///tmp/tmp7yh6v7f1/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2018-06-30/runbook.json:1056:4 ($.definitions.JobStreamProperties)
- file:///tmp/tmp7yh6v7f1/rest/specification/automation/resource-manager/Microsoft.Automation/stable/2018-01-15/dscCompilationJob.json:546:4 ($.definitions.JobStreamProperties)
- file:///tmp/tmp7yh6v7f1/rest/specification/automation/resource-manager/Microsoft.Automation/preview/2017-05-15-preview/job.json:627:4 ($.definitions.JobStreamProperties)
Process() cancelled due to exception : Cancellation requested.
Cancellation requested. |
|
Martin, can you please review? Thanks. |
|
@marstr Please review |
| "modelAsString": true | ||
| } | ||
| }, | ||
| "x-ms-parameter-location": "method" |
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.
Heads up, I believe that will make this a breaking change inside of an API Version marked stable.
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.
Hi @marstr - The SDK hasn't been released and we are correcting this parameter as this should be a method level parameter for the NodeCountInformation call.
| ], | ||
| "x-ms-enum": { | ||
| "name": "HttpStatusCode", | ||
| "modelAsString": false |
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.
We recommend using "modelAsString": true to prevent breaking changes in future if you need to add a supported value.
|
@ravbhatnagar Could you please take a look at the PR. |
marstr
left a comment
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.
Looks like both some linter and model errors have popped up, and there are now conflicts with the master branch. Please take a look here:
https://travis-ci.org/Azure/azure-rest-api-specs/jobs/401942873#L775
|
@khughes66 - Can you check |
|
Looks good. The change is to expose publish action on runbooks instead of draft. This change was discussed in person with ARM. |
|
I'm going to be on vacation until Monday, July 30th. If this PR needs attention in the interim, please contact my boss, @salameer. |
|
Can one of the admins verify this patch? |
|
@marstr When running the autorest --python locally, it does not throw the |
|
Looking at the build logs here: https://travis-ci.org/Azure/azure-rest-api-specs/jobs/413755232#L613 it says that there are duplicated definitions of JobStreamProperties, which conflict. Given that they're in separate API Versions, 2018-01-15 and 2017-05-15-preview. In the command you executed above, you didn't provide the flag Let me know what you find! |
|
@khughes66 Could you please close this PR. #3646 fixes the issues and passes. |
|
There were some strange issues with this PR (see the checks above). We duplicated it into PR #3646, which has passed the checks. Closing this PR in favor of that one. |
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-versionin the path should match theapi-versionin the spec).Quality of Swagger