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

Model adapter controller improvement and refactor #135

Merged
merged 8 commits into from
Sep 9, 2024

Conversation

Jeffwan
Copy link
Collaborator

@Jeffwan Jeffwan commented Sep 6, 2024

Pull Request Description

  1. Add artifact url part of the spec, we do not use untyped string from additonalConfig anymore.
  2. Add more validation (code + kubebuilder tag) for ModelAdapter fields
  3. Refactor the workflow and extract some utils for easy testing
  4. Add more tests against those utilities

Related Issues

Resolves: #41 #51 part of #136

Important: Before submitting, please complete the description above and review the checklist below.


Contribution Guidelines (Expand for Details)

We appreciate your contribution to aibrix! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:

Pull Request Title Format

Your PR title should start with one of these prefixes to indicate the nature of the change:

  • [Bug]: Corrections to existing functionality
  • [CI]: Changes to build process or CI pipeline
  • [Docs]: Updates or additions to documentation
  • [API]: Modifications to aibrix's API or interface
  • [CLI]: Changes or additions to the Command Line Interface
  • [Misc]: For changes not covered above (use sparingly)

Note: For changes spanning multiple categories, use multiple prefixes in order of importance.

Submission Checklist

  • PR title includes appropriate prefix(es)
  • Changes are clearly explained in the PR description
  • New and existing tests pass successfully
  • Code adheres to project style and best practices
  • Documentation updated to reflect changes (if applicable)
  • Thorough testing completed, no regressions introduced

By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.

LastTransitionTime: metav1.Now(),
})
if err := r.Status().Update(ctx, instance); err != nil {
klog.InfoS("Got error when updating status", "error", err, "ModelAdapter", instance)
Copy link
Collaborator

Choose a reason for hiding this comment

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

ErrorS? I noticed there are few more places where Info is used for logging error.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nice catch. it should be error. Let's have a clean up in this story #69

@Jeffwan Jeffwan merged commit daf89f4 into main Sep 9, 2024
3 checks passed
@Jeffwan Jeffwan deleted the jiaxin/lora-crd-improvement branch September 9, 2024 17:16
gangmuk pushed a commit that referenced this pull request Jan 25, 2025
* Update model adapter CRD with more fields

* Update the generated clientset

* Improve the model adapter controller quality

1. Move utils and resource creation to separate files for easy testing
2. Optimize the existing controller codes

* Refactor the reconcileLoading method

* Fix the lint error

* Fix some failed unit tests

* Add missing license files

* Address review feedbacks
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.

Add more validation on the model adapter request
2 participants