Skip to content

feat(cli): deprecate aws cloudformation install commands - #1201

Merged
Abhijeet Prasad (AbhiPrasad) merged 2 commits into
mainfrom
devin/1795810802-deprecate-braintrust-install
Nov 27, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 2 commits into
mainfrom
devin/1795810802-deprecate-braintrust-install

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

braintrust install (api, logs, bump-versions, run-migrations) is being retired rather than ported to bt. Code stays for now; each subcommand is registered via a shared add_deprecated_parser in cli/install/_deprecation.py, which:

boto3/botocore imports are deferred into the handlers, so --help works without braintrust[cli]; the missing-dependency message is preserved at run time. py/README.md notes the deprecation. cli/test_install.py runs the installed CLI (no mocks).

Companion docs/Makefile PR in braintrustdata/braintrust removes braintrust install from the CloudFormation guide.

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

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

The Python SDK's `braintrust install` commands are not moving to the new
CLI. Keep the commands working, but add a warning on stderr and mark
them deprecated in help.

Point operators to the CloudFormation guide for existing stacks and
recommend Terraform for AWS self-hosting.

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 27, 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-27T20:26:42.969219Z eda23af 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 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge; no actionable issues were found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Summary

Marks the AWS CloudFormation braintrust install commands as deprecated while keeping them available.

  • The four AWS install commands stay available but now warn users they’re deprecated.

No new actionable issues were found.

Reviews (2) · Last reviewed commit: "fix(cli): point deprecated install comma..." · Reviewed by Greptile

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

Self-hosting guides are for organizations with existing deployments.
Keep the deprecation warning and README focused on the CloudFormation
guide for those stacks, without recommending a different deployment
method.

Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com>
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit 6086f73 into main Nov 27, 2026
99 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the devin/1795810802-deprecate-braintrust-install branch November 27, 2026 21:42
Abhijeet Prasad (AbhiPrasad) added a commit that referenced this pull request Nov 30, 2026
## Summary
`braintrust eval` and `braintrust push` now print a stderr deprecation
warning pointing to the standalone
[`bt`](https://github.com/braintrustdata/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
```

---------

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