Skip to content

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

Merged
Cedric / ViaDézo1er (viadezo1er) merged 1 commit into
mainfrom
cedric/bt-functions-push-fails-on-Windows-with-empty-python-bundle-sources
Jul 7, 2026
Merged

fix: functions push producing empty python_bundle.sources on Windows#259
Cedric / ViaDézo1er (viadezo1er) merged 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

@viadezo1er Cedric / ViaDézo1er (viadezo1er) merged commit 83a7ec1 into main Jul 7, 2026
32 checks passed
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.

2 participants