Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions acceptance/bundle/python/restricted-execution/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
value_from_env

=== With DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION=1, no envs are accessible
>>> errcode uv run [UV_ARGS] -q [CLI] bundle summary
>>> musterr uv run [UV_ARGS] -q [CLI] bundle summary
Error: Running Python code is not allowed when DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION is set

Exit code: 1
Exit code (musterr): 1

>>> musterr cat envs.txt
cat: envs.txt: No such file or directory

Exit code: 1
Exit code (musterr): 1
4 changes: 2 additions & 2 deletions acceptance/bundle/python/restricted-execution/script
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rm -rf envs.txt

export DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION=1
title "With DATABRICKS_BUNDLE_RESTRICTED_CODE_EXECUTION=1, no envs are accessible"
trace errcode uv run $UV_ARGS -q $CLI bundle summary | jq '.experimental'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We run with pipefail.

errcode cat envs.txt
trace musterr uv run $UV_ARGS -q $CLI bundle summary
trace musterr cat envs.txt

rm -fr .databricks __pycache__