microsoft / azdo-databricks

A set of Build and Release tasks for Building, Deploying and Testing Databricks notebooks
MIT License
25 stars 32 forks source link

Notebook deploy task succeeds even when failure due to permissions occurs #34

Open dbeswick-bupa opened 4 years ago

dbeswick-bupa commented 4 years ago

Even though a PERMISSION_DENIED occurred, the Deploy Notebooks task reported success.

It could be the same issue as #18.

2020-09-28T02:06:18.5998033Z ##[section]Starting: Deploy Notebooks to Workspace
2020-09-28T02:06:18.6117200Z ==============================================================================
2020-09-28T02:06:18.6117265Z Task         : Deploy Databricks Notebooks
2020-09-28T02:06:18.6117321Z Description  : Recursively deploys Notebooks from given folder to a Databricks Workspace
2020-09-28T02:06:18.6117358Z Version      : 0.5.2
2020-09-28T02:06:18.6117392Z Author       : Microsoft DevLabs
2020-09-28T02:06:18.6117425Z Help         : 
2020-09-28T02:06:18.6117478Z ==============================================================================
2020-09-28T02:06:18.9059294Z [command]C:\hostedtoolcache\windows\Python\3.7.4\x64\python.exe -V
2020-09-28T02:06:18.9221320Z Python 3.7.4
2020-09-28T02:06:18.9244157Z Version: 3.7.4
2020-09-28T02:06:18.9244417Z 
2020-09-28T02:06:18.9245965Z Python3 selected. Running...
2020-09-28T02:06:18.9324826Z [command]C:\hostedtoolcache\windows\Python\3.7.4\x64\Scripts\databricks.exe workspace import_dir -o --profile AZDO F:\AgentA\_work\r293\a\_dp-app-car\drop\notebook /deploy-ci/src/app/
2020-09-28T02:06:20.5225447Z {'error_code': 'PERMISSION_DENIED', 'message': 'david.beswick@bupa.com.au does not have Manage permissions on /. Please contact the owner or an administrator for access.'}
2020-09-28T02:06:20.5225684Z {'error_code': 'PERMISSION_DENIED', 'message': 'david.beswick@bupa.com.au does not have Manage permissions on /. Please contact the owner or an administrator for access.'}
2020-09-28T02:06:20.5225723Z 
2020-09-28T02:06:20.5306571Z ##[section]Finishing: Deploy Notebooks to Workspace
dbeswick-bupa commented 4 years ago

Likely caused at root by https://github.com/databricks/databricks-cli/issues/222