-
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
[Se] Implementation of TypeSpec 'infoblurb' Mechanism in Brownfield PRs #30370
Comments
I think this should be added to the existing check "TypeSpec Requirement", which already has the logic to determine greenfield vs brownfield. Here's the conclusion of the check: azure-rest-api-specs/eng/scripts/TypeSpec-Requirement.ps1 Lines 169 to 175 in 46b3863
After L170, the check should additionally:
And last but not least:
|
@mario-guerra, @MattGertz: What should happen if check TypeSpecRequirement is suppressed? Should it be skipped or still apply? The initial feature request says "skip", but I wanted to double-check. Currently, the tool checks for suppressions very early, and skips all other analysis if the check is suppressed. Since we want very much to avoid the tool failing or crashing if the spec author has suppressed it. azure-rest-api-specs/eng/scripts/TypeSpec-Requirement.ps1 Lines 83 to 90 in b88e6ad
So if TSR is suppressed, it will also suppress all the brownfield notices. Currently, I believe very few specs should have TSR suppressed, and any which do should be tracked by ARM or DP. |
@mikeharder it's fine if the infoblurb is suppressed when the TSR suppression is applied. |
API Spec link
NA
API Spec version
NA
Please describe the feature.
We need to set up a mechanism to insert a non-blocking, high-visibility comment in every brownfield PR for services not yet converted to TypeSpec. This is part of the Brownfields adoption plan, aiming to encourage early adoption of TypeSpec conversion. The comment should inform teams about the TypeSpec tool and offer hands-on assistance from the TypeSpec Onboarding Support team for early adopters. It's crucial that this comment does not block PR merging and can be suppressed by teams blocked from converting due to pending centralized work.
Criteria for the comment to appear:
Action:
This setup should not include any blocking warnings, only a non-blocking comment. The text of the comment should be as follows:
The text was updated successfully, but these errors were encountered: