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

[AKS] regex bug fix for LinuxProfile.AdminUser #3591

Merged
merged 3 commits into from
Aug 7, 2018

Conversation

zqingqing1
Copy link
Member

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@AutorestCI
Copy link

AutorestCI commented Aug 7, 2018

Automation for azure-sdk-for-python

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-python#3097

@AutorestCI
Copy link

AutorestCI commented Aug 7, 2018

Automation for azure-sdk-for-go

Nothing to generate for azure-sdk-for-go

@AutorestCI
Copy link

AutorestCI commented Aug 7, 2018

Automation for azure-sdk-for-ruby

Nothing to generate for azure-sdk-for-ruby

@AutorestCI
Copy link

AutorestCI commented Aug 7, 2018

Automation for azure-sdk-for-node

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-node#3304

@AutorestCI
Copy link

AutorestCI commented Aug 7, 2018

Automation for azure-sdk-for-java

Nothing to generate for azure-sdk-for-java

@@ -981,7 +981,7 @@
"adminUsername": {
"type": "string",
"description": "The administrator username to use for Linux VMs.",
"pattern": "^[a-z][a-z0-9_-]*$"
"pattern": "^[A-Za-z][-A-Za-z0-9_]*$"
Copy link
Member

Choose a reason for hiding this comment

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

Your current input files are:

input-file:
- Microsoft.ContainerService/stable/2017-07-01/containerService.json
- Microsoft.ContainerService/stable/2018-03-31/managedClusters.json
- Microsoft.ContainerService/stable/2017-09-30/location.json

and this PR creates this error:

INFO:swaggertosdk.autorest_tools:Process() cancelled due to exception : '$.definitions.ContainerServiceLinuxProfile.properties.adminUsername.pattern' has incompatible values (---
INFO:swaggertosdk.autorest_tools:'^[a-z][a-z0-9_-]*$'
INFO:swaggertosdk.autorest_tools:, ---
INFO:swaggertosdk.autorest_tools:'^[A-Za-z][-A-Za-z0-9_]*$'
INFO:swaggertosdk.autorest_tools:).

which means to me that containerService or location files defines this same object, and needs to be updated as well, or the model renamed to avoid conflicts.

@lmazuel
Copy link
Member

lmazuel commented Aug 7, 2018

@weinong The Go build is failing because you need to fix Microsoft.ContainerService/stable/2017-08-31/managedClusters.json as well.
SDK now supports multi-api versionning, this means the tag package-2017-09 is still part of the Go release, even if latest is package-2018-03. If think we agree anyway that the fix is relevant in 2017-08-31, and I'm not asking anything wrong.

@marstr This is the limit of shipping composite "package-2018-03" and "package-2017-09" in Go with mixed-up api-version. If tag one contains A and B, and tag two contains B and C, a simple fix in A spread to B and then C if you ship composite tags (FYI @johanste )

Copy link
Member

@lmazuel lmazuel left a comment

Choose a reason for hiding this comment

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

LGTM

@lmazuel
Copy link
Member

lmazuel commented Aug 7, 2018

@hovsepm I have no concerns anymore with the PR, up to you now. Thanks for tagging me initially :).

@hovsepm
Copy link
Contributor

hovsepm commented Aug 7, 2018

Thanks for helping @lmazuel .

@hovsepm hovsepm merged commit d5abc38 into Azure:master Aug 7, 2018
mccleanp pushed a commit that referenced this pull request Mar 23, 2022
* Wandisco.Fusion syncing swagger definitions

* Wandisco.Fusion syncing swagger definitions

> Hi @raych1, this was observed visually while preparing a new API review with breaking changes. We have updated the new API to reflect the corrected examples (not yet published), and it seemed sensible to back port them. I confirmed with the breaking change review team that updating examples is not considered breaking provided the API itself does not change, which it hasn't.
> 
> Do you see any issue that we might not have considered?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants