mirror of https://github.com/databricks/cli.git
Show a better error message for using wheel tasks with older DBR versions (#1373)
## Changes This is a minor improvement to the error about wheel tasks with older DBR versions, since we get questions about it every now and then. It also adds a pointer to the docs that were added since the original messages was committed. --------- Co-authored-by: Pieter Noordhuis <pcnoordhuis@gmail.com>
This commit is contained in:
parent
d99f2b808b
commit
60122f6035
|
@ -25,7 +25,7 @@ func (m *wrapperWarning) Apply(ctx context.Context, b *bundle.Bundle) diag.Diagn
|
|||
}
|
||||
|
||||
if hasIncompatibleWheelTasks(ctx, b) {
|
||||
return diag.Errorf("python wheel tasks with local libraries require compute with DBR 13.1+. Please change your cluster configuration or set experimental 'python_wheel_wrapper' setting to 'true'")
|
||||
return diag.Errorf("Python wheel tasks require compute with DBR 13.3+ to include local libraries. Please change your cluster configuration or use the experimental 'python_wheel_wrapper' setting. See https://docs.databricks.com/dev-tools/bundles/python-wheel.html for more information.")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -102,7 +102,7 @@ func TestIncompatibleWheelTasksWithJobClusterKey(t *testing.T) {
|
|||
require.True(t, hasIncompatibleWheelTasks(context.Background(), b))
|
||||
|
||||
diags := bundle.Apply(context.Background(), b, WrapperWarning())
|
||||
require.ErrorContains(t, diags.Error(), "python wheel tasks with local libraries require compute with DBR 13.1+.")
|
||||
require.ErrorContains(t, diags.Error(), "require compute with DBR 13.3")
|
||||
}
|
||||
|
||||
func TestIncompatibleWheelTasksWithExistingClusterId(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue