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

[Hub Generated] Review request for Microsoft.CostManagement to add version stable/2020-06-01 #15638

Conversation

sri-
Copy link
Contributor

@sri- sri- commented Aug 12, 2021

This is a PR generated at OpenAPI Hub. You can view your work branch via this link.

Changelog

Add a changelog entry for 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 are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
  4. If updating an existing version, please select the specific langauge SDKs and CLIs that must be refreshed after the 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 refresh required 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

Applicability: ⚠️

If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

  • Change to data plane APIs
  • Adding new properties
  • All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

  • Check this box if any of the following apply to the PR so that label “WaitForARMFeedback” will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

    • Adding a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.
  • 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 any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in a stable version
  • Removing properties in a stable version
  • Removing API version(s) in a stable version
  • Updating API in a 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

Hi, @sri- 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. [email protected]

    @openapi-workflow-bot
    Copy link

    [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.

    @sri- sri- marked this pull request as ready for review August 12, 2021 19:36
    @sri- sri- marked this pull request as draft August 12, 2021 21:34
    @raych1 raych1 added the NotReadyForReview <valid label in PR review process>It is in draft for swagger or not swagger PR label Aug 16, 2021
    @zhenglaizhang
    Copy link
    Contributor

    /azp run

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 16, 2021

    Swagger Validation Report

    ️⚠️BreakingChange: 2 Warnings warning [Detail]
    Rule Message
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1588:9
    Old: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1587:9
    ⚠️ 1026 - TypeChanged The new version has a different type 'object' than the previous one ''.
    New: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1568:5
    Old: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1568:5
    ️⚠️LintDiff: 0 Warnings warning [Detail]
    The following errors/warnings exist before current PR submission:

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

    Rule Message
    R4011 - DeleteOperationResponses The delete operation is defined without a 200 or 204 error response implementation,please add it.'
    Location: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.exports.json#L270
    R4018 - OperationsApiResponseSchema The response schema of operations API '/providers/Microsoft.CostManagement/operations' does not match the ARM specification. Please standardize the schema.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1103
    R4037 - MissingTypeObject The schema 'ErrorDetails' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.exports.json#L406
    R4037 - MissingTypeObject The schema 'Resource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.exports.json#L421
    R4037 - MissingTypeObject The schema 'ProxyResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.exports.json#L450
    R4037 - MissingTypeObject The schema 'GenerateDetailedCostReportDefinition' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.generatedetailedcostreport.json#L223
    R4037 - MissingTypeObject The schema 'GenerateDetailedCostReportTimePeriod' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.generatedetailedcostreport.json#L256
    R4037 - MissingTypeObject The schema 'GenerateDetailedCostReportOperationStatuses' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.generatedetailedcostreport.json#L273
    R4037 - MissingTypeObject The schema 'GenerateDetailedCostReportOperationResult' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.generatedetailedcostreport.json#L304
    R4037 - MissingTypeObject The schema 'DownloadURL' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.generatedetailedcostreport.json#L327
    R4037 - MissingTypeObject The schema 'ErrorDetails' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.generatedetailedcostreport.json#L341
    R4037 - MissingTypeObject The schema 'Status' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/preview/2020-12-01-preview/costmanagement.generatedetailedcostreport.json#L366
    R4037 - MissingTypeObject The schema 'ReportConfigDefinition' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1136
    R4037 - MissingTypeObject The schema 'ReportConfigTimePeriod' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1178
    R4037 - MissingTypeObject The schema 'ReportConfigDataset' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1197
    R4037 - MissingTypeObject The schema 'ReportConfigDatasetConfiguration' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1247
    R4037 - MissingTypeObject The schema 'ReportConfigAggregation' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1259
    R4037 - MissingTypeObject The schema 'ReportConfigSorting' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1283
    R4037 - MissingTypeObject The schema 'ReportConfigGrouping' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1303
    R4037 - MissingTypeObject The schema 'ReportConfigFilter' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1320
    R4037 - MissingTypeObject The schema 'ReportConfigComparisonExpression' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1365
    R4037 - MissingTypeObject The schema 'Resource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1594
    R4037 - MissingTypeObject The schema 'ProxyResource' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L1623
    R4037 - MissingTypeObject The schema 'DismissAlertPayload' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L2000
    R4037 - MissingTypeObject The schema 'OperationListResult' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L2063
    R4037 - MissingTypeObject The schema 'display' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L2090
    R4037 - MissingTypeObject The schema 'ForecastDefinition' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L2112
    R4037 - MissingTypeObject The schema 'ForecastDataset' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L2167
    R4037 - MissingTypeObject The schema 'QueryDefinition' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L2201
    R4037 - MissingTypeObject The schema 'QueryTimePeriod' is considered an object but without a 'type:object', please add the missing 'type:object'.
    Location: Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#L2248
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️Cross-Version Breaking Changes succeeded [Detail] [Expand]
    There are no breaking changes.
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️[Staging] SDK Track2 Validation: 12 Warnings warning [Detail]
    The following errors/warnings are introduced by current PR:
    Rule Message
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2021-01",
    "details":"The schema 'AlertProperties-details-resourceGroupFilterItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/AlertProperties-details-resourceGroupFilterItem"
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2021-01",
    "details":"The schema 'AlertProperties-details-resourceFilterItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/AlertProperties-details-resourceFilterItem"
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2021-01",
    "details":"The schema 'AlertProperties-details-meterFilterItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/AlertProperties-details-meterFilterItem"
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2021-01",
    "details":"The schema 'QueryProperties-rows-itemsItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/QueryProperties-rows-itemsItem"
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-12",
    "details":"The schema 'AlertProperties-details-resourceGroupFilterItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/AlertProperties-details-resourceGroupFilterItem"
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-12",
    "details":"The schema 'AlertProperties-details-resourceFilterItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/AlertProperties-details-resourceFilterItem"
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-12",
    "details":"The schema 'AlertProperties-details-meterFilterItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/AlertProperties-details-meterFilterItem"
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-12",
    "details":"The schema 'QueryProperties-rows-itemsItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/QueryProperties-rows-itemsItem"
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-03",
    "details":"The schema 'AlertProperties-details-resourceGroupFilterItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/AlertProperties-details-resourceGroupFilterItem"
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-03",
    "details":"The schema 'AlertProperties-details-resourceFilterItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/AlertProperties-details-resourceFilterItem"
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-03",
    "details":"The schema 'AlertProperties-details-meterFilterItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/AlertProperties-details-meterFilterItem"
    ⚠️ Modeler/MissingType "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-03",
    "details":"The schema 'QueryProperties-rows-itemsItem' has no type or format information whatsoever. Location:\n file:///home/vsts/work/1/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json#/components/schemas/QueryProperties-rows-itemsItem"
    💬 AutorestCore/Exception "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2021-01",
    "details":"> Installing AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0)"
    💬 AutorestCore/Exception "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2021-01",
    "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
    PreCheck/DuplicateSchema "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2020-06",
    "details":"Duplicate Schema named ReportConfigDefinition -- properties.dataset.$ref: undefined => "#/components/schemas/schemas:204" ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    PreCheck/DuplicateSchema "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2020-06",
    "details":"Duplicate Schema named ReportConfigDataset -- properties.filter.$ref: undefined => "#/components/schemas/schemas:220" ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    PreCheck/DuplicateSchema "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2020-06",
    "details":"Duplicate Schema named ReportConfigFilter -- properties.and.$ref: undefined => "#/components/schemas/schemas:221",
    properties.or.$ref: undefined => "#/components/schemas/schemas:222",
    properties.not.$ref: undefined => "#/components/schemas/schemas:220" ; This error can be temporarily avoided by using the 'modelerfour.lenient-model-deduplication' setting. NOTE: This setting will be removed in a future version of @autorest/modelerfour; schemas should be updated to fix this issue sooner than that."
    AutorestCore/Exception "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2020-06",
    "details":"Error: Plugin prechecker reported failure."
    💬 AutorestCore/Exception "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2021-01",
    "details":"> Loading AutoRest extension '@autorest/modelerfour' (4.15.456->4.15.456)"
    💬 AutorestCore/Exception "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-12",
    "details":"> Loading AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0->1.8.0)"
    💬 AutorestCore/Exception "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-12",
    "details":"> Loading AutoRest extension '@autorest/modelerfour' (4.15.456->4.15.456)"
    💬 AutorestCore/Exception "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-03",
    "details":"> Loading AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0->1.8.0)"
    💬 AutorestCore/Exception "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-preview-2020-03",
    "details":"> Loading AutoRest extension '@autorest/modelerfour' (4.15.456->4.15.456)"
    💬 AutorestCore/Exception "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2020-06",
    "details":"> Loading AutoRest extension '@microsoft.azure/openapi-validator' (1.8.0->1.8.0)"
    💬 AutorestCore/Exception "readme":"cost-management/resource-manager/readme.md",
    "tag":"package-2020-06",
    "details":"> Loading AutoRest extension '@autorest/modelerfour' (4.15.456->4.15.456)"
    ️️✔️[Staging] PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️[Staging] SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️[Staging] Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 16, 2021

    Swagger Generation Artifacts

    ️️✔️[Staging] ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️❌[Staging] SDK Breaking Change Tracking failed [Detail]

    Breaking Changes Tracking

    azure-sdk-for-python-track2 - track2_azure-mgmt-costmanagement - 2.0.0
    ️️✔️ azure-sdk-for-net succeeded [Detail] [Expand]
    ️❌ azure-sdk-for-go failed [Detail]
    • Failed [Logs] Generate from 34d6eb179d875612a61c9565938874b3aeb01081. SDK Automation 14.0.0
      command	sh ./initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
      cmderr	[generator automation] [AUTOREST]
      cmderr	[generator automation] [AUTOREST] ERROR (Fatal/DuplicateModelCollsion): Duplicated model name with non-identical definitions
      cmderr	[generator automation] [AUTOREST]     - file:///home/vsts/work/1/s/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.exports.json:669:4 ($.definitions.ErrorDetails)
      cmderr	[generator automation] [AUTOREST]     - file:///home/vsts/work/1/s/azure-rest-api-specs/specification/cost-management/resource-manager/Microsoft.CostManagement/stable/2020-06-01/costmanagement.json:1568:4 ($.definitions.ErrorDetails)
      cmderr	[generator automation] [AUTOREST]   Cancellation requested.
      cmderr	[generator automation] [ERROR] total 1 error(s):
      cmderr	[generator automation] [ERROR] failed to execute autorest: autorest error with arguments '[email protected]/[email protected], --go, --verbose, --go-sdk-folder=., --use-onever, --version=V2, --go.license-header=MICROSOFT_MIT_NO_VERSION, --tag=package-2020-06, --metadata-output-folder=/home/vsts/work/1/s/azure-sdk-for-go_tmp/generation-metadata-1629081016/package-2020-06, ../../../../../azure-rest-api-specs/specification/cost-management/resource-manager/readme.md':
      cmderr	[generator automation] [ERROR] exit status 1
      error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-go/src/github.com/Azure/azure-sdk-for-go]: generator automation
      warn	Skip package processing as generation is failed
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs] Generate from 34d6eb179d875612a61c9565938874b3aeb01081. 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.
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    • ️✔️track2_azure-mgmt-costmanagement [View full logs]  [Preview SDK Changes] Breaking Change Detected
      info	[Changelog] **Breaking changes**
      info	[Changelog]
      info	[Changelog]   - Parameter dataset of model QueryDefinition is now required
      info	[Changelog]   - Parameter dataset of model ForecastDefinition is now required
    ️️✔️ azure-cli-extensions succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from 34d6eb179d875612a61c9565938874b3aeb01081. Azure CLI Automation 14.0.0
      Only show 120 items here, please refer to log for details.
      cmderr	[Autorest]     - name: /Alerts/get/EnrollmentAccountAlerts
      cmderr	[Autorest]     - name: /Alerts/get/ExternalBillingAccountAlerts
      cmderr	[Autorest]     - name: /Alerts/get/ExternalSubscriptionAlerts
      cmderr	[Autorest]     - name: /Alerts/get/InvoiceSectionAlerts
      cmderr	[Autorest]     - name: /Alerts/get/ResourceGroupAlerts
      cmderr	[Autorest]     - name: /Alerts/get/ResourceGroupAlerts
      cmderr	[Autorest]     - name: /Alerts/get/SubscriptionAlerts
      cmderr	[Autorest]     - name: /Alerts/get/SubscriptionAlerts
      cmderr	[Autorest]     - name: /Alerts/patch/ResourceGroupAlerts
      cmderr	[Autorest]     - name: /Alerts/patch/SubscriptionAlerts
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsList-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsListExpandAndTop-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsListExpandAndTop-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsListWithFilter-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/BillingAccountDimensionsListWithFilter-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/BillingProfileDimensionsList-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/BillingProfileDimensionsListExpandAndTop-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/BillingProfileDimensionsListWithFilter-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/CustomerDimensionsList-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/CustomerDimensionsListExpandAndTop-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/CustomerDimensionsListWithFilter-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/DepartmentDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/DepartmentDimensionsListExpandAndTop-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/DepartmentDimensionsListWithFilter-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/EnrollmentAccountDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/EnrollmentAccountDimensionsListExpandAndTop-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/EnrollmentAccountDimensionsListWithFilter-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/ExternalBillingAccountDimensionList
      cmderr	[Autorest]     - name: /Dimensions/get/ExternalSubscriptionDimensionList
      cmderr	[Autorest]     - name: /Dimensions/get/InvoiceSectionDimensionsList-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/InvoiceSectionDimensionsListExpandAndTop-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/InvoiceSectionDimensionsListWithFilter-Modern
      cmderr	[Autorest]     - name: /Dimensions/get/ManagementGroupDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/ManagementGroupDimensionsListExpandAndTop-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/ManagementGroupDimensionsListWithFilter-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/ResourceGroupDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Dimensions/get/SubscriptionDimensionsList-Legacy
      cmderr	[Autorest]     - name: /Exports/put/BillingAccountCreateOrUpdateExport
      cmderr	[Autorest]     - name: /Exports/put/DepartmentCreateOrUpdateExport
      cmderr	[Autorest]     - name: /Exports/put/EnrollmentAccountCreateOrUpdateExport
      cmderr	[Autorest]     - name: /Exports/put/ManagementGroupCreateOrUpdateExport
      cmderr	[Autorest]     - name: /Exports/put/ResourceGroupCreateOrUpdateExport
      cmderr	[Autorest]     - name: /Exports/put/SubscriptionCreateOrUpdateExport
      cmderr	[Autorest]     - name: /Exports/get/BillingAccountExecutionHistoryExport
      cmderr	[Autorest]     - name: /Exports/get/BillingAccountExport
      cmderr	[Autorest]     - name: /Exports/get/BillingAccountExportList
      cmderr	[Autorest]     - name: /Exports/get/DepartmentExecutionHistoryExport
      cmderr	[Autorest]     - name: /Exports/get/DepartmentExport
      cmderr	[Autorest]     - name: /Exports/get/DepartmentExportList
      cmderr	[Autorest]     - name: /Exports/get/EnrollmentAccountExecutionHistoryExport
      cmderr	[Autorest]     - name: /Exports/get/EnrollmentAccountExport
      cmderr	[Autorest]     - name: /Exports/get/EnrollmentAccountExportList
      cmderr	[Autorest]     - name: /Exports/get/ManagementGroupExecutionHistoryExport
      cmderr	[Autorest]     - name: /Exports/get/ManagementGroupExport
      cmderr	[Autorest]     - name: /Exports/get/ManagementGroupExportList
      cmderr	[Autorest]     - name: /Exports/get/ResourceGroupExecutionHistoryExport
      cmderr	[Autorest]     - name: /Exports/get/ResourceGroupExport
      cmderr	[Autorest]     - name: /Exports/get/ResourceGroupExportList
      cmderr	[Autorest]     - name: /Exports/get/SubscriptionExecutionHistoryExport
      cmderr	[Autorest]     - name: /Exports/get/SubscriptionExport
      cmderr	[Autorest]     - name: /Exports/get/SubscriptionExportList
      cmderr	[Autorest]     - name: /Exports/post/BillingAccountExecuteExport
      cmderr	[Autorest]     - name: /Exports/post/DepartmentExecuteExport
      cmderr	[Autorest]     - name: /Exports/post/EnrollmentAccountExecuteExport
      cmderr	[Autorest]     - name: /Exports/post/ManagementGroupExecuteExport
      cmderr	[Autorest]     - name: /Exports/post/ResourceGroupExecuteExport
      cmderr	[Autorest]     - name: /Exports/post/SubscriptionExecuteExport
      cmderr	[Autorest]     - name: /Exports/delete/BillingAccountDeleteExport
      cmderr	[Autorest]     - name: /Exports/delete/DepartmentDeleteExport
      cmderr	[Autorest]     - name: /Exports/delete/EnrollmentAccountDeleteExport
      cmderr	[Autorest]     - name: /Exports/delete/ManagementGroupDeleteExport
      cmderr	[Autorest]     - name: /Exports/delete/ResourceGroupDeleteExport
      cmderr	[Autorest]     - name: /Exports/delete/SubscriptionDeleteExport
      cmderr	[Autorest]     - name: /Forecast/post/BillingAccountForecast
      cmderr	[Autorest]     - name: /Forecast/post/BillingProfileForecast
      cmderr	[Autorest]     - name: /Forecast/post/DepartmentForecast
      cmderr	[Autorest]     - name: /Forecast/post/EnrollmentAccountForecast
      cmderr	[Autorest]     - name: /Forecast/post/ExternalBillingAccountForecast
      cmderr	[Autorest]     - name: /Forecast/post/ExternalSubscriptionForecast
      cmderr	[Autorest]     - name: /Forecast/post/InvoiceSectionForecast
      cmderr	[Autorest]     - name: /Forecast/post/ResourceGroupForecast
      cmderr	[Autorest]     - name: /Forecast/post/SubscriptionForecast
      cmderr	[Autorest]     - name: /GenerateReservationDetailsReport/post/ReservationDetails
      cmderr	[Autorest]     - name: /GenerateReservationDetailsReport/post/ReservationDetails
      cmderr	[Autorest]     - name: /Query/post/BillingAccountQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/BillingAccountQuery-Modern
      cmderr	[Autorest]     - name: /Query/post/BillingAccountQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Query/post/BillingAccountQueryGrouping-Modern
      cmderr	[Autorest]     - name: /Query/post/BillingProfileQuery-Modern
      cmderr	[Autorest]     - name: /Query/post/BillingProfileQueryGrouping-Modern
      cmderr	[Autorest]     - name: /Query/post/CustomerQuery-Modern
      cmderr	[Autorest]     - name: /Query/post/CustomerQueryGrouping-Modern
      cmderr	[Autorest]     - name: /Query/post/DepartmentQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/DepartmentQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Query/post/EnrollmentAccountQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/EnrollmentAccountQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Query/post/ExternalBillingAccountQueryList
      cmderr	[Autorest]     - name: /Query/post/ExternalSubscriptionsQuery
      cmderr	[Autorest]     - name: /Query/post/InvoiceSectionQuery-Modern
      cmderr	[Autorest]     - name: /Query/post/InvoiceSectionQueryGrouping-Modern
      cmderr	[Autorest]     - name: /Query/post/ManagementGroupQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/ManagementGroupQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Query/post/ResourceGroupQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/ResourceGroupQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Query/post/SubscriptionQuery-Legacy
      cmderr	[Autorest]     - name: /Query/post/SubscriptionQueryGrouping-Legacy
      cmderr	[Autorest]     - name: /Settings/put/CreateOrUpdateSetting
      cmderr	[Autorest]     - name: /Settings/get/SettingList
      cmderr	[Autorest]     - name: /Settings/get/Settings
      cmderr	[Autorest]     - name: /Settings/delete/DeleteSetting
      cmderr	[Autorest]     - name: /Views/put/CreateOrUpdatePrivateView
      cmderr	[Autorest]     - name: /Views/put/ResourceGroupCreateOrUpdateView
      cmderr	[Autorest]     - name: /Views/get/PrivateView
      cmderr	[Autorest]     - name: /Views/get/PrivateViewList
      cmderr	[Autorest]     - name: /Views/get/ResourceGroupView
      cmderr	[Autorest]     - name: /Views/get/ResourceGroupViewList
      cmderr	[Autorest]     - name: /Views/delete/DeletePrivateView
      cmderr	[Autorest]     - name: /Views/delete/ResourceGroupDeleteView
      cmderr	[Autorest] --------------------------------------------------------
    • ️✔️costmanagement [View full logs]  [Preview Azure CLI Changes]
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs] Generate from 34d6eb179d875612a61c9565938874b3aeb01081. 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]  old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      cmderr	[initScript.sh] npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      cmderr	[initScript.sh] npm WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile This is a one-time fix-up, please be patient...
      cmderr	[initScript.sh] npm WARN old lockfile
      warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
      command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
      cmderr	[generateScript.sh] (node:2455) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
      cmderr	[generateScript.sh]     at JSON.parse (<anonymous>)
      cmderr	[generateScript.sh]     at Object.readJsonFile (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/utils.ts:174:17)
      cmderr	[generateScript.sh]     at getCurrentTemplateRefs (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:290:21)
      cmderr	[generateScript.sh]     at /home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:297:29
      cmderr	[generateScript.sh] (Use `node --trace-warnings ...` to show where the warning was created)
      cmderr	[generateScript.sh] (node:2455) 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: 1)
      cmderr	[generateScript.sh] (node:2455) [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	[generateScript.sh] (node:2455) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
      cmderr	[generateScript.sh]     at JSON.parse (<anonymous>)
      cmderr	[generateScript.sh]     at Object.readJsonFile (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/utils.ts:174:17)
      cmderr	[generateScript.sh]     at getCurrentTemplateRefs (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:290:21)
      cmderr	[generateScript.sh]     at /home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:297:29
      cmderr	[generateScript.sh] (node:2455) 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: 2)
      cmderr	[generateScript.sh] (node:2455) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
      cmderr	[generateScript.sh]     at JSON.parse (<anonymous>)
      cmderr	[generateScript.sh]     at Object.readJsonFile (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/utils.ts:174:17)
      cmderr	[generateScript.sh]     at getCurrentTemplateRefs (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:290:21)
      cmderr	[generateScript.sh]     at /home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:297:29
      cmderr	[generateScript.sh] (node:2455) 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: 3)
      cmderr	[generateScript.sh] (node:2455) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected end of JSON input
      cmderr	[generateScript.sh]     at JSON.parse (<anonymous>)
      cmderr	[generateScript.sh]     at Object.readJsonFile (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/utils.ts:174:17)
      cmderr	[generateScript.sh]     at getCurrentTemplateRefs (/home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:290:21)
      cmderr	[generateScript.sh]     at /home/vsts/work/1/s/azure-resource-manager-schemas/generator/generate.ts:297:29
      cmderr	[generateScript.sh] (node:2455) 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: 4)
      warn	No file changes detected after generation
      warn	Skip detect changed packages
    Posted by Swagger Pipeline | How to fix these errors?

    @azure-pipelines
    Copy link

    Azure Pipelines successfully started running 1 pipeline(s).

    @openapi-pipeline-app
    Copy link

    Swagger Validation Report

    ️⌛BreakingChange pending [Detail]
    ️🔄LintDiff inProgress [Detail]
    ️⌛Avocado pending [Detail]
    ️⌛ModelValidation pending [Detail]
    ️⌛SemanticValidation pending [Detail]
    ️⌛Cross-Version Breaking Changes pending [Detail]
    ️⌛CredScan pending [Detail]
    ️⌛[Staging] SDK Track2 Validation pending [Detail]
    ️⌛[Staging] PrettierCheck pending [Detail]
    ️⌛[Staging] SpellCheck pending [Detail]
    ️⌛[Staging] Lint(RPaaS) pending [Detail]
    Posted by Swagger Pipeline | How to fix these errors?

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    NotReadyForReview <valid label in PR review process>It is in draft for swagger or not swagger PR
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    3 participants