Skip to content

Mark auto-opt command as deprecated#2442

Merged
shaahji merged 1 commit into
mainfrom
shaahji/deprecate
May 11, 2026
Merged

Mark auto-opt command as deprecated#2442
shaahji merged 1 commit into
mainfrom
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
@shaahji shaahji merged commit e0e64a5 into main May 11, 2026
11 checks passed
@shaahji shaahji deleted the shaahji/deprecate branch May 11, 2026 21:44
bmehta001 pushed a commit that referenced this pull request May 22, 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
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.

4 participants