|
| 1 | + |
| 2 | +>>> [CLI] bundle deploy |
| 3 | +Building python_artifact... |
| 4 | +Uploading dist/my_test_code-0.1.0-py3-none-any.whl... |
| 5 | +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... |
| 6 | +Deploying resources... |
| 7 | +Updating deployment state... |
| 8 | +Deployment complete! |
| 9 | + |
| 10 | +>>> find.py --expect 1 whl |
| 11 | +dist/my_test_code-0.1.0-py3-none-any.whl |
| 12 | + |
| 13 | +=== Expecting 1 wheel in libraries section in /jobs/create |
| 14 | +>>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.tasks out.requests.txt |
| 15 | +[ |
| 16 | + { |
| 17 | + "existing_cluster_id": "0717-aaaaa-bbbbbb", |
| 18 | + "libraries": [ |
| 19 | + { |
| 20 | + "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.1.0-py3-none-any.whl" |
| 21 | + } |
| 22 | + ], |
| 23 | + "python_wheel_task": { |
| 24 | + "entry_point": "run", |
| 25 | + "package_name": "my_test_code" |
| 26 | + }, |
| 27 | + "task_key": "TestTask" |
| 28 | + } |
| 29 | +] |
| 30 | + |
| 31 | +=== Expecting 1 wheel to be uploaded |
| 32 | +>>> jq .path out.requests.txt |
| 33 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.1.0-py3-none-any.whl" |
| 34 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/.gitignore" |
| 35 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/databricks.yml" |
| 36 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/dist/my_test_code-0.1.0-py3-none-any.whl" |
| 37 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/__init__.py" |
| 38 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/__main__.py" |
| 39 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/out.requests.txt" |
| 40 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/output.txt" |
| 41 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/repls.json" |
| 42 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/script" |
| 43 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/setup.py" |
| 44 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock" |
| 45 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json" |
| 46 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json" |
| 47 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate" |
| 48 | + |
| 49 | +>>> update_file.py my_test_code/__init__.py 0.1.0 0.2.0 |
| 50 | + |
| 51 | +>>> [CLI] bundle deploy |
| 52 | +Building python_artifact... |
| 53 | +Uploading dist/my_test_code-0.2.0-py3-none-any.whl... |
| 54 | +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... |
| 55 | +Deploying resources... |
| 56 | +Updating deployment state... |
| 57 | +Deployment complete! |
| 58 | + |
| 59 | +>>> find.py --expect 2 whl |
| 60 | +dist/my_test_code-0.1.0-py3-none-any.whl |
| 61 | +dist/my_test_code-0.2.0-py3-none-any.whl |
| 62 | + |
| 63 | +=== Expecting 1 wheel in libraries section in /jobs/reset |
| 64 | +>>> jq -s .[] | select(.path=="/api/2.2/jobs/reset") | .body.new_settings.tasks out.requests.txt |
| 65 | +[ |
| 66 | + { |
| 67 | + "existing_cluster_id": "0717-aaaaa-bbbbbb", |
| 68 | + "libraries": [ |
| 69 | + { |
| 70 | + "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.2.0-py3-none-any.whl" |
| 71 | + } |
| 72 | + ], |
| 73 | + "python_wheel_task": { |
| 74 | + "entry_point": "run", |
| 75 | + "package_name": "my_test_code" |
| 76 | + }, |
| 77 | + "task_key": "TestTask" |
| 78 | + } |
| 79 | +] |
| 80 | + |
| 81 | +=== Expecting 1 wheel to be uploaded |
| 82 | +>>> jq .path out.requests.txt |
| 83 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.2.0-py3-none-any.whl" |
| 84 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/dist/my_test_code-0.2.0-py3-none-any.whl" |
| 85 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/__init__.py" |
| 86 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/out.requests.txt" |
| 87 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/output.txt" |
| 88 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock" |
| 89 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json" |
| 90 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json" |
| 91 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate" |
| 92 | + |
| 93 | +=== Restore config to target old wheel |
| 94 | +>>> update_file.py databricks.yml ./dist/*.whl ./dist/my*0.1.0*.whl |
| 95 | + |
| 96 | +>>> [CLI] bundle deploy |
| 97 | +Building python_artifact... |
| 98 | +Uploading dist/my_test_code-0.1.0-py3-none-any.whl... |
| 99 | +Uploading dist/my_test_code-0.2.0-py3-none-any.whl... |
| 100 | +Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... |
| 101 | +Deploying resources... |
| 102 | +Updating deployment state... |
| 103 | +Deployment complete! |
| 104 | + |
| 105 | +>>> find.py --expect 2 whl |
| 106 | +dist/my_test_code-0.1.0-py3-none-any.whl |
| 107 | +dist/my_test_code-0.2.0-py3-none-any.whl |
| 108 | + |
| 109 | +=== Expecting 1 wheel in libraries section in /jobs/reset |
| 110 | +>>> jq -s .[] | select(.path=="/api/2.2/jobs/reset") | .body.new_settings.tasks out.requests.txt |
| 111 | +[ |
| 112 | + { |
| 113 | + "existing_cluster_id": "0717-aaaaa-bbbbbb", |
| 114 | + "libraries": [ |
| 115 | + { |
| 116 | + "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.1.0-py3-none-any.whl" |
| 117 | + } |
| 118 | + ], |
| 119 | + "python_wheel_task": { |
| 120 | + "entry_point": "run", |
| 121 | + "package_name": "my_test_code" |
| 122 | + }, |
| 123 | + "task_key": "TestTask" |
| 124 | + } |
| 125 | +] |
| 126 | + |
| 127 | +=== Expecting 1 wheel to be uploaded |
| 128 | +>>> jq .path out.requests.txt |
| 129 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.1.0-py3-none-any.whl" |
| 130 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.2.0-py3-none-any.whl" |
| 131 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/databricks.yml" |
| 132 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/dist/my_test_code-0.2.0-py3-none-any.whl" |
| 133 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/out.requests.txt" |
| 134 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/output.txt" |
| 135 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock" |
| 136 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json" |
| 137 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json" |
| 138 | +"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/terraform.tfstate" |
0 commit comments