-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generate the bundle path including prefix/suffix if available (#20)
* generate the bundle path including prefix/suffix if available
- Loading branch information
1 parent
515b2f3
commit e925c58
Showing
3 changed files
with
341 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
276 changes: 276 additions & 0 deletions
276
tests/codegen/expected_bundles/local_bundle_prefix_suffix.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,276 @@ | ||
bundle: | ||
name: test-project | ||
environments: | ||
test-project-local: | ||
resources: | ||
jobs: | ||
test: | ||
email_notifications: null | ||
notification_settings: null | ||
webhook_notifications: null | ||
git_source: null | ||
job_clusters: [] | ||
max_concurrent_runs: 1.0 | ||
name: test_user_test | ||
run_as: | ||
user_name: [email protected] | ||
permissions: | ||
- level: IS_OWNER | ||
user_name: [email protected] | ||
- level: CAN_MANAGE | ||
user_name: [email protected] | ||
- level: CAN_MANAGE_RUN | ||
user_name: [email protected] | ||
- level: CAN_VIEW | ||
user_name: [email protected] | ||
schedule: | ||
quartz_cron_expression: '* * * * *' | ||
timezone_id: UTC | ||
tags: | ||
brickflow_project_name: test-project | ||
brickflow_deployment_mode: Databricks Asset Bundles | ||
deployed_by: test_user | ||
brickflow_version: 1.0.0 | ||
environment: local | ||
test: test2 | ||
tasks: | ||
- depends_on: [] | ||
email_notifications: {} | ||
existing_cluster_id: existing_cluster_id | ||
libraries: [] | ||
max_retries: null | ||
min_retry_interval_millis: null | ||
notebook_task: | ||
base_parameters: | ||
all_tasks1: test | ||
all_tasks3: '123' | ||
brickflow_env: local | ||
brickflow_internal_only_run_tasks: '' | ||
brickflow_internal_task_name: '{{task_key}}' | ||
brickflow_internal_workflow_name: test | ||
brickflow_internal_workflow_prefix: '' | ||
brickflow_internal_workflow_suffix: '' | ||
brickflow_job_id: '{{job_id}}' | ||
brickflow_parent_run_id: '{{parent_run_id}}' | ||
brickflow_run_id: '{{run_id}}' | ||
brickflow_start_date: '{{start_date}}' | ||
brickflow_start_time: '{{start_time}}' | ||
brickflow_task_key: '{{task_key}}' | ||
brickflow_task_retry_count: '{{task_retry_count}}' | ||
notebook_path: test_databricks_bundle.py | ||
source: WORKSPACE | ||
retry_on_timeout: null | ||
task_key: custom_python_task_push | ||
timeout_seconds: null | ||
- depends_on: [] | ||
pipeline_task: | ||
pipeline_id: ${resources.pipelines.test_hello_world.id} | ||
task_key: dlt_pipeline | ||
- depends_on: [] | ||
pipeline_task: | ||
pipeline_id: ${resources.pipelines.test_hello_world.id} | ||
task_key: dlt_pipeline_2 | ||
- depends_on: [ ] | ||
email_notifications: { } | ||
existing_cluster_id: existing_cluster_id | ||
libraries: [ ] | ||
max_retries: null | ||
min_retry_interval_millis: null | ||
notebook_task: | ||
notebook_path: notebooks/notebook_a | ||
retry_on_timeout: null | ||
task_key: notebook_task_a | ||
timeout_seconds: null | ||
- depends_on: [] | ||
email_notifications: {} | ||
existing_cluster_id: existing_cluster_id | ||
libraries: [] | ||
max_retries: null | ||
min_retry_interval_millis: null | ||
notebook_task: | ||
base_parameters: | ||
all_tasks1: test | ||
all_tasks3: '123' | ||
brickflow_env: local | ||
brickflow_internal_only_run_tasks: '' | ||
brickflow_internal_task_name: '{{task_key}}' | ||
brickflow_internal_workflow_name: test | ||
brickflow_internal_workflow_prefix: '' | ||
brickflow_internal_workflow_suffix: '' | ||
brickflow_job_id: '{{job_id}}' | ||
brickflow_parent_run_id: '{{parent_run_id}}' | ||
brickflow_run_id: '{{run_id}}' | ||
brickflow_start_date: '{{start_date}}' | ||
brickflow_start_time: '{{start_time}}' | ||
brickflow_task_key: '{{task_key}}' | ||
brickflow_task_retry_count: '{{task_retry_count}}' | ||
test: var | ||
notebook_path: test_databricks_bundle.py | ||
source: WORKSPACE | ||
retry_on_timeout: null | ||
task_key: task_function | ||
timeout_seconds: null | ||
- depends_on: | ||
- task_key: task_function | ||
email_notifications: {} | ||
existing_cluster_id: existing_cluster_id | ||
libraries: [] | ||
max_retries: null | ||
min_retry_interval_millis: null | ||
notebook_task: | ||
base_parameters: | ||
all_tasks1: test | ||
all_tasks3: '123' | ||
brickflow_env: local | ||
brickflow_internal_only_run_tasks: '' | ||
brickflow_internal_task_name: '{{task_key}}' | ||
brickflow_internal_workflow_name: test | ||
brickflow_internal_workflow_prefix: '' | ||
brickflow_internal_workflow_suffix: '' | ||
brickflow_job_id: '{{job_id}}' | ||
brickflow_parent_run_id: '{{parent_run_id}}' | ||
brickflow_run_id: '{{run_id}}' | ||
brickflow_start_date: '{{start_date}}' | ||
brickflow_start_time: '{{start_time}}' | ||
brickflow_task_key: '{{task_key}}' | ||
brickflow_task_retry_count: '{{task_retry_count}}' | ||
notebook_path: test_databricks_bundle.py | ||
source: WORKSPACE | ||
retry_on_timeout: null | ||
task_key: task_function_2 | ||
timeout_seconds: null | ||
- depends_on: | ||
- task_key: task_function_2 | ||
email_notifications: {} | ||
existing_cluster_id: existing_cluster_id | ||
libraries: [] | ||
max_retries: null | ||
min_retry_interval_millis: null | ||
notebook_task: | ||
base_parameters: | ||
all_tasks1: test | ||
all_tasks3: '123' | ||
brickflow_env: local | ||
brickflow_internal_only_run_tasks: '' | ||
brickflow_internal_task_name: '{{task_key}}' | ||
brickflow_internal_workflow_name: test | ||
brickflow_internal_workflow_prefix: '' | ||
brickflow_internal_workflow_suffix: '' | ||
brickflow_job_id: '{{job_id}}' | ||
brickflow_parent_run_id: '{{parent_run_id}}' | ||
brickflow_run_id: '{{run_id}}' | ||
brickflow_start_date: '{{start_date}}' | ||
brickflow_start_time: '{{start_time}}' | ||
brickflow_task_key: '{{task_key}}' | ||
brickflow_task_retry_count: '{{task_retry_count}}' | ||
notebook_path: test_databricks_bundle.py | ||
source: WORKSPACE | ||
retry_on_timeout: null | ||
task_key: task_function_3 | ||
timeout_seconds: null | ||
- depends_on: | ||
- task_key: task_function_3 | ||
email_notifications: {} | ||
existing_cluster_id: existing_cluster_id | ||
libraries: [] | ||
max_retries: null | ||
min_retry_interval_millis: null | ||
notebook_task: | ||
base_parameters: | ||
all_tasks1: test | ||
all_tasks3: '123' | ||
brickflow_env: local | ||
brickflow_internal_only_run_tasks: '' | ||
brickflow_internal_task_name: '{{task_key}}' | ||
brickflow_internal_workflow_name: test | ||
brickflow_internal_workflow_prefix: '' | ||
brickflow_internal_workflow_suffix: '' | ||
brickflow_job_id: '{{job_id}}' | ||
brickflow_parent_run_id: '{{parent_run_id}}' | ||
brickflow_run_id: '{{run_id}}' | ||
brickflow_start_date: '{{start_date}}' | ||
brickflow_start_time: '{{start_time}}' | ||
brickflow_task_key: '{{task_key}}' | ||
brickflow_task_retry_count: '{{task_retry_count}}' | ||
notebook_path: test_databricks_bundle.py | ||
source: WORKSPACE | ||
retry_on_timeout: null | ||
task_key: task_function_4 | ||
timeout_seconds: null | ||
- depends_on: [] | ||
email_notifications: {} | ||
existing_cluster_id: existing_cluster_id | ||
libraries: [] | ||
max_retries: null | ||
min_retry_interval_millis: null | ||
notebook_task: | ||
base_parameters: | ||
all_tasks1: test | ||
all_tasks3: '123' | ||
brickflow_env: local | ||
brickflow_internal_only_run_tasks: '' | ||
brickflow_internal_task_name: '{{task_key}}' | ||
brickflow_internal_workflow_name: test | ||
brickflow_internal_workflow_prefix: '' | ||
brickflow_internal_workflow_suffix: '' | ||
brickflow_job_id: '{{job_id}}' | ||
brickflow_parent_run_id: '{{parent_run_id}}' | ||
brickflow_run_id: '{{run_id}}' | ||
brickflow_start_date: '{{start_date}}' | ||
brickflow_start_time: '{{start_time}}' | ||
brickflow_task_key: '{{task_key}}' | ||
brickflow_task_retry_count: '{{task_retry_count}}' | ||
test: var | ||
notebook_path: test_databricks_bundle.py | ||
source: WORKSPACE | ||
retry_on_timeout: null | ||
task_key: task_function_no_deco_args | ||
timeout_seconds: null | ||
- depends_on: [] | ||
email_notifications: {} | ||
existing_cluster_id: existing_cluster_id | ||
libraries: [] | ||
max_retries: null | ||
min_retry_interval_millis: null | ||
notebook_task: | ||
base_parameters: | ||
all_tasks1: test | ||
all_tasks3: '123' | ||
brickflow_env: local | ||
brickflow_internal_only_run_tasks: '' | ||
brickflow_internal_task_name: '{{task_key}}' | ||
brickflow_internal_workflow_name: test | ||
brickflow_internal_workflow_prefix: '' | ||
brickflow_internal_workflow_suffix: '' | ||
brickflow_job_id: '{{job_id}}' | ||
brickflow_parent_run_id: '{{parent_run_id}}' | ||
brickflow_run_id: '{{run_id}}' | ||
brickflow_start_date: '{{start_date}}' | ||
brickflow_start_time: '{{start_time}}' | ||
brickflow_task_key: '{{task_key}}' | ||
brickflow_task_retry_count: '{{task_retry_count}}' | ||
notebook_path: test_databricks_bundle.py | ||
source: WORKSPACE | ||
retry_on_timeout: null | ||
task_key: task_function_nokwargs | ||
timeout_seconds: null | ||
pipelines: | ||
test_hello_world: | ||
catalog: null | ||
channel: current | ||
configuration: {} | ||
continuous: false | ||
development: true | ||
edition: advanced | ||
libraries: | ||
- notebook: | ||
path: scripts/spark_script_2.py | ||
name: test_user_hello world | ||
photon: false | ||
storage: '123' | ||
target: null | ||
workspace: | ||
file_path: /Users/${workspace.current_user.userName}/.brickflow_bundles/test-project/local/_prefix/_suffix/files | ||
root_path: /Users/${workspace.current_user.userName}/.brickflow_bundles/test-project/local/_prefix/_suffix | ||
state_path: /Users/${workspace.current_user.userName}/.brickflow_bundles/test-project/local/_prefix/_suffix/state | ||
workspace: {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters