- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.1k
[Infra] Trigger pipeline fail if help generation throws an error. #28771
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
base: main
Are you sure you want to change the base?
[Infra] Trigger pipeline fail if help generation throws an error. #28771
Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. | 
| This commit will cause desired behaviour (pipeline fail on help generation error): 7128c98 But will attempt with pipeline config level fix. | 
This reverts commit 9b3cbc5.
… xxx-help-file-online-version-check
| Have cherry-picked the fix from release branch, to verify it will run green once help files are rectified. | 
This reverts commit 0744609.
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.
Pull Request Overview
This PR adds exit code validation to the analyze-steps.ps1 pipeline script to ensure that help generation and static analysis commands fail the pipeline appropriately when they encounter errors.
Key changes:
- Introduced a new Assert-ExitCodeSuccesshelper function to validate exit codes
- Added exit code checks after help generation and static analysis operations
Co-authored-by: Copilot <[email protected]>
Description
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.