Skip to content

Add inline script execution support to bundle run - #2413

Merged
shreyas-goenka merged 103 commits into
mainfrom
bundle-exec
Apr 24, 2025
Merged

Add inline script execution support to bundle run#2413
shreyas-goenka merged 103 commits into
mainfrom
bundle-exec

Conversation

@shreyas-goenka

@shreyas-goenkashreyas-goenka commented Mar 2, 2025

Copy link
Copy Markdown
Contributor

Changes

This PR adds the ability to execute scripts inline using the databricks bundle run command. This allows users to execute commands with the same authentication credentials as the bundle is configured to use..

Note: The auth credentials are passed to child processes via environment variables.

Why

Configuring downstream tools like DBConnect to use the same authentication credentials as your bundle can be challenging. Having this command allows users to directly run databricks bundle run -t foo -- uv run pytest (or equivalent) to directly run integration tests against the configured target without having to worry about how to pass authentication credentials to DBConnect.

Tests

Acceptance tests.

Comment thread.wsignore Outdated
Comment threadlibs/exec/execv_windows.go Outdated
Comment threadlibs/exec/execv_windows.go
Comment threadcmd/bundle/run.go
Comment threadcmd/bundle/run.go
Comment threadacceptance/bundle/exec/databricks-cli/profile-is-passed/from_bundle/script Outdated
Comment threadacceptance/bundle/run/inline-script/basic/script
Comment threadlibs/exec/execv.go Outdated
Comment threadlibs/exec/execv_windows.go
Comment threadacceptance/bundle/run/inline-script/basic/output.txt
Comment threadlibs/exec/execv_windows.go Outdated
@denik

Copy link
Copy Markdown
Contributor

Great work, thanks for working with the feedback.

Sign up for freeto 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.

6 participants

@shreyas-goenka@denik@pietern@anton-107@andrewnester@lennartkats-db