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

[Fleet] Generate with type spec v0.47.0 #25484

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

zman-ms
Copy link
Contributor

@zman-ms zman-ms commented Aug 23, 2023

ARM (Control Plane) API Specification Update Pull Request

PR review workflow diagram

Please understand this diagram before proceeding. It explains how to get your PR approved & merged.

diagram

[1] ARM review queue (for merge queues, see [4])
The PRs are processed by time opened, ascending. Your PR may show up on 2nd or later page.
If you addressed Step 1 from the diagram and your PR is not showing up in the queue, ensure the label ARMChangesRequested
is removed from your PR. This should cause the label WaitForARMFeedback to be added.
[2] https://aka.ms/azsdk/support/specreview-channel
[3] List of SDK breaking changes approvers in pinned Teams announcement
[4] public repo merge queue, private repo merge queue (for ARM review queue, [1])

If you need further help with anything, see Getting help section below.

Purpose of this PR

What's the purpose of this PR? Check all that apply. This is mandatory!

  • New API version. (Such PR should have been generated with OpenAPI Hub, per this wiki doc.)
  • Update existing version for a new feature. (This is applicable only when you are revising a private preview API version.)
  • Update existing version to fix swagger quality issues in S360.
  • Other, please clarify:
    • edit this with your clarification

Due diligence checklist

To merge this PR, you must go through the following checklist and confirm you understood
and followed the instructions by checking all the boxes:

Breaking changes review (Step 1)

  • If the automation determines you have breaking changes, i.e. Step 1 from the diagram applies to you,
    you must follow the breaking changes process.
    IMPORTANT This applies even if:
    • The tool fails while it shouldn't, e.g. due to runtime exception, or incorrect detection of breaking changes.
    • You believe there is no need for you to request breaking change approval, for any reason.
      Such claims must be reviewed, and the process is the same.

ARM API changes review (Step 2)

  • If this PR is in purview of ARM review then automation will add the ARMReview label.
  • If you want to force ARM review, add the label yourself.
  • Proceed according to the diagram at the top of this comment.

Viewing API changes

For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.

Suppressing failures

If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
Swagger-Suppression-Process
to get approval.

Getting help

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 23, 2023

Next Steps to Merge

⚠️ This is an experimental comment. It may not always be up-to-date. ⚠️

