Skip to content

Commit 532719b

Browse files
authored
acc: Fixed failing TestAccept/bundle/generate/python_job_and_deploy (#5259)
## Changes Fixed failing TestAccept/bundle/generate/python_job_and_deploy ## Why Nightlies were failing with ``` --- bundle/generate/python_job_and_deploy/output.txt +++ /tmp/TestAcceptbundlegeneratepython_job_and_deployDATABRICKS_BUND3845738023/001/output.txt @@ -2,28 +2,6 @@ === Upload notebook to a workspace path >>> [CLI] workspace import /Workspace/Users/[USERNAME]/test_notebook.py --file test_notebook.py --format AUTO --overwrite -=== Create a job that references the notebookCreated job +=== Create a job that references the notebookError: One of job_cluster_key, new_cluster, or existing_cluster_id must be specified. Serverless compute for workflows is not enabled in the workspace. ``` ## Tests Test succeeds on Cloud <!-- If your PR needs to be included in the release notes for next release, add a separate entry in NEXT_CHANGELOG.md as part of your PR. -->
1 parent ab60e13 commit 532719b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • acceptance/bundle/generate/python_job_and_deploy

acceptance/bundle/generate/python_job_and_deploy/script

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ JOB_ID=$($CLI jobs create --json '{
1111
"task_key": "test_task",
1212
"notebook_task": {
1313
"notebook_path": "/Workspace/Users/'${CURRENT_USER_NAME}'/test_notebook"
14+
},
15+
"new_cluster": {
16+
"spark_version": "'${DEFAULT_SPARK_VERSION}'",
17+
"node_type_id": "'${NODE_TYPE_ID}'",
18+
"num_workers": 1
1419
}
1520
}
1621
]

0 commit comments

Comments
 (0)