Skip to content

Commit 28cebe4

Browse files
denikIsaac
andauthored
acc: remove obsolete .gitignore churn workaround from 11 bundle tests (#6665)
Follow-up to #6629. Those tests used a catch-all `echo "*" > .gitignore` to zero the bundle sync and keep the flaky `Files: N uploaded` line stable. Now that `output.txt`/`out.requests.txt` live outside the sync root, the remaining synced files are written once and stable, so the workaround is obsolete — remove it and let the deploy summary show the real counts. Not touched: `resource_deps/create_error` (its `.gitignore` pins an injected 500 to `jobs/create` instead of the file upload) and `resources/volumes/uppercase-name` (it captures its own deploy output into a synced file that re-uploads across deploys). This pull request and its description were written by Isaac. Co-authored-by: Isaac <no-reply@databricks.com>
1 parent 48a4b06 commit 28cebe4

22 files changed

Lines changed: 21 additions & 32 deletions

File tree

‎acceptance/bundle/resource_deps/job_id_delete_bar/output.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
44
Created jobs.bar
55
Created jobs.foo
6-
Files: 0 uploaded, 0 deleted
6+
Files: 3 uploaded, 0 deleted
77
Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
88

99
>>> print_requests.py --nostamp //jobs
@@ -57,7 +57,7 @@ Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
5757
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
5858
Deleted jobs.bar
5959
Updated jobs.foo
60-
Files: 0 uploaded, 0 deleted
60+
Files: 2 uploaded, 0 deleted
6161
Resources: 0 created, 1 changed, 1 deleted, 0 unchanged
6262

6363
>>> print_requests.py --nostamp --sort //jobs

‎acceptance/bundle/resource_deps/job_id_delete_bar/script‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
echo "*" > .gitignore
21
trace $CLI bundle deploy
32
trace print_requests.py --nostamp //jobs
43

‎acceptance/bundle/resource_deps/jobs_update/output.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged
99
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
1010
Created jobs.bar
1111
Created jobs.foo
12-
Files: 0 uploaded, 0 deleted
12+
Files: 2 uploaded, 0 deleted
1313
Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
1414

1515
>>> print_requests.py --nostamp //jobs
@@ -28,7 +28,7 @@ Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged
2828
>>> [CLI] bundle deploy
2929
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
3030
Updated jobs.foo
31-
Files: 0 uploaded, 0 deleted
31+
Files: 2 uploaded, 0 deleted
3232
Resources: 0 created, 1 changed, 0 deleted, 1 unchanged
3333

3434
>>> print_requests.py --nostamp //jobs

‎acceptance/bundle/resource_deps/jobs_update/script‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
echo "*" > .gitignore
32
trace $CLI bundle plan
43
trace $CLI bundle deploy
54
trace print_requests.py --nostamp //jobs > out.deploy1.requests.json

‎acceptance/bundle/resource_deps/pipelines_recreate/output.txt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Plan: 2 to add, 0 to change, 0 to delete, 0 unchanged
99
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
1010
Created jobs.bar
1111
Created pipelines.foo
12-
Files: 0 uploaded, 0 deleted
12+
Files: 3 uploaded, 0 deleted
1313
Resources: 2 created, 0 changed, 0 deleted, 0 unchanged
1414

1515
>>> print_requests.py --nostamp //jobs //pipelines ^//api/2.0/bundle
@@ -36,7 +36,7 @@ properties such as the 'catalog' or 'storage' are changed:
3636
recreate resources.pipelines.foo
3737
Updated jobs.bar
3838
Recreated pipelines.foo
39-
Files: 0 uploaded, 0 deleted
39+
Files: 3 uploaded, 0 deleted
4040
Resources: 1 created, 1 changed, 1 deleted, 0 unchanged
4141

4242
>>> print_requests.py --nostamp //jobs //pipelines ^//api/2.0/bundle
@@ -98,7 +98,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
9898

9999
>>> [CLI] bundle deploy
100100
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
101-
Files: 0 uploaded, 0 deleted
101+
Files: 2 uploaded, 0 deleted
102102
Resources: 0 created, 0 changed, 0 deleted, 2 unchanged
103103

104104
>>> print_requests.py --nostamp //jobs //pipelines ^//api/2.0/bundle

‎acceptance/bundle/resource_deps/pipelines_recreate/script‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
echo "*" > .gitignore
32
trace $CLI bundle plan
43
$CLI bundle plan -o json | nostamp > out.plan_create.$DATABRICKS_BUNDLE_ENGINE.json
54
trace $CLI bundle deploy

‎acceptance/bundle/resources/catalogs/comment_out_of_band/output.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
>>> [CLI] bundle deploy
44
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
55
Created catalogs.catalog1
6-
Files: 0 uploaded, 0 deleted
6+
Files: 4 uploaded, 0 deleted
77
Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
88

99
=== Set the comment out of band, the way Catalog Explorer does

‎acceptance/bundle/resources/catalogs/comment_out_of_band/script‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
echo "*" > .gitignore
21
envsubst < databricks.yml.tmpl > databricks.yml
32

43
CATALOG="test-catalog-${UNIQUE_NAME}"

‎acceptance/bundle/resources/external_locations/comment_cleared/output.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
>>> [CLI] bundle deploy
44
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
55
Created external_locations.location1
6-
Files: 0 uploaded, 0 deleted
6+
Files: 3 uploaded, 0 deleted
77
Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
88

99
=== Remove the comment from the configuration and redeploy
1010
>>> [CLI] bundle deploy
1111
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
1212
Updated external_locations.location1
13-
Files: 0 uploaded, 0 deleted
13+
Files: 1 uploaded, 0 deleted
1414
Resources: 0 created, 1 changed, 0 deleted, 0 unchanged
1515

1616
=== The comment the bundle no longer declares

‎acceptance/bundle/resources/external_locations/comment_cleared/script‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
echo "*" > .gitignore
21

32
cleanup() {
43
trace $CLI bundle destroy --auto-approve

0 commit comments

Comments
 (0)