-
Notifications
You must be signed in to change notification settings - Fork 42
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
Added a warning when Python wheel wrapper needs to be used #807
Conversation
PythonWheelTask: &jobs.PythonWheelTask{}, | ||
JobClusterKey: "cluster1", | ||
Libraries: []compute.Library{ | ||
{Whl: "/Workspace/Users/me@me.com/dist/test.whl"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test confirms that this should be fine and not trigger a warning.
Is this because it's an abs path and therefore we don't care about it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pietern yes, exactly, we wouldn't not wrap it anyway so it should be skipped
} | ||
|
||
v := "v" + parts[0] + "." + parts[1] | ||
return semver.Compare(v, "v13.1") < 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This depends on the data security mode, no?
There's 13.1 for assigned clusters and 13.2 for shared clusters.
This is good enough for now, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pietern it indeed depends on it but the error received in this case is pretty clear by itself and actionable by users anyway
Bundles: * Enable target overrides for pipeline clusters ([#792](#792)). * Add support for regex patterns in template schema ([#768](#768)). * Make the default `databricks bundle init` template more self-explanatory ([#796](#796)). * Make a notebook wrapper for Python wheel tasks optional ([#797](#797)). * Added a warning when Python wheel wrapper needs to be used ([#807](#807)). Internal: * Added `process.Background()` and `process.Forwarded()` ([#804](#804)). Dependency updates: * Bump golang.org/x/term from 0.11.0 to 0.12.0 ([#798](#798)). * Bump github.com/hashicorp/terraform-exec from 0.18.1 to 0.19.0 ([#801](#801)). * Bump golang.org/x/oauth2 from 0.11.0 to 0.12.0 ([#802](#802)).
Bundles: * Enable target overrides for pipeline clusters ([#792](#792)). * Add support for regex patterns in template schema ([#768](#768)). * Make the default `databricks bundle init` template more self-explanatory ([#796](#796)). * Make a notebook wrapper for Python wheel tasks optional ([#797](#797)). * Added a warning when Python wheel wrapper needs to be used ([#807](#807)). Internal: * Added `process.Background()` and `process.Forwarded()` ([#804](#804)). Dependency updates: * Bump golang.org/x/term from 0.11.0 to 0.12.0 ([#798](#798)). * Bump github.com/hashicorp/terraform-exec from 0.18.1 to 0.19.0 ([#801](#801)). * Bump golang.org/x/oauth2 from 0.11.0 to 0.12.0 ([#802](#802)).
## Changes Added a warning when Python wheel wrapper needs to be used ## Tests Added unit tests + manual run with different bundle configurations
Bundles: * Enable target overrides for pipeline clusters ([#792](#792)). * Add support for regex patterns in template schema ([#768](#768)). * Make the default `databricks bundle init` template more self-explanatory ([#796](#796)). * Make a notebook wrapper for Python wheel tasks optional ([#797](#797)). * Added a warning when Python wheel wrapper needs to be used ([#807](#807)). Internal: * Added `process.Background()` and `process.Forwarded()` ([#804](#804)). Dependency updates: * Bump golang.org/x/term from 0.11.0 to 0.12.0 ([#798](#798)). * Bump github.com/hashicorp/terraform-exec from 0.18.1 to 0.19.0 ([#801](#801)). * Bump golang.org/x/oauth2 from 0.11.0 to 0.12.0 ([#802](#802)).
Changes
Added a warning when Python wheel wrapper needs to be used
Tests
Added unit tests + manual run with different bundle configurations