Skip to content

fix: functions push producing empty python_bundle.sources on Windows#259

Open
Cedric / ViaDézo1er (viadezo1er) wants to merge 1 commit into
mainfrom
cedric/bt-functions-push-fails-on-Windows-with-empty-python-bundle-sources
Open

fix: functions push producing empty python_bundle.sources on Windows#259
Cedric / ViaDézo1er (viadezo1er) wants to merge 1 commit into
mainfrom
cedric/bt-functions-push-fails-on-Windows-with-empty-python-bundle-sources

Conversation

@viadezo1er

@viadezo1er Cedric / ViaDézo1er (viadezo1er) commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Path::canonicalize emits \?\ verbatim paths that the Python runner
can't reconcile against a clean cwd, so every source was filtered out.
dunce::canonicalize to strip the prefix, with a matching guard in
the Python runner

After running bt functions push .\answer_relevancy.py -p "Windows bt function push issue" --language python --runner .\.venv\Scripts\python.exe --requirements requirements.txt --if-exists replace -y on Windows:

Screenshot 2026-07-06 at 4 46 43 PM

(answer_relevancy hardcodes the project so it ignored the -p flag)

https://linear.app/braintrustdata/issue/SDK-9/bt-functions-push-fails-on-windows-with-empty-python-bundlesources

Path::canonicalize emits \\?\ verbatim paths that the Python runner
can't reconcile against a clean cwd, so every source was filtered out.
dunce::canonicalize to strip the prefix, with a matching guard in
the Python runner
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Latest downloadable build artifacts for this PR commit 748beb877b40:

Available artifact names
  • artifacts-build-global
  • artifacts-build-local-x86_64-apple-darwin
  • artifacts-build-local-aarch64-pc-windows-msvc
  • 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-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