Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 215
Add "stale wheel" acc/integration test for serverless#2519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
daed32bb643f981fdca4d055fe377563f8be5d503dFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| bundle: | ||
| name: environment_key | ||
| workspace: | ||
| root_path: "~/.bundle/$UNIQUE_NAME" | ||
| artifacts: | ||
| my_test_code: | ||
| type: whl | ||
| build: python3 setup.py bdist_wheel | ||
| resources: | ||
| jobs: | ||
| some_other_job: | ||
| name: "My Wheel Job" | ||
| tasks: | ||
| - task_key: TestTask | ||
| python_wheel_task: | ||
| package_name: "my_test_code" | ||
| entry_point: "run" | ||
| environment_key: "test_env" | ||
| environments: | ||
| - environment_key: "test_env" | ||
| spec: | ||
| client: "1" | ||
| dependencies: | ||
| - ./dist/*.whl | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| >>> cp -r [TESTROOT]/bundle/integration_whl/serverless/../base/setup.py [TESTROOT]/bundle/integration_whl/serverless/../base/my_test_code . | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess we need to add a repl for Window forward slashes in path? ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added | ||
| >>> [CLI] bundle deploy | ||
| Building my_test_code... | ||
| Uploading my_test_code-0.0.1-py3-none-any.whl... | ||
| Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... | ||
| Deploying resources... | ||
| Updating deployment state... | ||
| Deployment complete! | ||
| >>> [CLI] bundle run some_other_job | ||
| Run URL: [DATABRICKS_URL]/?o=[NUMID]#job/[NUMID]/run/[NUMID] | ||
| [TIMESTAMP] "My Wheel Job" RUNNING | ||
| [TIMESTAMP] "My Wheel Job" TERMINATED SUCCESS | ||
| Hello from my func | ||
| Got arguments: | ||
| ['my_test_code'] | ||
| === Make a change to code without version change and run the job again | ||
| >>> [CLI] bundle deploy | ||
| Building my_test_code... | ||
| Uploading my_test_code-0.0.1-py3-none-any.whl... | ||
| Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME]/files... | ||
| Deploying resources... | ||
| Updating deployment state... | ||
| Deployment complete! | ||
| >>> [CLI] bundle run some_other_job | ||
| Run URL: [DATABRICKS_URL]/?o=[NUMID]#job/[NUMID]/run/[NUMID] | ||
| [TIMESTAMP] "My Wheel Job" RUNNING | ||
| [TIMESTAMP] "My Wheel Job" TERMINATED SUCCESS | ||
| UPDATED MY FUNC | ||
| Got arguments: | ||
| ['my_test_code'] | ||
| >>> [CLI] bundle destroy --auto-approve | ||
| The following resources will be deleted: | ||
| delete job some_other_job | ||
| All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/[UNIQUE_NAME] | ||
| Deleting files... | ||
| Destroy complete! | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| envsubst < databricks.yml.tmpl > databricks.yml | ||
| trace cp -r $TESTDIR/../base/{setup.py,my_test_code} . | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does the path work on Windows? ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this passed the test | ||
| trap "errcode trace '$CLI' bundle destroy --auto-approve" EXIT | ||
| trace $CLI bundle deploy | ||
| trace $CLI bundle run some_other_job | ||
| title "Make a change to code without version change and run the job again" | ||
| update_file.py my_test_code/__main__.py 'Hello from my func' 'UPDATED MY FUNC' | ||
| trace $CLI bundle deploy | ||
| trace $CLI bundle run some_other_job | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # serverless is only enabled if UC is enabled | ||
| RequiresUnityCatalog = true | ||
| [[Repls]] | ||
| Old = '\\' | ||
| New = '/' |
Uh oh!
There was an error while loading. Please reload this page.