Skip to content

fix(workflow-eval): remove top-level exports - #887

Closed
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit into
mainfrom
abhi/revert-workflow-import-ba371dd8
Closed

Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit into
mainfrom
abhi/revert-workflow-import-ba371dd8

Conversation

@AbhiPrasad

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Keep workflow evaluation imports scoped to braintrust.workflow_eval by removing the top-level wildcard re-export.
  • Add a snapshot test for the complete top-level braintrust export set. The expected names live in the test module, so there is no separate snapshot asset in the wheel.

Validation

  • cd py && make build && make test-wheel — 952 passed, 93 skipped, 12 xfailed.
  • Pre-commit hooks passed.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-07T19:46:44.945313Z 4d97581 New commits
ℹ️ 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.

@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) force-pushed the abhi/revert-workflow-import-ba371dd8 branch from 94f29e8 to b039868 Compare October 7, 2026 19:35

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b03986801a

ℹ️ About Codex in GitHub

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

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

text=True,
)
actual = json.loads(result.stdout)
expected = Path(__file__).with_name("top_level_exports.txt").read_text().splitlines()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Package the export snapshot for wheel tests

When test_core runs with --wheel, pytest loads this test from the installed wheel, but top_level_exports.txt is not included because [tool.setuptools.package-data] currently lists only py.typed. Consequently this read_text() raises FileNotFoundError, breaking make test-wheel/make verify-build; add the snapshot to package data or embed it in the test.

AGENTS.md reference: AGENTS.md:L147-L150

Useful? React with 👍 / 👎.

Keep workflow evaluation symbols available only from braintrust.workflow_eval by removing the wildcard re-export from braintrust.__init__.

Add a snapshot test for the top-level package exports. Keep the expected names in the test module so there is no separate snapshot file in the distributed wheel.

Validation: cd py && make build && make test-wheel (952 passed, 93 skipped, 12 xfailed).
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) force-pushed the abhi/revert-workflow-import-ba371dd8 branch from b039868 to 4d97581 Compare October 7, 2026 19:43
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi/revert-workflow-import-ba371dd8 branch October 7, 2026 19:46
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