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

Users/tolee/workbooks s360 compliance #11746

Merged
merged 42 commits into from
Jan 12, 2021

Conversation

tonykslee
Copy link
Contributor

@tonykslee tonykslee commented Nov 18, 2020

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.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 18, 2020

Swagger Validation Report

️❌BreakingChange: 33 Errors, 0 Warnings failed [Detail] Only 10 items are listed, please refer to log for more details.

Rule Message
1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'ResourceIdParameter' removed or renamed?
New: Microsoft.Insights/stable/2020-10-20/myworkbooks_API.json#L547:3
Old: Microsoft.Insights/stable/2020-10-20/myworkbooks_API.json#L514:3
1011 - AddingResponseCode The new version adds a response code '201'.
New: Microsoft.Insights/stable/2020-10-20/workbooks_API.json#L257:11
1011 - AddingResponseCode The new version adds a response code '201'.
New: Microsoft.Insights/stable/2020-10-20/myworkbooks_API.json#L299:11
1011 - AddingResponseCode The new version adds a response code '200'.
New: Microsoft.Insights/stable/2020-10-20/workbooks_API.json#L150:11
1011 - AddingResponseCode The new version adds a response code '200'.
New: Microsoft.Insights/stable/2020-10-20/myworkbooks_API.json#L195:11
1012 - RemovedResponseCode The new version removes the response code '201'
New: azure-rest-api-specs/blob/ffca8103bf966023f2466a5d880186efa992b7a9/
Old: Microsoft.Insights/stable/2020-10-20/workbooks_API.json#L150:11
1012 - RemovedResponseCode The new version removes the response code '200'
New: azure-rest-api-specs/blob/ffca8103bf966023f2466a5d880186efa992b7a9/
Old: Microsoft.Insights/stable/2020-10-20/myworkbooks_API.json#L284:11
1012 - RemovedResponseCode The new version removes the response code '200'
New: azure-rest-api-specs/blob/ffca8103bf966023f2466a5d880186efa992b7a9/
Old: Microsoft.Insights/stable/2020-10-20/workbooks_API.json#L257:11
1012 - RemovedResponseCode The new version removes the response code '201'
New: azure-rest-api-specs/blob/ffca8103bf966023f2466a5d880186efa992b7a9/
Old: Microsoft.Insights/stable/2020-10-20/myworkbooks_API.json#L186:11
1026 - TypeChanged The new version has a different type '' than the previous one 'object'.
New: Microsoft.Insights/stable/2020-10-20/workbooks_API.json#L320:9
Old: Microsoft.Insights/stable/2020-10-20/workbooks_API.json#L323:9
️⚠️LintDiff: 3 Warnings warning [Detail]

Rule Message
⚠️ R4021 - DescriptionAndTitleMissing 'nextLink' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
New: Microsoft.Insights/stable/2020-10-20/myworkbooks_API.json#L385
⚠️ R4021 - DescriptionAndTitleMissing 'nextLink' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
New: Microsoft.Insights/stable/2020-10-20/workbooks_API.json#L346
⚠️ R4030 - UniqueXmsExample Do not have duplicate name of x-ms-example, make sure every x-ms-example name unique. Duplicate x-ms-example: WorkbooksList2
New: Microsoft.Insights/stable/2020-10-20/myworkbooks_API.json#L129
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️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.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Nov 18, 2020

Swagger Generation Artifacts

