Add deprecation warning to AutoRest CLI banner#5177
Conversation
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
|
@copilot the CI is failing in openapi-to-typespec package test. Can you check why, this might be due to rush wrongly assuming stderr means it should fail. We want to keep it in stderr so make sure to update the test |
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
The CI failure was caused by Rush treating any stderr output as a build failure. When Fixed in f97dafb by changing |
packages/extensions/openapi-to-typespec/test/utils/generate-typespec.ts
Outdated
Show resolved
Hide resolved
…wWarningsInSuccessfulBuild Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
|
You may test this build by running Add the following CLI flags
Or with all autorest --version:https://tinyurl.com/26zcnqo6 --use:https://tinyurl.com/2bvnsoytor use the following in your autorest configuration: # For changes to autorest core
version: "https://tinyurl.com/26zcnqo6"
# For changes to modelerfour
use-extension:
"@autorest/modelerfour": "https://tinyurl.com/2bvnsoyt"If this build is good for you, give this comment a thumbs up. (👍) And you should run `autorest --reset` again once you're finished testing to remove it. |
timotheeguerin
left a comment
There was a problem hiding this comment.
@copilot please add the rush changelog for this
Co-authored-by: timotheeguerin <1031227+timotheeguerin@users.noreply.github.com>
|
You may test this build by running Add the following CLI flags
Or with all autorest --version:https://tinyurl.com/2ybmft4y --use:https://tinyurl.com/26b9ujy7or use the following in your autorest configuration: # For changes to autorest core
version: "https://tinyurl.com/2ybmft4y"
# For changes to modelerfour
use-extension:
"@autorest/modelerfour": "https://tinyurl.com/26b9ujy7"If this build is good for you, give this comment a thumbs up. (👍) And you should run `autorest --reset` again once you're finished testing to remove it. |
AutoRest is being retired on July 1, 2026. This adds a visible deprecation warning to the CLI banner to notify users and direct them to migrate to TypeSpec.
Changes
packages/apps/autorest/src/app.ts: Addedconsole.warnwithchalk.yellow.boldstyling at the end oflogBanner():regularmessage-format mode (suppressed in JSON/YAML output, consistent with existing banner behavior)console.warnto write to stderr, keeping the warning semantically correcttest:cicommand is already configured withallowWarningsInSuccessfulBuild: trueincommon/config/rush/command-line.json, so stderr output from the deprecation warning does not cause CI failurescommon/changes/autorest/add-deprecation-warning_2026-02-27-13-21.json: Added Rush changelog entry (minorbump) for the deprecation warning.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.