Skip to content

Commit 6b7a7f8

Browse files
authored
pipelines: suggest 'pipelines deploy' in run/dry-run (#4277)
## Changes Add recommendation suggesting to call 'pipelines deploy' before 'run' and 'dry-run': ``` $ databricks pipelines dry-run Recommendation: This command runs the last deployed version of the code If you've made local changes, run 'databricks pipelines deploy' first to ensure they are included. ``` The suggestion is different depending on which entrypoint is used suggesting to use either "databricks pipelines" or just "pipelines". ## Why It's a common pitfall, and we haven't yet implemented an option to do deployment automatically. ## Tests Existing acceptance tests
1 parent 103130c commit 6b7a7f8

File tree

13 files changed

+93
-2
lines changed

13 files changed

+93
-2
lines changed

acceptance/pipelines/dry-run/dry-run-pipeline/output.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
88

99
=== Dry running pipeline, should have validate_only set to true
1010
>>> [ENTRYPOINT] dry-run
11+
Recommendation: This command runs the last deployed version of the code
12+
13+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
14+
1115
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1216

1317
Update ID: [UUID]
@@ -21,6 +25,10 @@ Update ID: [UUID]
2125

2226
=== Dry running pipeline with KEY, expect same output as without KEY
2327
>>> [ENTRYPOINT] dry-run my_pipeline
28+
Recommendation: This command runs the last deployed version of the code
29+
30+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
31+
2432
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
2533

2634
Update ID: [UUID]

acceptance/pipelines/dry-run/no-wait/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
88

99
=== Dry running pipeline with --no-wait flag
1010
>>> [ENTRYPOINT] dry-run --no-wait
11+
Recommendation: This command runs the last deployed version of the code
12+
13+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
14+
1115
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1216

1317
Update ID: [UUID]

acceptance/pipelines/dry-run/restart/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
88

99
=== Dry running pipeline with --restart flag, should stop the current pipeline and start a new run
1010
>>> [ENTRYPOINT] dry-run --restart
11+
Recommendation: This command runs the last deployed version of the code
12+
13+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
14+
1115
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1216

1317
Update ID: [UUID]

acceptance/pipelines/e2e/output.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ View your pipeline lakeflow_project_etl here: [DATABRICKS_URL]/pipelines/[UUID]?
2525

2626
=== Run pipeline
2727
>>> [PIPELINES] run
28+
Recommendation: This command runs the last deployed version of the code
29+
30+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
31+
2832
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
2933

3034
Update ID: [UUID]
@@ -71,6 +75,10 @@ View your pipeline lakeflow_project_etl_2 here: [DATABRICKS_URL]/pipelines/[UUID
7175
}
7276

7377
>>> [PIPELINES] run lakeflow_project_etl_2
78+
Recommendation: This command runs the last deployed version of the code
79+
80+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
81+
7482
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
7583

7684
Update ID: [UUID]

acceptance/pipelines/run/no-wait/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
88

99
=== test --no-wait flag
1010
>>> [ENTRYPOINT] run --no-wait
11+
Recommendation: This command runs the last deployed version of the code
12+
13+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
14+
1115
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1216

1317
Update ID: [UUID]

acceptance/pipelines/run/refresh-flags/output.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
88

99
=== Running pipeline with --refresh flag and specific tables
1010
>>> [ENTRYPOINT] run --refresh table1,table2
11+
Recommendation: This command runs the last deployed version of the code
12+
13+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
14+
1115
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1216

1317
Update ID: [UUID]
@@ -31,6 +35,10 @@ Pipeline configurations for this update:
3135

3236
=== Running pipeline with --full-refresh-all flag
3337
>>> [ENTRYPOINT] run --full-refresh-all
38+
Recommendation: This command runs the last deployed version of the code
39+
40+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
41+
3442
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
3543

3644
Update ID: [UUID]
@@ -51,6 +59,10 @@ Pipeline configurations for this update:
5159

5260
=== Running pipeline with --full-refresh flag and specific tables
5361
>>> [ENTRYPOINT] run --full-refresh table1,table2
62+
Recommendation: This command runs the last deployed version of the code
63+
64+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
65+
5466
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
5567

5668
Update ID: [UUID]
@@ -74,6 +86,10 @@ Pipeline configurations for this update:
7486

7587
=== Running pipeline with --full-refresh flag and --refresh flag
7688
>>> [ENTRYPOINT] run --full-refresh table1,table2 --refresh table3,table4
89+
Recommendation: This command runs the last deployed version of the code
90+
91+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
92+
7793
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
7894

7995
Update ID: [UUID]

acceptance/pipelines/run/restart/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
88

99
=== Running pipeline with --restart flag
1010
>>> [ENTRYPOINT] run --restart
11+
Recommendation: This command runs the last deployed version of the code
12+
13+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
14+
1115
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1216

1317
Update ID: [UUID]

acceptance/pipelines/run/run-info/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
88

99
=== Run pipeline and display pipeline configuration summary and events durations
1010
>>> [ENTRYPOINT] run
11+
Recommendation: This command runs the last deployed version of the code
12+
13+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
14+
1115
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/test-update-123
1216

1317
[TIMESTAMP] update_progress "Update test-update-123 is COMPLETED."

acceptance/pipelines/stop/output.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ Deployment complete!
77
View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
88

99
>>> [ENTRYPOINT] run
10+
Recommendation: This command runs the last deployed version of the code
11+
12+
If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included.
13+
1014
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1115

1216
Update ID: [UUID]

acceptance/pipelines/test.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
# All pipelines tests are local only
22
Local = true
33
Cloud = false
4+
5+
[[Repls]]
6+
Old = "If you've made local changes, run 'pipelines deploy' first to ensure they are included"
7+
New = "If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included"
8+
9+
[[Repls]]
10+
Old = "If you've made local changes, run 'databricks pipelines deploy' first to ensure they are included"
11+
New = "If you've made local changes, run '[DEPLOYCMD]' first to ensure they are included"

0 commit comments

Comments
 (0)