Skip to content

fix(functions): reject python bundle paths with whitespace#99

Open
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit intomainfrom
abhi-fix-bt-4686-python-push-whitespace
Open

fix(functions): reject python bundle paths with whitespace#99
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit intomainfrom
abhi-fix-bt-4686-python-push-whitespace

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

Fail fast in bt functions push when a Python source file or package path contains whitespace. These paths cannot be imported safely by the generated register.py entrypoint, which could otherwise allow a successful push and later fail at runtime.

Also add regression coverage for filenames with embedded and leading spaces.

ref https://linear.app/braintrustdata/issue/BT-4686/

Fail fast in bt functions push when a Python source file or package path
contains whitespace. These paths cannot be imported safely by the generated
register.py entrypoint, which could otherwise allow a successful push and
later fail at runtime.

Also add regression coverage for filenames with embedded and leading spaces.

Refs BT-4686
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 7, 2026

Latest downloadable build artifacts for this PR commit 5e3e19c30eaa:

Available artifact names
  • ``artifacts-build-global
  • ``artifacts-build-local-x86_64-apple-darwin
  • ``artifacts-build-local-x86_64-pc-windows-msvc
  • ``artifacts-build-local-x86_64-unknown-linux-musl
  • ``artifacts-build-local-x86_64-unknown-linux-gnu
  • ``artifacts-build-local-aarch64-apple-darwin
  • ``artifacts-build-local-aarch64-unknown-linux-musl
  • ``artifacts-build-local-aarch64-unknown-linux-gnu
  • ``artifacts-plan-dist-manifest
  • ``cargo-dist-cache

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