-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[FEATURE REQ] New readme.md repo PR check to enforce Azure service versioning #31506
Comments
@JeffreyRichter: This has significant overlap with #29065. I'm fine merging the issues or tracking separately. Your request would be implemented in a new check named something like What should be done about existing specs? Try to validate them and fix them, either in bulk or by adding suppressions? Or make this check only run on PRs, so specs are only forced to fix (or suppress) in their next PR? Note this may come as a surprise, when spec authors make a small bugfix PR, and are confronted with a versioning violation. If needed, we can try to reduce the scope of when the check runs. It's fairly easy to only run when certain files (like Or, we can just tell spec authors to add a suppression in |
You can merge #29065 and this issue. I had forgotten that #29065 was created. I added something to this issue missing from #29065 (an error to have a file in the version dir not in the input-file section) and #29065 has something that I'm missing from this issue (stable and preview API versions ❗cannot❗ have the same date) but we do want it ALL. Right now, only run on PRs that have changed the readme.md file. Let's hold off on allowing suppressions. But, maybe Mike or I could add a label to counter the "BrokenServiceVersioning" (my initial proposed label name - may change) such as "BrokenServiceVersioning-TemporaryException" (also initial proposed label name - may change). It would be nice to have a tool that can identify existing broken specs and then @mikekistler and & I can reach out to those teams and work with them to get things fixed. You won't be able to auto-fix existing specs that are broken; the service team must make some decisions first. |
I don't think this is sufficient, and we'll need to run on any changes under the folder containing
Easy to add later.
Since the problem is in the source code (
This should be standard for all new checks, which should support all the following "modes":
|
We may also want to require a "formal azure service name" in the |
API Spec link
NA
API Spec version
NA
Please describe the feature.
Each Azure service version must consist of operations that all share the same api-version.
Also, a service cannot mix & match stable and preview operations.
This is required for docs, SDK versions, and more.
This feature request is to add a PR check that looks at a new readme.md file, finds the latest default "tag".
This value MUST be of the format YYYY-MM-DD and can have an optional -preview suffix, or the tag value is an error and the PR cannot be merged.
In the readme.md's "input-file:" section, all paths MUST have a version that matches the tag value exactly, or the PR cannot be merged. SIDENOTE: This ensures that a preview version consists of only preview json files and a stable version consists of only stable json files.
It is an error and the PR cannot be merged if a json file exists in the version folder that is missing from the "input-file:" section. This catches a bug where the json file exists but was forgotten to be added to the "input-file:" section.
The text was updated successfully, but these errors were encountered: