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

Merged
merged 5 commits into from
Jan 15, 2025
Merged

Conversation

Doris-xm
Copy link
Contributor

@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

@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
Contributor 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
Contributor 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
Contributor 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
Contributor 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

Signed-off-by: Xinmin Du <[email protected]>
Signed-off-by: Xinmin Du <[email protected]>
Copy link
Member

@tenzen-y tenzen-y left a comment

Choose a reason for hiding this comment

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

@Doris-xm Could you resolve conflicts?

@tenzen-y
Copy link
Member

/rerun-all

1 similar comment
@tenzen-y
Copy link
Member

/rerun-all

@Doris-xm
Copy link
Contributor Author

Thanks for the reminder! The CI failure is about timeout during exporting cache layers. It seems this happened during a peak testing period on GitHub. I'll rerun the tests later to verify. @tenzen-y

@tenzen-y
Copy link
Member

Thanks for the reminder! The CI failure is about timeout during exporting cache layers. It seems this happened during a peak testing period on GitHub. I'll rerun the tests later to verify. @tenzen-y

If you have enough time, could you open a separate PR to ignore the error similar to kubeflow/training-operator#2336?

@Doris-xm
Copy link
Contributor Author

If you have enough time, could you open a separate PR to ignore the error similar to kubeflow/training-operator#2336?

Appreciate your suggestion and guidance! I’ll work on it soon.

@Electronic-Waste
Copy link
Member

/rerun-all

Signed-off-by: Xinmin Du <[email protected]>

# Conflicts:
#	go.mod
#	go.sum
@tenzen-y
Copy link
Member

/rerun-all

1 similar comment
@tenzen-y
Copy link
Member

/rerun-all

@Electronic-Waste
Copy link
Member

@Doris-xm Could you plz resolve the conflicts?

Signed-off-by: Xinmin Du <[email protected]>

# Conflicts:
#	go.mod
@Doris-xm
Copy link
Contributor Author

/rerun-all

@Electronic-Waste
Copy link
Member

/hold cancel

@tenzen-y
Copy link
Member

/lgtm
/approve

@google-oss-prow google-oss-prow bot added the lgtm label Jan 15, 2025
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tenzen-y

The full list of commands accepted by this bot can be found here.

The pull request process is described 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

@google-oss-prow google-oss-prow bot merged commit 0cab624 into kubeflow:master Jan 15, 2025
63 checks passed
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