⌛ Please wait, next steps to merge this PR are being evaluated by automation. ⌛

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 23, 2023

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
compared swaggers (via Oad v0.10.4)] new version base version
fleets.json 2022-09-02-preview(b7b8bb6) 2022-09-02-preview(main)
fleets.json 2023-03-15-preview(b7b8bb6) 2023-03-15-preview(main)
️⚠️Breaking Change(Cross-Version): 4 Warnings warning [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
fleets.json 2023-06-15-preview(b7b8bb6) 2023-03-15-preview(main)

The following breaking changes are detected by comparison with the latest preview version:

Rule Message
⚠️ 1011 - AddingResponseCode The new version adds a response code '202'.
New: fleet/preview/2023-06-15-preview/fleets.json#L361:11
⚠️ 1011 - AddingResponseCode The new version adds a response code '202'.
New: fleet/preview/2023-06-15-preview/fleets.json#L785:11
⚠️ 1044 - XmsLongRunningOperationChanged The new version has a different 'x-ms-longrunning-operation' value than the previous one.
New: fleet/preview/2023-06-15-preview/fleets.json#L310:7
Old: fleet/preview/2023-03-15-preview/fleets.json#L310:7
⚠️ 1044 - XmsLongRunningOperationChanged The new version has a different 'x-ms-longrunning-operation' value than the previous one.
New: fleet/preview/2023-06-15-preview/fleets.json#L724:7
Old: fleet/preview/2023-03-15-preview/fleets.json#L706:7
️️✔️LintDiff succeeded [Detail] [Expand]
Validation passes for LintDiff.
compared tags (via openapi-validator v2.1.4) new version base version
package-2023-06-preview package-2023-06-preview(b7b8bb6) package-2023-06-preview(dev-aks-fleet-2023-06-15-preview)
package-2023-03-preview package-2023-03-preview(b7b8bb6) package-2023-03-preview(dev-aks-fleet-2023-06-15-preview)
package-2022-09-preview package-2022-09-preview(b7b8bb6) package-2022-09-preview(dev-aks-fleet-2023-06-15-preview)
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 23, 2023

Swagger Generation Artifacts

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

Breaking Changes Tracking

️⚠️ azure-sdk-for-python-track2 warning [Detail]
  • ⚠️Warning [Logs] Generate from 78af492fc9095ed12b158a220d61c7663fb24ccf. 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
    cmderr	[automation_generate.sh]  notice
    cmderr	[automation_generate.sh] npm notice New minor version of npm available! 9.6.7 -> 9.8.1
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.8.1>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g [email protected]` to update!
    cmderr	[automation_generate.sh] npm notice
  • ️✔️track2_azure-mgmt-containerservicefleet [View full logs]  [Preview SDK Changes] Breaking Change Detected
    info	[Changelog] ### Features Added
    info	[Changelog]
    info	[Changelog]   - Model Fleet has a new parameter identity
    info	[Changelog]   - Model FleetHubProfile has a new parameter agent_profile
    info	[Changelog]   - Model FleetHubProfile has a new parameter api_server_access_profile
    info	[Changelog]   - Model FleetPatch has a new parameter identity
    info	[Changelog]   - Model ManagedClusterUpdate has a new parameter node_image_selection
    info	[Changelog]   - Model MemberUpdateStatus has a new parameter message
    info	[Changelog]   - Model UpdateRunStatus has a new parameter node_image_selection
    info	[Changelog]
    info	[Changelog] ### Breaking Changes
    info	[Changelog]
    info	[Changelog]   - Renamed operation FleetMembersOperations.update to FleetMembersOperations.begin_update
    info	[Changelog]   - Renamed operation FleetsOperations.update to FleetsOperations.begin_update
️⚠️ azure-sdk-for-java warning [Detail]
  • ⚠️Warning [Logs] Generate from 78af492fc9095ed12b158a220d61c7663fb24ccf. 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
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.2.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.2.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
  • ️✔️azure-resourcemanager-containerservicefleet [View full logs]  [Preview SDK Changes]
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs] Generate from 78af492fc9095ed12b158a220d61c7663fb24ccf. SDK Automation 14.0.0
    command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
    command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
  • ️✔️sdk/resourcemanager/containerservicefleet/armcontainerservicefleet [View full logs]  [Preview SDK Changes] Breaking Change Detected
    info	[Changelog] ### Breaking Changes
    info	[Changelog]
    info	[Changelog] - Operation `*FleetMembersClient.Update` has been changed to LRO, use `*FleetMembersClient.BeginUpdate` instead.
    info	[Changelog] - Operation `*FleetsClient.Update` has been changed to LRO, use `*FleetsClient.BeginUpdate` instead.
    info	[Changelog]
    info	[Changelog] ### Features Added
    info	[Changelog]
    info	[Changelog] - New value `UpdateStateSkipped` added to enum type `UpdateState`
    info	[Changelog] - New enum type `ManagedServiceIdentityType` with values `ManagedServiceIdentityTypeNone`, `ManagedServiceIdentityTypeSystemAssigned`, `ManagedServiceIdentityTypeSystemAssignedUserAssigned`, `ManagedServiceIdentityTypeUserAssigned`
    info	[Changelog] - New enum type `NodeImageSelectionType` with values `NodeImageSelectionTypeConsistent`, `NodeImageSelectionTypeLatest`
    info	[Changelog] - New struct `APIServerAccessProfile`
    info	[Changelog] - New struct `AgentProfile`
    info	[Changelog] - New struct `ManagedServiceIdentity`
    info	[Changelog] - New struct `NodeImageSelection`
    info	[Changelog] - New struct `NodeImageSelectionStatus`
    info	[Changelog] - New struct `NodeImageVersion`
    info	[Changelog] - New struct `UserAssignedIdentity`
    info	[Changelog] - New field `Identity` in struct `Fleet`
    info	[Changelog] - New field `APIServerAccessProfile`, `AgentProfile` in struct `FleetHubProfile`
    info	[Changelog] - New field `Identity` in struct `FleetPatch`
    info	[Changelog] - New field `NodeImageSelection` in struct `ManagedClusterUpdate`
    info	[Changelog] - New field `Message` in struct `MemberUpdateStatus`
    info	[Changelog] - New field `NodeImageSelection` in struct `UpdateRunStatus`
    info	[Changelog]
    info	[Changelog] Total 2 breaking change(s), 29 additive change(s).
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
  • ️✔️Succeeded [Logs] Generate from 78af492fc9095ed12b158a220d61c7663fb24ccf. SDK Automation 14.0.0
    command	sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json
    warn	File azure-sdk-for-js_tmp/initOutput.json not found to read
    command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
  • ️✔️@azure/arm-containerservicefleet [View full logs]  [Preview SDK Changes] Breaking Change Detected
    info	[Changelog] **Features**
    info	[Changelog]
    info	[Changelog]   - Added operation FleetMembers.beginUpdate
    info	[Changelog]   - Added operation FleetMembers.beginUpdateAndWait
    info	[Changelog]   - Added operation Fleets.beginUpdate
    info	[Changelog]   - Added operation Fleets.beginUpdateAndWait
    info	[Changelog]   - Added Interface AgentProfile
    info	[Changelog]   - Added Interface APIServerAccessProfile
    info	[Changelog]   - Added Interface FleetMembersUpdateHeaders
    info	[Changelog]   - Added Interface FleetsUpdateHeaders
    info	[Changelog]   - Added Interface ManagedServiceIdentity
    info	[Changelog]   - Added Interface NodeImageSelection
    info	[Changelog]   - Added Interface NodeImageSelectionStatus
    info	[Changelog]   - Added Interface NodeImageVersion
    info	[Changelog]   - Added Interface UserAssignedIdentity
    info	[Changelog]   - Added Type Alias ManagedServiceIdentityType
    info	[Changelog]   - Added Type Alias NodeImageSelectionType
    info	[Changelog]   - Interface Fleet has a new optional parameter identity
    info	[Changelog]   - Interface FleetHubProfile has a new optional parameter agentProfile
    info	[Changelog]   - Interface FleetHubProfile has a new optional parameter apiServerAccessProfile
    info	[Changelog]   - Interface FleetMembersUpdateOptionalParams has a new optional parameter resumeFrom
    info	[Changelog]   - Interface FleetMembersUpdateOptionalParams has a new optional parameter updateIntervalInMs
    info	[Changelog]   - Interface FleetPatch has a new optional parameter identity
    info	[Changelog]   - Interface FleetsUpdateOptionalParams has a new optional parameter resumeFrom
    info	[Changelog]   - Interface FleetsUpdateOptionalParams has a new optional parameter updateIntervalInMs
    info	[Changelog]   - Interface ManagedClusterUpdate has a new optional parameter nodeImageSelection
    info	[Changelog]   - Interface MemberUpdateStatus has a new optional parameter message
    info	[Changelog]   - Interface UpdateRunStatus has a new optional parameter nodeImageSelection
    info	[Changelog]   - Added Enum KnownManagedServiceIdentityType
    info	[Changelog]   - Added Enum KnownNodeImageSelectionType
    info	[Changelog]   - Enum KnownUpdateState has a new value Skipped
    info	[Changelog]
    info	[Changelog] **Breaking Changes**
    info	[Changelog]
    info	[Changelog]   - Removed operation FleetMembers.update
    info	[Changelog]   - Removed operation Fleets.update
️❌ azure-sdk-for-net-track2 failed [Detail]
  • Failed [Logs] Generate from 78af492fc9095ed12b158a220d61c7663fb24ccf. SDK Automation 14.0.0
    command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
    command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:712
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 712 | �[0m         �[36;1mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk. exit code: False
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGet-ChildItem: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:805
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 805 | �[0m … rtifacts += �[36;1mGet-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s�[0m …
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mCannot find path
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m'/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1mit does not exist.
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:712
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 712 | �[0m         �[36;1mGeneratePackage -projectFolder $projectFolder -sdkRootPath $s�[0m …
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk artifact
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
  • Azure.ResourceManager.ContainerService [View full logs]  [Preview SDK Changes]
    info	[Changelog]
️⚠️ azure-resource-manager-schemas warning [Detail]
  • ⚠️Warning [Logs] Generate from 78af492fc9095ed12b158a220d61c7663fb24ccf. Schema Automation 14.0.0
    command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
    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
    warn	No file changes detected after generation
  • ️✔️containerservice [View full logs
️❌ azure-powershell failed [Detail]
  • Pipeline Framework Failed [Logs] Generate from 78af492fc9095ed12b158a220d61c7663fb24ccf. SDK Automation 14.0.0
    command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
    command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
    SSL error: syscall failure: Broken pipe
    Error: SSL error: syscall failure: Broken pipe
  • ️✔️Az.containerservice.DefaultTag [View full logs
    error	Fatal error: SSL error: syscall failure: Broken pipe
    error	The following packages are still pending:
    error		Az.containerservice.DefaultTag
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 23, 2023

Generated ApiView

Language Package Name ApiView Link
Go sdk/resourcemanager/containerservicefleet/armcontainerservicefleet https://apiview.dev/Assemblies/Review/74e69114837a4b4a9b834ceca5b350b8
Java azure-resourcemanager-containerservicefleet https://apiview.dev/Assemblies/Review/f584eefc6acc479a95ca0298cb64df72
JavaScript @azure/arm-containerservicefleet https://apiview.dev/Assemblies/Review/e95f9bed1063482c88a8e82bef76c0e5
Swagger Microsoft.ContainerService https://apiview.dev/Assemblies/Review/9acc949eb4a64c9294edbeb61c232c69

@serbrech serbrech merged commit 44f2bc2 into dev-aks-fleet-2023-06-15-preview Aug 25, 2023
@serbrech serbrech deleted the zman/bump-fleet-tsp branch August 25, 2023 01:54
ms-henglu pushed a commit that referenced this pull request Aug 25, 2023
* Adds base for updating Microsoft.ContainerService/fleet from version preview/2023-03-15-preview to version 2023-06-15-preview

* Updates readme

* Updates API version in new specs and examples

* [Fleet][Dev] API 0615 changes (#25020)

* Adds base for updating Microsoft.ContainerService/fleet from version preview/2023-03-15-preview to version 2023-06-15-preview

* Updates readme

* Updates API version in new specs and examples

* sync with ADO repo

* exclude unneeded file changes

* revert tsp config

* revert helpers.tsp

* remove package files

* remove package files

* add known word containerd

* format

* remove .npmrc

* revert custom word

* revert package-lock.json

* re-generate json

* add example

* add example

* fix read-only fields

* fix read-only fields

* re-generate json with latest compiler

* add custom word back

* re-generate json

* restore config

* add examples

* add examples

* add examples

* add examples

* add examples

* add examples

* prettier

* fix examples

* git ignore

* review commoents

* fix examples

* make node image selection optional

* fix warnings

* fix warnings

* fix warnings

* fix docs

* revert package changes

* compile

* fix tspconfig (#25031)

* [Fleet][readmes] Dev aks fleet 2023 06 15 preview readmes (#25033)

* update readmes
* fix readme mistake

* fix operationid warnings (#25109)

* tsp format (#25111)

* Fix aks fleet 2023 06 15 preview patchasync from 0615 (#25131)

* do the breaking change only from 0615

* fix patch

* compile to get examples

* remove sample

* fix member upate operation (#25134)

* revert extension removal (#25189)

* generate with type spec v0.47.0 (#25484)

---------

Co-authored-by: Stéphane Erbrech <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants