Skip to content
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

Fix use of open_cluster_tunnels cache to account for dead connections. #194

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

rohinb2
Copy link
Contributor

@rohinb2 rohinb2 commented Dec 5, 2023

Run local tests, but individually (when running together we still get some cluster issues):

Server tests: pytest -v --level local -k "not TestFunction and not TestEnv and not TestCluster and not TestResource

Cluster & Resource: pytest -v --level local -k "TestCluster or TestResource"

Function: pytest -v --level local -k "TestFunction"

@rohinb2
Copy link
Contributor Author

rohinb2 commented Dec 5, 2023

@rohinb2 rohinb2 force-pushed the rohin/fix-ssh-tunnel-caching branch 3 times, most recently from 82e9c16 to 0a9627b Compare December 5, 2023 22:49
@@ -555,7 +553,7 @@ def ssh(self, interactive: bool = True):
>>> rh.sagemaker_cluster(name="sagemaker-cluster").ssh()
"""

if self.instance_id not in open_cluster_tunnels:
if self.instance_id not in ssh_tunnel_cache:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uhh @jlewitt1, is the instance_id in the form of (address, port)?

@rohinb2 rohinb2 force-pushed the rohin/fix-ssh-tunnel-caching branch from 0a9627b to 7975f75 Compare December 6, 2023 16:04
@rohinb2 rohinb2 merged commit 043a401 into main Dec 6, 2023
7 checks passed
@jlewitt1 jlewitt1 deleted the rohin/fix-ssh-tunnel-caching branch December 12, 2023 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant