databricks-cli/bundle/config
shreyas-goenka 75d516939b
Error out if notebook file does not exist locally (#261)
Adds check for whether file exists locally

case 1: local (relative) file does not exist
```
    foo:
      name: "[job-output] test-job by shreyas"

      tasks:
        - task_key: my_notebook_task
          existing_cluster_id: ***
          notebook_task:
            notebook_path: "./doesnotexist"
```
output:
```
shreyas.goenka@THW32HFW6T job-output % bricks bundle deploy
Error: notebook ./doesnotexist not found. Error: open /Users/shreyas.goenka/projects/job-output/doesnotexist: no such file or directory
```


case 2: remote (absolute) file does not exist
```
    foo:
      name: "[job-output] test-job by shreyas"

      tasks:
        - task_key: my_notebook_task
          existing_cluster_id: ***
          notebook_task:
            notebook_path: "/Users/shreyas.goenka@databricks.com/doesnotexist"
```

output:
```
shreyas.goenka@THW32HFW6T job-output % bricks bundle deploy
shreyas.goenka@THW32HFW6T job-output % bricks bundle run foo
Error: failed to reach TERMINATED or SKIPPED, got INTERNAL_ERROR: Task my_notebook_task failed with message: Notebook not found: /Users/shreyas.goenka@databricks.com/doesnotexist. This caused all downstream tasks to get skipped.
```

case 3: remote exists
Successful deploy and run
2023-03-21 18:13:16 +01:00
..
interpolation Allow multiple lookup functions for interpolation (#128) 2022-12-12 10:48:52 +01:00
mutator Error out if notebook file does not exist locally (#261) 2023-03-21 18:13:16 +01:00
resources Add permissions block to each resource (#264) 2023-03-21 10:58:16 +01:00
artifact.go Model code artifacts (#107) 2022-11-30 14:15:22 +01:00
bundle.go Make file, artifact and state path optional (#204) 2023-02-17 02:49:39 +01:00
environment.go Add "default" flag to environment block (#142) 2022-12-15 21:28:14 +01:00
resources.go Add resources for mlflow models and experiments (#263) 2023-03-20 21:28:43 +01:00
root.go JSON Schema generator for golang types (#167) 2023-01-20 16:55:44 +01:00
root_test.go Move mutator interface to top level bundle package (#105) 2022-11-28 10:59:43 +01:00
workspace.go Initialize BRICKS_CLI_PATH and increase default OAuth timeout (#237) 2023-03-08 16:14:24 +01:00