You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Attempting to run Workspace SDK in our staging environment generate an error, ValueError: Not a valid Semver
Reproduction
run clusters.select_spark_version(latest=True)
Expected behavior
I expected it to work similar to any other workspace.
Debug Logs
The SDK logs helpful debugging information when debug logging is enabled. Set the log level to debug by adding logging.basicConfig(level=logging.DEBUG) to your program, and include the logs here.
Thanks for reporting this @FastLee! Given that this only impacts staging, this is a lower priority issue for us to look into. As a workaround for now, you can list spark versions directly and pick the version you want from the response.
## Changes
In staging, there are some spark versions that do not have a patch
version. We fall back to a different pattern with no patch component for
these. Additionally, we check if the builds are equal to one another
(which allows us to avoid comparing one < the other in the case where
they are both None).
Closes#352 and #378.
## Tests
<!--
How is this tested? Please see the checklist below and also describe any
other relevant tests
-->
- [x] Added a unit test with a format that was previously not supported.
- [x] Hand-wrote an example using select_spark_versions(). This failed
on `main` but passed on my branch when targeting a staging workspace.
Description
Attempting to run Workspace SDK in our staging environment generate an error, ValueError: Not a valid Semver
Reproduction
run clusters.select_spark_version(latest=True)
Expected behavior
I expected it to work similar to any other workspace.
Debug Logs
The SDK logs helpful debugging information when debug logging is enabled. Set the log level to debug by adding
logging.basicConfig(level=logging.DEBUG)
to your program, and include the logs here.Other Information
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: