Skip to content

Commit 6010f56

Browse files
authored
bundle run: output update ID (#3331)
## Changes To see which update was run, return updateID in the output. ## Why Necessary for showing summary of run in pipelines. ## Tests Updated bundle and pipelines tests to reflect new output. Sample output: Update ID: 2e522dc5-f817-46dc-b956-2e3e771d9ff3 update ID necessary for follow-up: #3332
1 parent 82cbfee commit 6010f56

File tree

15 files changed

+36
-11
lines changed

15 files changed

+36
-11
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Deployment complete!
99
>>> [CLI] bundle run my_pipeline --refresh table1,table2
1010
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1111

12+
Update ID: [UUID]
1213

1314
>>> print_requests
1415
{
@@ -26,6 +27,7 @@ Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
2627
>>> [CLI] bundle run my_pipeline --full-refresh-all
2728
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
2829

30+
Update ID: [UUID]
2931

3032
>>> print_requests
3133
{
@@ -40,6 +42,7 @@ Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
4042
>>> [CLI] bundle run my_pipeline --full-refresh table1,table2
4143
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
4244

45+
Update ID: [UUID]
4346

4447
>>> print_requests
4548
{
@@ -57,6 +60,7 @@ Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
5760
>>> [CLI] bundle run my_pipeline --full-refresh table1,table2 --refresh table3,table4
5861
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
5962

63+
Update ID: [UUID]
6064

6165
>>> print_requests
6266
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
1010
>>> [PIPELINES] dry-run
1111
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1212

13+
Update ID: [UUID]
1314
{
1415
"body": {
1516
"validate_only": true
@@ -22,6 +23,7 @@ Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
2223
>>> [PIPELINES] dry-run my_pipeline
2324
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
2425

26+
Update ID: [UUID]
2527
{
2628
"body": {
2729
"validate_only": true

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
1010
>>> [PIPELINES] dry-run --no-wait
1111
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1212

13-
<EOL>
13+
Update ID: [UUID]
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
trace $PIPELINES deploy
22
title "Dry running pipeline with --no-wait flag"
33
trace $PIPELINES dry-run --no-wait
4-
# This printf is here to fix the whitespace linter error (ensures exactly one newline at end)
5-
printf "<EOL>\n"

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
1010
>>> [PIPELINES] dry-run --restart
1111
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1212

13+
Update ID: [UUID]
1314

1415
>>> print_requests
1516
{

acceptance/pipelines/e2e/output.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ View your pipeline my_project_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o
2222
>>> [PIPELINES] run
2323
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
2424

25+
Update ID: [UUID]
2526

2627
=== Edit project by creating and running a new second pipeline
2728
>>> [PIPELINES] deploy
@@ -58,6 +59,7 @@ View your pipeline my_project_pipeline_2 here: [DATABRICKS_URL]/pipelines/[UUID]
5859
>>> [PIPELINES] run my_project_pipeline_2
5960
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
6061

62+
Update ID: [UUID]
6163

6264
=== Stop both pipelines before destroy
6365
>>> [PIPELINES] stop my_project_pipeline

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
1010
>>> [PIPELINES] run --no-wait
1111
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1212

13-
<EOL>
13+
Update ID: [UUID]
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
trace $PIPELINES deploy
22
title "test --no-wait flag"
33
trace $PIPELINES run --no-wait
4-
# This printf is here to fix the whitespace linter error (ensures exactly one newline at end)
5-
printf "<EOL>\n"

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
1010
>>> [PIPELINES] run --refresh table1,table2
1111
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1212

13+
Update ID: [UUID]
1314

1415
>>> print_requests
1516
{
@@ -27,6 +28,7 @@ Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
2728
>>> [PIPELINES] run --full-refresh-all
2829
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
2930

31+
Update ID: [UUID]
3032

3133
>>> print_requests
3234
{
@@ -41,6 +43,7 @@ Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
4143
>>> [PIPELINES] run --full-refresh table1,table2
4244
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
4345

46+
Update ID: [UUID]
4447

4548
>>> print_requests
4649
{
@@ -58,6 +61,7 @@ Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
5861
>>> [PIPELINES] run --full-refresh table1,table2 --refresh table3,table4
5962
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
6063

64+
Update ID: [UUID]
6165

6266
>>> print_requests
6367
{

acceptance/pipelines/run/restart/output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ View your pipeline my_pipeline here: [DATABRICKS_URL]/pipelines/[UUID]?o=[NUMID]
1010
>>> [PIPELINES] run --restart
1111
Update URL: [DATABRICKS_URL]/#joblist/pipelines/[UUID]/updates/[UUID]
1212

13+
Update ID: [UUID]
1314

1415
>>> print_requests
1516
{

0 commit comments

Comments
 (0)