-
Notifications
You must be signed in to change notification settings - Fork 881
[Core] Add Support for External Links #8334
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: master
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @lloyd-brown, 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 significantly enhances the job monitoring experience by adding comprehensive support for external links. It allows users to define custom links for their jobs and automatically generates cloud-specific instance links, all of which are stored in the database and prominently displayed in the dashboard. This feature aims to provide quick access to relevant external resources and cloud console pages directly from the job details, streamlining debugging and management workflows. Highlights
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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request adds support for displaying external links associated with jobs in the dashboard. The changes span the backend, database, and frontend, including schema migrations to store links, logic to auto-populate instance console URLs, and UI components to render them. The implementation is solid, but I've identified a few areas for improvement: a leftover debug log, an inconsistent type in a database migration, incorrect revision IDs in another migration's docstring, and a redundant code statement.
b8cebb7 to
95115b1
Compare
|
/quicktest-core --base-branch pypi/skypilot |
|
/build-docs |
|
❌ Failed to trigger ReadTheDocs build for branch |
This PR adds support for custom links that the user can specify:
sky jobs launch --custom-links 'Docs="https://docs.example.com"' task.yaml$SKYPILOT_LINKSon running jobsOur links are stored in a new column in the spot jobs table.
Our runtime link support is implemented by having users write to the new link file on the cluster and by adding logic in the JobsController instance to periodically read these links and update the database.
We've made docs changes with a preview here https://docs.skypilot.co/en/external-link-docs/examples/managed-jobs.html#custom-links
Tested (run the relevant ones):
bash format.sh/smoke-test(CI) orpytest tests/test_smoke.py(local)/smoke-test -k test_name(CI) orpytest tests/test_smoke.py::test_name(local)/quicktest-core(CI) orpytest tests/smoke_tests/test_backward_compat.py(local)