Skip to content

Add inline script execution support to bundle run#2413

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

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

Conversation

@shreyas-goenka
Copy link
Copy Markdown
Contributor

@shreyas-goenka shreyas-goenka commented Mar 2, 2025

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.

@denik
Copy link
Copy Markdown
Contributor

denik commented Apr 24, 2025

Great work, thanks for working with the feedback.

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.

6 participants