️️✔️ azure-resource-manager-schemas succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 5d3716e. Schema Automation 14.0.0
    warn	Skip initScript due to not configured
    command	npx n 12
    command	autorest --use=@autorest/[email protected] --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/applicationinsights/resource-manager/readme.md
  • ️✔️applicationinsights [View full logs]  [Release Schema Changes]
    cmderr	[resource-manager] node-pre-gyp
    cmderr	[resource-manager] WARN Using request for node-pre-gyp https download
    cmderr	[resource-manager] npm WARN [email protected] No repository field.
    cmderr	[resource-manager] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
    cmderr	[resource-manager] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    cmderr	[resource-manager]  ELIFECYCLE
    cmderr	[resource-manager] npm ERR! errno 16
    cmderr	[resource-manager]  [email protected] test: `mocha -r ts-node/register tests.ts`
    cmderr	[resource-manager] npm ERR! Exit status 16
    cmderr	[resource-manager] npm ERR!
    cmderr	[resource-manager] npm ERR! Failed at the [email protected] test script.
    cmderr	[resource-manager] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    cmderr	[resource-manager]  A complete log of this run can be found in:
    cmderr	[resource-manager] npm ERR!     /home/vsts/.npm/_logs/2021-01-12T03_02_31_912Z-debug.log
    cmderr	[resource-manager] Error: Command failed: npm run test --prefix tools
    cmderr	[resource-manager]     at checkExecSyncError (child_process.js:635:11)
    cmderr	[resource-manager]     at Object.execSync (child_process.js:671:15)
    cmderr	[resource-manager]     at Object.<anonymous> (/home/vsts/work/1/s/azure-resource-manager-schemas/azure-resource-manager-schemas/sdkauto_afterscript.js:13:28)
    cmderr	[resource-manager]     at Module._compile (internal/modules/cjs/loader.js:999:30)
    cmderr	[resource-manager]     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    cmderr	[resource-manager]     at Module.load (internal/modules/cjs/loader.js:863:32)
    cmderr	[resource-manager]     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    cmderr	[resource-manager]     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    cmderr	[resource-manager]     at internal/main/run_main_module.js:17:47 {
    cmderr	[resource-manager]   status: 16,
    cmderr	[resource-manager]   signal: null,
    cmderr	[resource-manager]   output: [ null, null, null ],
    cmderr	[resource-manager]   pid: 3095,
    cmderr	[resource-manager]   stdout: null,
    cmderr	[resource-manager]   stderr: null
    cmderr	[resource-manager] }
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 5d3716e. SDK Automation 14.0.0
    warn	Skip initScript due to not configured
    command	autorest --version=V2 --typescript --license-header=MICROSOFT_MIT_NO_VERSION [email protected]/[email protected] --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js/azure-sdk-for-js ../../azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md
  • ️✔️@azure/arm-appinsights [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/applicationInsightsManagementClient.js → ./dist/arm-appinsights.js...
    cmderr	[npmPack] created ./dist/arm-appinsights.js in 222ms
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 5d3716e. 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
  • ️✔️appinsights/mgmt/2015-05-01/insights [View full logs]  [Release SDK Changes]
    info	[Changelog] No exported changes
️️✔️ azure-sdk-for-net succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 5d3716e. 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 [email protected]/[email protected] --csharp-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/applicationinsights/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.ApplicationInsights [View full logs]  [Release SDK Changes]
️️✔️ azure-sdk-for-python succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs]Release - Generate from 5d3716e. 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 [email protected]/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/applicationinsights/resource-manager/readme.md
  • ️✔️azure-mgmt-applicationinsights [View full logs]  [Release SDK Changes]
    cmderr	[multiapi_init_gen.py --default-api-version=2020-03-01-preview azure-mgmt-applicationinsights] INFO:__main__:Default API version will be: v2020_03_01_preview
    cmderr	[buildConf] INFO:packaging_tools:Building template azure-mgmt-applicationinsights
    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-applicationinsights
    cmderr	[buildPackage] warning: no files found matching '*.py' under directory 'tests'
    cmderr	[buildPackage] warning: no files found matching '*.yaml' under directory 'tests'
    cmderr	[buildPackage] warning: no files found matching '*.py' under directory 'tests'
    cmderr	[buildPackage] warning: no files found matching '*.yaml' under directory 'tests'
    cmderr	[changelogSetup] WARNING: Skipping azure-nspkg as it is not installed.
    cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights
    cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2015_05_01
    cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.applicationinsights.v2015_05_01
    cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2017_10_01
    cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.applicationinsights.v2017_10_01
    cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2018_05_01_preview
    cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.applicationinsights.v2018_05_01_preview
    cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2018_06_17_preview
    cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.applicationinsights.v2018_06_17_preview
    cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2019_09_01_preview
    cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.applicationinsights.v2019_09_01_preview
    cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2019_10_17_preview
    cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.applicationinsights.v2019_10_17_preview
    cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2020_02_02_preview
    cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.applicationinsights.v2020_02_02_preview
    cmderr	[changelogReport] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2020_03_01_preview
    cmderr	[changelogReport] INFO:__main__:Found azure.mgmt.applicationinsights.v2020_03_01_preview
    cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.applicationinsights.v2015_05_01
    cmderr	[changelogReport] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/latest/v2015_05_01.json
    cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.applicationinsights.v2017_10_01
    cmderr	[changelogReport] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/latest/v2017_10_01.json
    cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.applicationinsights.v2018_05_01_preview
    cmderr	[changelogReport] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/latest/v2018_05_01_preview.json
    cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.applicationinsights.v2018_06_17_preview
    cmderr	[changelogReport] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/latest/v2018_06_17_preview.json
    cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.applicationinsights.v2019_09_01_preview
    cmderr	[changelogReport] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/latest/v2019_09_01_preview.json
    cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.applicationinsights.v2019_10_17_preview
    cmderr	[changelogReport] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/latest/v2019_10_17_preview.json
    cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.applicationinsights.v2020_02_02_preview
    cmderr	[changelogReport] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/latest/v2020_02_02_preview.json
    cmderr	[changelogReport] INFO:__main__:Working on azure.mgmt.applicationinsights.v2020_03_01_preview
    cmderr	[changelogReport] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/latest/v2020_03_01_preview.json
    cmderr	[changelogReport] INFO:__main__:Merged report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/latest/merged_report.json
    cmderr	[changelogReportLatest] INFO:__main__:Download versions of azure-mgmt-applicationinsights on PyPI
    cmderr	[changelogReportLatest] INFO:__main__:Got ['0.1.0', '0.1.1', '0.2.0', '0.3.0', '1.0.0b1']
    cmderr	[changelogReportLatest] INFO:__main__:Only keep last PyPI version
    cmderr	[changelogReportLatest] INFO:__main__:Installing version 0.3.0 of azure-mgmt-applicationinsights in a venv
    cmderr	[changelogReportLatest] Cache entry deserialization failed, entry ignored
    cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights
    cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2015_05_01
    cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.applicationinsights.v2015_05_01
    cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2017_10_01
    cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.applicationinsights.v2017_10_01
    cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2018_05_01_preview
    cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.applicationinsights.v2018_05_01_preview
    cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2018_06_17_preview
    cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.applicationinsights.v2018_06_17_preview
    cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2019_09_01_preview
    cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.applicationinsights.v2019_09_01_preview
    cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2019_10_17_preview
    cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.applicationinsights.v2019_10_17_preview
    cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2020_02_02_preview
    cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.applicationinsights.v2020_02_02_preview
    cmderr	[changelogReportLatest] INFO:__main__:Looking for Autorest generated package in azure.mgmt.applicationinsights.v2020_03_01_preview
    cmderr	[changelogReportLatest] INFO:__main__:Found azure.mgmt.applicationinsights.v2020_03_01_preview
    cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.applicationinsights.v2015_05_01
    cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/0.3.0/v2015_05_01.json
    cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.applicationinsights.v2017_10_01
    cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/0.3.0/v2017_10_01.json
    cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.applicationinsights.v2018_05_01_preview
    cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/0.3.0/v2018_05_01_preview.json
    cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.applicationinsights.v2018_06_17_preview
    cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/0.3.0/v2018_06_17_preview.json
    cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.applicationinsights.v2019_09_01_preview
    cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/0.3.0/v2019_09_01_preview.json
    cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.applicationinsights.v2019_10_17_preview
    cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/0.3.0/v2019_10_17_preview.json
    cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.applicationinsights.v2020_02_02_preview
    cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/0.3.0/v2020_02_02_preview.json
    cmderr	[changelogReportLatest] INFO:__main__:Working on azure.mgmt.applicationinsights.v2020_03_01_preview
    cmderr	[changelogReportLatest] INFO:__main__:Report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/0.3.0/v2020_03_01_preview.json
    cmderr	[changelogReportLatest] INFO:__main__:Merged report written to sdk/applicationinsights/azure-mgmt-applicationinsights/code_reports/0.3.0/merged_report.json
    cmdout	[Changelog] Size of delta 9.516% size of original (original: 76247 chars, delta: 7256 chars)
    cmdout	[Changelog] **Features**
    cmdout	[Changelog]   - Model Workbook has a new parameter source_id
    cmdout	[Changelog]   - Model ApplicationInsightsComponent has a new parameter la_migration_date
    cmdout	[Changelog]   - Model ApplicationInsightsComponent has a new parameter ingestion_mode
    cmdout	[Changelog]   - Added operation group MyWorkbooksOperations
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning [Logs]Release - Generate from 5d3716e. 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] 2021-01-12 03:02:38 INFO [VERSION][Not Found] cannot find version for "com.azure.resourcemanager:azure-resourcemanager-applicationinsights"
    cmderr	[generate.py] 2021-01-12 03:02:38 INFO [VERSION][Not Found] cannot find stable version, current version "1.0.0-beta.1"
    cmderr	[generate.py] 2021-01-12 03:02:38 INFO autorest --version=3.0.6350 --use=@autorest/[email protected] --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/applicationinsights/azure-resourcemanager-applicationinsights --java.namespace=com.azure.resourcemanager.applicationinsights  --package-version=1.0.0-beta.1 --java --pipeline.modelerfour.additional-checks=false --pipeline.modelerfour.lenient-model-deduplication=true --azure-arm --verbose --sdk-integration --fluent=lite --java.fluent=lite --java.license-header=MICROSOFT_MIT_SMALL ../azure-rest-api-specs/specification/applicationinsights/resource-manager/readme.md
    cmderr	[generate.py] 2021-01-12 03:03:19 INFO [CI][Success] Write to ci.yml
    cmderr	[generate.py] 2021-01-12 03:03:19 INFO [POM][Process] dealing with pom.xml
    cmderr	[generate.py] 2021-01-12 03:03:19 INFO [POM][Skip] pom already has module azure-resourcemanager-applicationinsights
    cmderr	[generate.py] 2021-01-12 03:03:19 INFO [POM][Success] Write to pom.xml
    cmderr	[generate.py] 2021-01-12 03:03:19 INFO [POM][Process] dealing with root pom
    cmderr	[generate.py] 2021-01-12 03:03:19 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-applicationinsights [View full logs]  [Release SDK Changes]
    cmderr	[Inst] 2021-01-12 03:05:41 DEBUG Got artifact_id: azure-resourcemanager-applicationinsights
    cmderr	[Inst] 2021-01-12 03:05:41 DEBUG Got artifact: pom.xml
    cmderr	[Inst] 2021-01-12 03:05:41 DEBUG Got artifact: azure-resourcemanager-applicationinsights-1.0.0-beta.1.jar
    cmderr	[Inst] 2021-01-12 03:05:41 DEBUG Match jar package: azure-resourcemanager-applicationinsights-1.0.0-beta.1.jar
    cmderr	[Inst] 2021-01-12 03:05:41 DEBUG output: {"full": "```sh\ncurl -L \"https://portal.azure-devex-tools.com/api/sdk-dl-pub?p=Azure/11746/azure-sdk-for-java/azure-resourcemanager-applicationinsights/azure-resourcemanager-applicationinsights-1.0.0-beta.1.jar\" -o azure-resourcemanager-applicationinsights-1.0.0-beta.1.jar\nmvn install:install-file -DgroupId=com.azure.resourcemanager -DartifactId=azure-resourcemanager-applicationinsights -Dversion=1.0.0-beta.0 -Dfile=azure-resourcemanager-applicationinsights-1.0.0-beta.1.jar -Dpackaging=jar -DgeneratePom=true
    ```"}
️️✔️[Staging] ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
Posted by Swagger Pipeline | How to fix these errors?

@openapi-workflow-bot
Copy link

Hi @tonykslee, 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.

@azure-pipelines
Copy link

There was an error handling pipeline event 6f3c7b03-576c-4f78-941e-055ddae2b756.

@PhoenixHe-NV
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@tonykslee
Copy link
Contributor Author

tonykslee commented Dec 3, 2020

Any tips on getting the model validation to pass without suppression?

@openapi-workflow-bot
Copy link

Hi, @tonykslee 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.
  • 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]

    @@ -23,7 +23,7 @@
    }
    },
    "responses": {
    "200": {
    "201": {
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    201 means Created. For Patch action, it should return 200. So to fix the s360, the service implementation need to be fixed.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    I'm only updating the swagger documentation to reflect the actual response codes that are being returned form this api. Currently upon PATCH request for this api, it returns a 201 and not a 200.

    The way I understand it, the cause for the S360 error was because the actual response was returning a 201, but the existing swagger configuration was expecting a 200 (as you are suggesting it should be). Therefore, this PR changes the response code to 201 to match the existing api response code.

    Copy link
    Contributor

    @leni-msft leni-msft Dec 9, 2020

    Choose a reason for hiding this comment

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

    There are quite many breaking changes, as you may have noticed. Per rule made by breaking change review board, you will need follow the process defined in https://aka.ms/AzBreakingChangesPolicy to request breaking approval. Thus, for this specific issue, I would suggest you to change service implementation instead. That will also resolve the S360 issue, and there's no breaking change.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    So it sounds like I understood the S360 error correctly.

    there are many breaking changes because the previous swagger definition was defined incorrectly to start with. that is why i'm requesting a breaking change exemption so that we can start regularly maintaining it and keeping it up to date.

    It seemed like the full breaking change approval process would take a long time and since the s360 deadline was approaching, I thought that the exception was the right request since these changes are not actually breaking changes - they are correcting the incorrect existing swagger definition. But if there's no way around it and we have to go through the whole process, then that is fine. I'm just concerned that we'd just be out of SLA for the long duration of the approval process.

    @@ -6,7 +6,7 @@
    "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"
    },
    "responses": {
    "201": {},
    "200": {},
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    Delete should return 200 when done successfully rather than 201. So this is a bugfix. We'd suggest you to ask for approval from breaking change review board.

    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    Are you suggesting that I add this to the existing swagger kpi exemption request or to create a new one for this change.

    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    Nope, I suggest you to request breaking change approval for this case. See https://aka.ms/AzBreakingChangesPolicy

    @@ -465,40 +482,47 @@
    }
    }
    },
    "ErrorFieldContract": {
    "WorkbookError": {
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    Copy link
    Contributor Author

    @tonykslee tonykslee Dec 8, 2020

    Choose a reason for hiding this comment

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

    I would like to, but the existing API returns a custom error body that doesn't fit the schema that you referenced.
    It includes "innerError" and "trace" as mentioned in the s360 error.

    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    Is it possible to change the service implementation? You know, to resolve the s360 error, you can either fix swagger or fix service 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.

    this is the existing implementation that is already in production in all environments and used by other apis. changing the body here to fit the default error type will cause an actual breaking change. So we don't want to change the service implementation.

    "type": "string",
    "description": "Azure Resource Id that will fetch all linked workbooks.",
    "x-ms-parameter-location": "method"
    },
    "ResourceIdParameter": {
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    Why are you removing the definition here? Better keep it to avoid breaking change error, if not necessary,

    Copy link
    Contributor Author

    @tonykslee tonykslee Dec 8, 2020

    Choose a reason for hiding this comment

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

    It doesn't exist and it never has. Apparently the initial definition was incorrect and then still approved. So its been just wrong for many years.

    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    I see. Then actually it's not a breaking change. You may ask for breaking change approval for this case.

    Copy link
    Contributor Author

    @tonykslee tonykslee left a comment

    Choose a reason for hiding this comment

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

    This entire PR is to fix the s360 errors and match up the swagger api definition to the actual existing API request/responses as it has been incorrectly reflecting the actual api definition for years.

    @@ -23,7 +23,7 @@
    }
    },
    "responses": {
    "200": {
    "201": {
    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    I'm only updating the swagger documentation to reflect the actual response codes that are being returned form this api. Currently upon PATCH request for this api, it returns a 201 and not a 200.

    The way I understand it, the cause for the S360 error was because the actual response was returning a 201, but the existing swagger configuration was expecting a 200 (as you are suggesting it should be). Therefore, this PR changes the response code to 201 to match the existing api response code.

    @@ -465,40 +482,47 @@
    }
    }
    },
    "ErrorFieldContract": {
    "WorkbookError": {
    Copy link
    Contributor Author

    @tonykslee tonykslee Dec 8, 2020

    Choose a reason for hiding this comment

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

    I would like to, but the existing API returns a custom error body that doesn't fit the schema that you referenced.
    It includes "innerError" and "trace" as mentioned in the s360 error.

    "type": "string",
    "description": "Azure Resource Id that will fetch all linked workbooks.",
    "x-ms-parameter-location": "method"
    },
    "ResourceIdParameter": {
    Copy link
    Contributor Author

    @tonykslee tonykslee Dec 8, 2020

    Choose a reason for hiding this comment

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

    It doesn't exist and it never has. Apparently the initial definition was incorrect and then still approved. So its been just wrong for many years.

    @@ -6,7 +6,7 @@
    "resourceName": "deadb33f-5e0d-4064-8ebb-1a4ed0313eb2"
    },
    "responses": {
    "201": {},
    "200": {},
    Copy link
    Contributor Author

    Choose a reason for hiding this comment

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

    Are you suggesting that I add this to the existing swagger kpi exemption request or to create a new one for this change.

    @ghost
    Copy link

    ghost commented Jan 3, 2021

    Hi, @tonykslee. Your PR has no update for 14 days and it is marked as stale PR. If no further update for over 14 days, the bot will close the PR. If you want to refresh the PR, please remove no-recent-activity label.

    @ghost ghost added the no-recent-activity label Jan 3, 2021
    @JeffreyRichter JeffreyRichter added the Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 label Jan 11, 2021
    @tonykslee
    Copy link
    Contributor Author

    @kairu-ms Breaking change has been approved. Please merge the PR when you have the chance to review

    @kairu-ms
    Copy link
    Contributor

    @kairu-ms Breaking change has been approved. Please merge the PR when you have the chance to review

    @tonykslee Please attach S360 issue links.

    @tonykslee
    Copy link
    Contributor Author

    tonykslee commented Jan 12, 2021

    @kairu-ms Breaking change has been approved. Please merge the PR when you have the chance to review

    @tonykslee Please attach S360 issue links.

    Here is the work item:
    https://msazure.visualstudio.com/Swagger%20KPIs/_workitems/edit/8189496

    That work item contains the following s360 issues:
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=1E0163D4-3B2E-4B33-81EC-1AD9C971CBBA
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=761275DB-C7B4-4B3A-AFA7-1D180640F5F9
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=C772BF0D-C279-4ADC-9777-2B30838FDA5A
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=C80E63FA-D08D-45BB-92FB-584DE1F4AB9D
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=01770025-6D8C-4E9D-9F0C-73AABA652FD4
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=C329CBC2-D252-45BB-9338-82527E198D36
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=16EAC02E-B086-4C36-8B46-922E28F7D5BD
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=0142ECCE-D373-4529-B2BB-99812988396E
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=718BE99F-4162-4804-B775-A72D04E5C45A
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=08E01A69-D9F7-4EB9-8BA4-CCA5BF02DECB
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=C195B570-E5D8-40DD-AC20-D2C9CDCDFF89
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=7B93B086-7E1A-41FF-B75C-D89AA6A8708B
    https://portal.azure-devex-tools.com/amekpis/correctness/detail?errorId=F6B08779-EDAB-42FC-9CB1-DBE429285A89

    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
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    5 participants