-
Notifications
You must be signed in to change notification settings - Fork 4k
Break the build when cmdlets do not map to doc grouping. #5079
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
Conversation
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.
@twitchax one minor comment, otherwise LGTM
@@ -57,5 +57,9 @@ $results | ConvertTo-Json | Out-File $OutputFile; | |||
# Print conclusion. |
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.
@twitchax as a side note: since this cmdlet is writing to the progress stream (👎), we should turn it off during CI so it doesn't slow the build down like it did for help generation. Currently it's take ~40 seconds for this script to run, so we could shave off some time if we set ProgressPreference = 'SilentlyContinue'
for this script execution.
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.
Good point: will do.
|
||
if($warnings.Count -gt 0) { | ||
Write-Host "$($warnings.Count) cmdlets could not be mapped and were placed in 'Other': $($WarningFile)." -ForegroundColor Yellow; | ||
throw "Some cmdlets could not be properly mapped to a documentation grouping: $($warnings -join ", "). Please add a mapping rule to $(Resolve-Path -Path $RulesFile)."; |
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.
@twitchax I guess one more comment: if an on-boarding service breaks their PR's build due to this failure, do we have any guidance around what their regex
/alias
keys should map to in the .json
file?
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.
Not yet: we should probably add something to the developer guide. However, looking at the file makes it fairly self-explanatory.
@cormacpayne, this should be ready. :) |
@twitchax it looks like your update to the script is working 😉 |
@azuresdkci test this please. |
@azuresdkci test this please. |
Description
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThru
parameter.Cmdlet Parameter Guidelines