Skip to content

feat(cli): deprecate braintrust eval and push - #1203

Merged
Abhijeet Prasad (AbhiPrasad) merged 4 commits into
mainfrom
devin/1795995197-deprecate-eval-push-cli
Nov 30, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 4 commits into
mainfrom
devin/1795995197-deprecate-eval-push-cli

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

braintrust eval and braintrust push now print a stderr deprecation warning pointing to the standalone bt CLI, and are marked (deprecated) in --help. Both commands keep working unchanged.

Follows the approach from #1201 via a shared cli/_deprecation.py (add_deprecated_parser), independent of cli/install/ (which is being removed separately). __main__.py is untouched.

Warning: braintrust eval is deprecated. Use bt eval. Install bt: https://github.com/braintrustdata/bt#installation
Warning: braintrust push is deprecated. Use bt functions push. Install bt: https://github.com/braintrustdata/bt#installation

> 🤖 **This text was AI-generated.**

The Python CLI still runs evals and pushes code, but it does not tell
users how to switch to the standalone bt CLI.

Reuse the warning and help pattern from
#1201.
Point users to `bt eval` and `bt functions push` without changing how
either legacy command runs. Note that Eval() sandbox registration still
requires `braintrust push`.

Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T23:40:00.256994Z 2061baf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable defects remain.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable defects remain.

Summary

Adds deprecation warnings for braintrust eval and braintrust push, points users to bt, and marks both commands deprecated in help.

  • Eval and push now point users to the bt CLI.

Reviews (2) · Last reviewed commit: "test(cli): remove deprecation subprocess..." · Reviewed by Greptile

devin-ai-integration Bot and others added 3 commits November 29, 2026 23:40
> 🤖 **This text was AI-generated.**

The migration warnings listed differences that distracted from the
command to run next. Keep the warnings focused on `bt eval` and
`bt functions push` and end each with the installation link. This
changes the warning and help text, not command behavior.

Follow-up for #1203.

Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com>
> 🤖 **This text was AI-generated.**

The install CLI is being removed separately. Keep the eval and push
warning helper in `cli/_deprecation.py` and leave all install files as
they are on main so that removal does not conflict with these warnings.

Follow-up for #1203.

Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com>
> 🤖 **This text was AI-generated.**

Keep the deprecation change limited to the command warnings and help
text. Remove the new subprocess test file without changing the existing
CLI tests.

Follow-up for #1203.

Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com>
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 478c4de into main Nov 30, 2026
99 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the devin/1795995197-deprecate-eval-push-cli branch November 30, 2026 14:46
Abhijeet Prasad (AbhiPrasad) added a commit that referenced this pull request Nov 30, 2026
## Summary
Removes the `braintrust install` CloudFormation commands deprecated in
#1201 (docs already dropped them in braintrustdata/braintrust#27670):
deletes `cli/install/`, `cli/test_install.py`, and `braintrust/aws.py`
(only used by install), and drops the `install` registration in
`cli/__main__.py`.

**BREAKING:** `braintrust install ...` now errors as an unknown command.

boto3:
- Removed from the `cli` extra, `all` extra, and `test-cli` group (only
there for install; `test_cli` runs devserver tests).
- Kept: bedrock_runtime / aiobotocore nox sessions install their own
pinned AWS SDKs via `[tool.braintrust.matrix]`; the Bedrock example
declares its own `boto3`. `uv.lock` still has boto3 transitively via
LiteLLM.

`cli` extra stays (minus boto3) with a `# TODO: remove the cli extra in
the next major version.` comment, matching `doc`/`temporal`.

Lockfiles refreshed (`py/uv.lock`, ADK and LangChain integration
lockfiles that reference the local SDK).

**Related:** #1203 deprecates `braintrust eval`/`push` and adds
`cli/_deprecation.py`. This PR doesn't touch that file, `eval.py`, or
`push.py`, and currently merges cleanly with it; whichever lands second
should rebase.

Link to Devin session:
https://braintrust.devinenterprise.com/sessions/da9e750b6ae747579b98fef4ec71dd92
Open in Devin Desktop:
https://braintrust.devinenterprise.com/desktop/session/da9e750b6ae747579b98fef4ec71dd92?variant=devin

---------

Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.

1 participant