engSys, redirect autorest deprecation message from stderr to stdout#48267
Merged
XiaofeiCao merged 3 commits intomainfrom Mar 7, 2026
Merged
engSys, redirect autorest deprecation message from stderr to stdout#48267XiaofeiCao merged 3 commits intomainfrom
XiaofeiCao merged 3 commits intomainfrom
Conversation
This reverts commit ebc9ddf.
weidongxu-microsoft
approved these changes
Mar 6, 2026
Member
There was a problem hiding this comment.
We've tried failOnStderr=false in autorest.java repo pipeline (it should be false by default anyway)
https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/powershell-v2?view=azure-pipelines
It does not work.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the code-generation verification script to avoid CI failures caused by AutoRest 3.8.0 emitting a deprecation message to stderr while still exiting with code 0.
Changes:
- Redirects the Swagger regeneration script’s error stream (stderr / stream 2) into the success output stream when capturing output.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
autorest 3.8.0 will emit deprecation message to stderr with exit code 0, which will break CI that's using it.
This PR redirects stderr to stdout. Alternative be, pinning autorest to previous 3.7.2, as we likely not going to upgrade it.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines