-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[NetAppFiles] Apply 2020-12-01 api-version and recordings #19642
[NetAppFiles] Apply 2020-12-01 api-version and recordings #19642
Conversation
Note we had issues with generated validation code (not checking for null values) causes issues for SDK clients such as powershell. See: Azure/autorest#3585 The fix is to use specific version of AutoRest to generate the code this is incorrectly flagged as discrepancy with reference code and was also flagged in previous version see more details in comment here #18851 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found out what it looks like a breaking change in SnapshotPolicy,
Everything else looks good, just CI tests still need to get fixed.
sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicy.cs
Show resolved
Hide resolved
sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicyDetails.cs
Show resolved
Hide resolved
sdk/netapp/Microsoft.Azure.Management.NetApp/src/Generated/Models/SnapshotPolicyPatch.cs
Show resolved
Hide resolved
@JonathanCrd The CI issue is due to the pipeline incorrectly assumes discrepancy with generated code and reference code, it thinks generated code has been changed. It has not been changed and this was an issue with last release as well due to AutoRest flags being used. @allenjzhang can you assist with this issue? |
Yes, the reason they are failing it's because the version is hardcoded in the generate script. Everything looks good. |
/check-enforcer reset |
@JonathanCrd I don't know of any other way to get around the original issue. The version of AutoRest used was generating faulty validation code, by not performing null-check before trying to validate nullable properties using the % operator Azure/autorest#3585 |
/azp run net - mgmt - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
Azure/azure-rest-api-specs#13388
All SDK Contribution checklist:
This checklist is used to make sure that common guidelines for a pull request are followed.
Draft
mode if it is:General Guidelines and Best Practices
Testing Guidelines
SDK Generation Guidelines
*.csproj
andAssemblyInfo.cs
files have been updated with the new version of the SDK. Please double check nuget.org current release version.Additional management plane SDK specific contribution checklist:
Note: Only applies to
Microsoft.Azure.Management.[RP]
orAzure.ResourceManager.[RP]
Management plane SDK Troubleshooting
new service
label and/or contact assigned reviewer.Verify Code Generation
step, please ensure:generate.ps1/cmd
to generate this PR instead of callingautorest
directly.Please pay attention to the @microsoft.csharp version output after running generate.ps1. If it is lower than current released version (2.3.82), please run it again as it should pull down the latest version,
Old outstanding PR cleanup
Please note:
If PRs (including draft) has been out for more than 60 days and there are no responses from our query or followups, they will be closed to maintain a concise list for our reviewers.