Commit 30c24ff
authored
[Breaking Change] Remove deprecated path fallback mechanism for jobs and pipelines (#3225)
## Changes
Removed deprecated path fallback mechanism for jobs and pipelines
Effectively, it removes an old deprecated behaviour and only relies on
the new one introduced here #1273
## What's changing?
Assuming there are the following 2 bundle configuration files in your
bundle
- `./resources/my_job.yml` - this is where the job is defined
- `./override.yml` - this is where the notebook path of the job task is
overridden
```
./resources/my_job.yml
resources:
jobs:
my_job:
name: "my job"
tasks:
- task_key: notebook_example
job_cluster_key: default
notebook_task:
# if not overridden, this resolves to ./resources/original_notebook.py
notebook_path: ./original_notebook.py
```
```
./override.yml
targets:
development:
resources:
jobs:
my_job:
tasks:
- task_key: notebook_example
notebook_task:
# before this PR: this resolves to <BUNDLE_ROOT>/../src/notebook.py first and if that cannot be done, resolves to <BUNDLE_ROOT>/src/notebook.py
# with this PR: this resolves only to <BUNDLE_ROOT>/../src/notebook.py
notebook_path: ../src/notebook.py
```
**Before** this change, on `bundle validate / deploy` the notebook_path
for notebook_example would resolve to `./src/notebook.py` relative to
the bundle root because the relative path was relative to where the job
is defined (`/resources/my_job.yml`)
**After** this change, the notebook_path for notebook_example would
resolve to `../src/notebook.py` relative to the bundle root because now
the path is calculated relative to where it's defined (`./override.yml`)
## Action items
If you are affected by this change, you can do one of the following:
1. **(recommended)** Make necessary configuration changes to have
relative paths defined relative to configuration files they are in, or
2. Pin the CLI version which you use to 0.261.0 or earlier
## Tests
Covered by existing acceptance tests1 parent 3481d4b commit 30c24ff
File tree
10 files changed
+54
-76
lines changed- acceptance/bundle/paths
- fallback_metric
- resources
- src
- fallback
- bundle/config/mutator
10 files changed
+54
-76
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
16 | 38 | | |
17 | 39 | | |
18 | 40 | | |
| |||
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 18 deletions
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
49 | | - | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
9 | 11 | | |
10 | | - | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | | - | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
0 commit comments