-
Notifications
You must be signed in to change notification settings - Fork 262
fix(spark): clean up session and port-forward on failure #779
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -627,12 +627,12 @@ def get_spark_connect_info_from_cr( | |||
| raise ValueError(f"SparkConnect CR is invalid: {spark_connect_cr}") | ||||
|
|
||||
| # Parse state | ||||
| state = SparkConnectState.PROVISIONING | ||||
| state = common_constants.UNKNOWN | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually I think it's better for this one to be Granted the Please also remove the ready state from the following since only the provisioning state can be captured after CR creation before it is read back out from the control plane. sdk/test/e2e/spark/test_spark_examples.py Line 114 in 3febcd7
|
||||
| if spark_connect_cr.status and spark_connect_cr.status.state: | ||||
| try: | ||||
| state = SparkConnectState(spark_connect_cr.status.state) | ||||
| except ValueError: | ||||
| state = SparkConnectState.PROVISIONING | ||||
| state = common_constants.UNKNOWN | ||||
|
|
||||
| # Extract server status | ||||
| server_status = None | ||||
|
|
||||
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.
Unit tests need to use the existing
test_<method>function naming pattern with test cases using theTestCasehelper.Please also add test cases that cover