Skip to content

Mark auto-opt command as deprecated#2442

Open
shaahji wants to merge 1 commit intomainfrom
shaahji/deprecate
Open

Mark auto-opt command as deprecated#2442
shaahji wants to merge 1 commit intomainfrom
shaahji/deprecate

Conversation

@shaahji
Copy link
Copy Markdown
Collaborator

@shaahji shaahji commented May 4, 2026

Mark auto-opt command as deprecated

Checklist before requesting a review

  • Add unit tests for this change.
  • Make sure all tests can pass.
  • Update documents if necessary.
  • Lint and apply fixes to your code by running lintrunner -a
  • Is this a user-facing change? If yes, give a description of this change to be included in the release notes.

(Optional) Issue link

Copilot AI review requested due to automatic review settings May 4, 2026 19:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Marks the auto-opt CLI command as deprecated by surfacing a deprecation notice both in --help output and at runtime.

Changes:

  • Adds a module-level logger for the command implementation.
  • Updates auto-opt subcommand help text to include a deprecation warning.
  • Logs a deprecation warning when auto-opt is executed.

Comment thread olive/cli/auto_opt.py Outdated
Comment thread olive/cli/auto_opt.py Outdated
@shaahji shaahji force-pushed the shaahji/deprecate branch 3 times, most recently from 7961487 to 70f1d79 Compare May 4, 2026 19:32
Comment thread olive/cli/auto_opt.py Fixed
Comment thread olive/cli/auto_opt.py Fixed
Comment thread olive/cli/auto_opt.py Fixed
Comment thread olive/cli/auto_opt.py Fixed
@shaahji shaahji force-pushed the shaahji/deprecate branch from 70f1d79 to 02fadac Compare May 4, 2026 19:54
@shaahji shaahji enabled auto-merge (squash) May 5, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants