Skip to content

Conversation

@varundeepsaini
Copy link
Contributor

Closes #4131

Changes

Pass authentication environment variables to the Python mutator subprocess, allowing WorkspaceClient() to function without explicit authentication configuration.

Why

Fixes issue where Python mutators couldn't use WorkspaceClient() without manually passing auth arguments. The CLI now passes DATABRICKS_HOST, DATABRICKS_TOKEN, and other environment variables to the Python subprocess.

Tests

  • Unit test verifying auth env vars are passed to subprocess
  • Acceptance test (bundle/python/workspace-client-auth) that creates a WorkspaceClient() and calls current_user.me()

@github-actions
Copy link

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 4172
  • Commit SHA: 0938a25a97727eee7c69a26efcc61dbc418070bf

Checks will be approved automatically on success.

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.

Pass AuthContext to Python Mutator Functions / Create WorkspaceClient without additional config

1 participant