-
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
Add check to require new specs use TypeSpec #27227
Conversation
Next Steps to Merge✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM). |
Swagger Validation Report
|
Swagger Generation Artifacts
|
PR validation pipeline restarted successfully. If there is ApiView generated, it will be updated in this comment. |
…iew or stable specs
} | ||
|
||
# Example: specification/foo/resource-manager/Microsoft.Foo | ||
$pathToServiceName = ($file -split '/')[0..3] -join '/' |
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.
It might be worth later using the regex above to get the path so we aren't blindly taking path segments that we don't know are what we expect.
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.
Left a few comments but otherwise we can get this in to start using and tweak it from there.
Job names cannot contain spaces, but step names can, hence my naming scheme. The default job name is just "Job" which looks awful to me, so I prefer to replace with something. Happy to rename if you have a better idea. |
Do we do this in other checks? If so, I'm happy to add to this check, otherwise I'd rather not for consistency. |
Re
Which is a bit silly. But it is a remote concern. Still better than having two exactly the same names, which we often have in openai-alps 🤦. Maybe we could call the task/step e.g. Re URL in logs: I don't think our checks diag. logs try to stay consistent with other checks in any way, so I wouldn't be worried about that. But this is a minor convenience anyway. |
You can get around the space issue by using displayName, |
Results for sample PRs available here: https://dev.azure.com/azure-sdk/public/_build?definitionId=6659