-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
chore: Add jsonfmt to CI #6496
chore: Add jsonfmt to CI #6496
Conversation
Automation for azure-sdk-for-goUnable to detect any generation context from this PR. |
Automation for azure-sdk-for-javaThis PR contains more than 3 context, SDK generation is not enabled. Contexts found:
|
Automation for azure-sdk-for-rubyThis PR contains more than 3 context, SDK generation is not enabled. Contexts found:
|
Automation for azure-sdk-for-pythonUnable to detect any generation context from this PR. |
Can one of the admins verify this patch? |
@sergey-shandar @jhendrixMSFT since most of the formatting PRs are landed, I figure it might be ok to introduce this again. I added a commit that finishes off the formatting changes, althought it is a cross a few APIs. Figure that doesn't matter since it is only whitespace changes, so generating the SDK shouldn't be needed |
d24c2ba
to
ce0fbcf
Compare
@nschonni , could you please fix CI errors first? |
one concern is that caarlos0/jsonfmt is maintained by individual and it may break |
To me it looks good however I'm not super-familiar with the CI pipeline so @sergey-shandar will have to review that part. |
I'll rebase again, but there is now #6529 #6530, #6531 and #6543, but non of them have model validation errors (it was just blueprint)
Sure, maybe there is something else you'd prefer, but I found this was fast and pretty simple (code-wise). Looks like the author is also the maintainer for goreleaser, but I'm not sure if this tool is part of that large project or not. |
@erich-wang you can probably unselect the other reviews since they were added by CODEOWERS for files no longer included in the PR. Maybe add @sergey-shandar though |
@nschonni , thank you for your contribution. Just discussed with @sergey-shandar, we suggested to remove jsonfmt job first from this PR because of legal issue. |
Not sure if it understand what the legal issue is? I did notice that they didn't explictly add the MIT license in the repo, but only the metadata, so I opened an issue for that |
legal issue is one concern. Docker image maintained by individual is also unacceptable because:
|
@nschonni , do you plan to create new PR or update this PR to remove jsonfmt job? I'll close this PR if it is the former. |
A license has now been added to the repo (I believe that covers your legal concern). I'll swap over to |
03109e1
to
3786ca7
Compare
Sent a separate PR for the model validation in #6576 |
As I mentioned before, we're not going to depend on bits maintained by individual, which definitely introduces risk, .e.g somehow the individual delete the bits or update the bits with break change. So please remove the job for now, we may find out a feasible way later. |
@erich-wang what is an acceptable tool for you then? The CI is the important bit, since the diffs get getting introduced in the manual swagger generation.
Is it because it isn't published to a repository? There are several things in package.json that are under individuals accounts |
IMO, we should use the tool introduced by well known organization/company/person. We don't want to introduce any unnecessary risk into the CI.
|
The author is a well known enough that they are one of the early GH sponsored developers https://github.com/users/caarlos0/sponsorship as they created the main release automation tool for the GoLang ecosystem |
@nschonni, if the person somehow delete the release (by accidentally), how should we handle it? |
@eric-wang, that's a good question. 2 ways I can see to protect against that if you think it might happen:
|
Thank you, @nschonni. Could you help to create one issue to track the change request? |
@nschonni , I just created new issue Add Json format check to CI to track the request, and I'll close this PR tomorrow, please let me know if any concern. |
* Copy 2022-01-01-preview API to new version folder * Update API version number * Remove deprecated TacList field * Rename interfaces to be 4G/5G agnostic * Remove SIM activation/deactivation API paths as this action is no longer supported * Update configurationState field to be more generic and useful * Fix linting errors * Fix up interface documentation strings * Commit changes from prettier * Replace ConfigurationState with SimState in 2021-04-01-preview API * Fix up accidental change * Markups from ARM review Co-authored-by: Fiona Corden <[email protected]>
From the first commit, you can see what it will look like when it flags something https://github.com/Azure/azure-rest-api-specs/runs/158157607 and https://dev.azure.com/azure-sdk/public/_build/results?buildId=59285&view=logs&j=dd0cd357-d1b7-5790-a9ca-02e6141fdcee&t=f0dc0e92-0db8-5392-c719-0529f3430b64&l=18