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

Upgrade klog to v2 #2470

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Doris-xm
Copy link

@Doris-xm Doris-xm commented Jan 7, 2025

What this PR does / why we need it:

This PR upgrades klog to v2 to unify logging dependencies in the project.

Which issue(s) this PR fixes :

Fixes #2469

Checklist:

  • Docs included if any changes are user facing

Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign gaocegege for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Electronic-Waste
Copy link
Member

Electronic-Waste commented Jan 7, 2025

@Doris-xm It seems that you didn't sign your commits with -s. Could you please sign your PR with git rebase HEAD~1 --signoff so that this PR can pass the DCO check?

@Doris-xm
Copy link
Author

Doris-xm commented Jan 7, 2025

@Electronic-Waste Thanks for your detailed guidance! I've fixed the issue. The PR should now pass the DCO check.

@Electronic-Waste
Copy link
Member

/ok-to-test
/rerun-all

@Electronic-Waste
Copy link
Member

@Doris-xm Welcome to the Kubeflow community! 🎉🎉🎉

You can now rerun the failed tests with command /rerun-all. Wish it a happy journey for you to contribute to katib and other subprojects under Kubeflow!

@Doris-xm
Copy link
Author

Doris-xm commented Jan 7, 2025

/rerun-all

Copy link
Member

@Electronic-Waste Electronic-Waste left a comment

Choose a reason for hiding this comment

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

Thanks for your great contribution! Just a few suggestions @Doris-xm .

/assign @kubeflow/wg-automl-leads @helenxie-bit PTAL if you have time:)

@@ -28,7 +28,7 @@ import (
api_pb "github.com/kubeflow/katib/pkg/apis/manager/v1beta1"
db "github.com/kubeflow/katib/pkg/db/v1beta1"
"github.com/kubeflow/katib/pkg/db/v1beta1/common"
"k8s.io/klog"
klog "k8s.io/klog/v2"
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we could omit klog since k8s.io/klog/v2 could already be referenced by klog

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for your suggestion! I've removed the redundant klog alias. The code becomes cleaner and consistent now. Appreciate your review!

@Doris-xm
Copy link
Author

Doris-xm commented Jan 7, 2025

/rerun-all

@Electronic-Waste
Copy link
Member

Electronic-Waste commented Jan 8, 2025

It seems that the CI failed due to npm install timeout. Maybe we could try it again later.

This PR basically LGTM. I will leave it for @kubeflow/wg-automl-leads @tariq-hasan @helenxie-bit . PTAL if you have time.

Thanks for your great contribution! @Doris-xm

/lgtm
/hold for #2463

@Electronic-Waste
Copy link
Member

Copy link

@Electronic-Waste: GitHub didn't allow me to assign the following users: tariq-hasan.

Note that only kubeflow members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @andreyvelich @tenzen-y @tariq-hasan @helenxie-bit

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@helenxie-bit
Copy link
Contributor

Thanks for the contribution! LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade klog to v2
5 participants