fix(dashboard): use cluster_name_on_cloud for instance link filters#9183
fix(dashboard): use cluster_name_on_cloud for instance link filters#9183LikiosSedo wants to merge 1 commit intoskypilot-org:masterfrom
Conversation
Instance links pass self.cluster_name (without user hash) to generate_instance_links(), but instances are tagged with cluster_name_on_cloud (with user hash). The URL filter matches nothing in the cloud console. Fixes skypilot-org#9047
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a bug in the managed jobs dashboard where instance links failed to correctly identify virtual machines in cloud consoles. The fix involves updating the cluster name used for generating these links to ensure accurate filtering and display of cloud instances. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request modifies the _launch method in sky/jobs/recovery_strategy.py to use handle.cluster_name_on_cloud instead of self.cluster_name when generating instance links. This change likely ensures that the correct cluster name is used for linking purposes. I have no feedback to provide.
Summary
Instance links in the managed jobs dashboard point to wrong VM names in the cloud console.
Root Cause
generate_instance_links()receivesself.cluster_name(generated withadd_user_hash=False), but cloud instances are tagged withcluster_name_on_cloud(which includes the user hash suffix). The URL filter therefore matches nothing.For example:
self.cluster_name=sky-job-abchandle.cluster_name_on_cloud=sky-job-abc-user123ray-cluster-name: sky-job-abc-user123ray-cluster-name: sky-job-abc→ no resultsFix
Use
handle.cluster_name_on_cloudinstead ofself.cluster_namewhen callinggenerate_instance_links()insky/jobs/recovery_strategy.py.Fixes #9047