-
Notifications
You must be signed in to change notification settings - Fork 1k
add interpreter-notebook #6814
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?
add interpreter-notebook #6814
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary of ChangesHello @dekaihu, 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 integrates support for Kubeflow Notebook resources by adding a new resource interpreter. This interpreter provides essential logic for health checking, status aggregation, and status reflection, which are crucial for managing and observing Notebook instances within a Kubernetes environment. The addition ensures that Notebooks can be properly monitored and their states accurately represented. 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
|
5ed377c
to
28ccf7a
Compare
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 a resource interpreter customization for Kubeflow Notebooks. The implementation has several issues in the Lua scripts for health interpretation, status aggregation, and status reflection that could lead to incorrect behavior. I've provided suggestions to fix these issues and improve the robustness of the scripts. Additionally, there's a minor inconsistency in the test configuration that should be addressed.
...reter/default/thirdparty/resourcecustomizations/kubeflow.org/v1/Notebook/customizations.yaml
Show resolved
Hide resolved
...reter/default/thirdparty/resourcecustomizations/kubeflow.org/v1/Notebook/customizations.yaml
Show resolved
Hide resolved
...reter/default/thirdparty/resourcecustomizations/kubeflow.org/v1/Notebook/customizations.yaml
Show resolved
Hide resolved
...default/thirdparty/resourcecustomizations/kubeflow.org/v1/Notebook/customizations_tests.yaml
Show resolved
Hide resolved
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6814 +/- ##
==========================================
+ Coverage 45.73% 45.83% +0.10%
==========================================
Files 689 690 +1
Lines 57104 57300 +196
==========================================
+ Hits 26114 26266 +152
- Misses 29358 29403 +45
+ Partials 1632 1631 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
9d9707f
to
44e4548
Compare
/gemini review |
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 introduces a resource interpreter customization for Kubeflow Notebooks. The changes include the customization definition with Lua scripts for health interpretation, status aggregation, and status reflection, along with corresponding tests and test data.
My review of the Lua scripts has identified a couple of issues that could affect the correctness and robustness of the interpreter:
- In the
statusAggregation
script, thecontainerState
is being overwritten in each loop iteration, which will result in loss of information from all but the last member cluster. - The
statusReflection
script performs unsafe access to status fields, which could lead to an inconsistent structure in the returned status if some fields are missing in the observed object.
I have provided specific suggestions to address these points. After these fixes, the PR should be in good shape.
...reter/default/thirdparty/resourcecustomizations/kubeflow.org/v1/Notebook/customizations.yaml
Show resolved
Hide resolved
...reter/default/thirdparty/resourcecustomizations/kubeflow.org/v1/Notebook/customizations.yaml
Outdated
Show resolved
Hide resolved
a3a640b
to
9412500
Compare
Signed-off-by: hudekai <[email protected]>
18f0f45
to
14f50ea
Compare
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: