Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ experimental.use_legacy_run_as false
has_classic_interactive_compute false
has_classic_job_compute false
has_serverless_compute true
is_maybe_auto_migration_compatible true
local.cache.attempt true
local.cache.miss true
presets_name_prefix_is_set false
python_wheel_wrapper_is_set false
run_as_set false
skip_artifact_cleanup false
state_path_is_shared false
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ experimental.use_legacy_run_as false
has_classic_interactive_compute false
has_classic_job_compute false
has_serverless_compute true
is_maybe_auto_migration_compatible true
local.cache.attempt true
local.cache.miss true
presets_name_prefix_is_set false
python_wheel_wrapper_is_set false
run_as_set false
skip_artifact_cleanup false
state_path_is_shared false
2 changes: 2 additions & 0 deletions acceptance/bundle/resource_deps/resources_var/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ experimental.use_legacy_run_as false
has_classic_interactive_compute false
has_classic_job_compute false
has_serverless_compute false
is_maybe_auto_migration_compatible true
local.cache.attempt true
local.cache.hit true
presets_name_prefix_is_set true
python_wheel_wrapper_is_set false
run_as_set false
skip_artifact_cleanup false
state_path_is_shared false
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ has_classic_interactive_compute false
has_classic_job_compute false
has_serverless_compute false
has_tf_only_references true
is_maybe_auto_migration_compatible true
local.cache.attempt true
local.cache.hit true
presets_name_prefix_is_set false
python_wheel_wrapper_is_set false
run_as_set false
skip_artifact_cleanup false
state_path_is_shared false
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ Deployment complete!
"key": "skip_artifact_cleanup",
"value": false
},
{
"key": "state_path_is_shared",
"value": false
},
{
"key": "is_maybe_auto_migration_compatible",
"value": true
},
{
"key": "has_serverless_compute",
"value": false
Expand Down
16 changes: 16 additions & 0 deletions acceptance/bundle/telemetry/deploy-compute-type/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ Deployment complete!
"key": "skip_artifact_cleanup",
"value": false
},
{
"key": "state_path_is_shared",
"value": false
},
{
"key": "is_maybe_auto_migration_compatible",
"value": true
},
{
"key": "has_serverless_compute",
"value": true
Expand Down Expand Up @@ -83,6 +91,14 @@ Deployment complete!
"key": "skip_artifact_cleanup",
"value": false
},
{
"key": "state_path_is_shared",
"value": false
},
{
"key": "is_maybe_auto_migration_compatible",
"value": true
},
{
"key": "has_serverless_compute",
"value": true
Expand Down
8 changes: 8 additions & 0 deletions acceptance/bundle/telemetry/deploy-experimental/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ Deployment complete!
"key": "skip_artifact_cleanup",
"value": false
},
{
"key": "state_path_is_shared",
"value": false
},
{
"key": "is_maybe_auto_migration_compatible",
"value": true
},
{
"key": "has_serverless_compute",
"value": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ Deployment complete!
"key": "skip_artifact_cleanup",
"value": false
},
{
"key": "state_path_is_shared",
"value": false
},
{
"key": "is_maybe_auto_migration_compatible",
"value": true
},
{
"key": "has_serverless_compute",
"value": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ Deployment complete!
"key": "skip_artifact_cleanup",
"value": false
},
{
"key": "state_path_is_shared",
"value": false
},
{
"key": "is_maybe_auto_migration_compatible",
"value": true
},
{
"key": "has_serverless_compute",
"value": false
Expand Down
16 changes: 16 additions & 0 deletions acceptance/bundle/telemetry/deploy-whl-artifacts/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ Deployment complete!
"key": "skip_artifact_cleanup",
"value": false
},
{
"key": "state_path_is_shared",
"value": false
},
{
"key": "is_maybe_auto_migration_compatible",
"value": true
},
{
"key": "has_serverless_compute",
"value": false
Expand Down Expand Up @@ -84,6 +92,14 @@ Deployment complete!
"key": "skip_artifact_cleanup",
"value": true
},
{
"key": "state_path_is_shared",
"value": false
},
{
"key": "is_maybe_auto_migration_compatible",
"value": true
},
{
"key": "has_serverless_compute",
"value": false
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
bundle:
name: test-bundle

# The deploying user is tester@databricks.com. A workspace folder under
# /Workspace/Users/<owner> grants <owner> CAN_MANAGE, so the deploy observes that
# inherited access in the SetPermissions response. Each target below places the
# deployment state in a different location with different declared permissions to
# exercise the permission-scope telemetry.
targets:
# --- state in /Workspace/Shared (not synced; verdict is static) ---

# group_name: users has CAN_MANAGE, so the all-users access is declared.
shared_users_can_manage:
default: true
permissions:
- group_name: users
level: CAN_MANAGE
workspace:
state_path: /Workspace/Shared/test-bundle-state

# users group not granted: the all-users access is not declared.
shared_not_declared:
permissions:
- user_name: ${workspace.current_user.userName}
level: CAN_MANAGE
workspace:
state_path: /Workspace/Shared/test-bundle-state

shared_no_permissions:
workspace:
state_path: /Workspace/Shared/test-bundle-state

# --- state under the deploying user's home (the default layout) ---

# The deploying user is declared, so the inherited owner access is declared too.
user_declared:
permissions:
- user_name: ${workspace.current_user.userName}
level: CAN_MANAGE

# The deploying user is not declared, but as the folder creator they retain access.
# That is allowed for migration, even though it exceeds the declared permissions.
user_not_declared:
permissions:
- group_name: team
level: CAN_MANAGE

# No permissions: not synced, so the verdict is static. The state is under the
# deploying user's home, so it is migratable. (For no-permissions bundles the live
# ACL is never observed, so "match" and "not match" coincide.)
user_no_permissions: {}

# --- state under another user's home ---

# The other user (the home owner) is declared, so their inherited access is declared.
another_user_declared:
permissions:
- user_name: ${workspace.current_user.userName}
level: CAN_MANAGE
- user_name: other@example.com
level: CAN_MANAGE
workspace:
state_path: /Workspace/Users/other@example.com/test-bundle-state

# The other user is not declared, so their inherited access exceeds the permissions
# and is not the deploying user, so it is not migratable.
another_user_not_declared:
permissions:
- user_name: ${workspace.current_user.userName}
level: CAN_MANAGE
workspace:
state_path: /Workspace/Users/other@example.com/test-bundle-state

# No permissions, but the state is under another user's home: that user owns it
# (undeclared access), which we know statically, so it is not compatible.
another_user_no_permissions:
workspace:
state_path: /Workspace/Users/other@example.com/test-bundle-state

# --- state under a non-home, non-shared folder (/Workspace/<other>) ---
# The script grants permissions on the parent folder before deploying, so the deploy
# observes them as inherited access (real ACLs, not synthesized home ownership).

# No permissions and not under a user home: unknown without a GetPermissions call.
workspace_other_no_permissions:
workspace:
state_path: /Workspace/teams/test-bundle-state

# Parent grants group_name: team, which the bundle also declares.
workspace_other_declared:
permissions:
- group_name: team
level: CAN_MANAGE
workspace:
state_path: /Workspace/teams-declared/test-bundle-state

# Parent grants group_name: team, which the bundle does not declare.
workspace_other_not_declared:
permissions:
- user_name: ${workspace.current_user.userName}
level: CAN_MANAGE
workspace:
state_path: /Workspace/teams-undeclared/test-bundle-state

# Parent grants the deploying user, which the bundle does not declare. The state is
# not under the deployer's home, so the deployer exemption does not apply.
workspace_other_extra_current_user:
permissions:
- group_name: team
level: CAN_MANAGE
workspace:
state_path: /Workspace/teams-extra/test-bundle-state

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading