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

RHOAIENG-18793: chore(components/): delete the components we don't use in ODH-io #512

Merged

Conversation

jiridanek
Copy link
Member

@jiridanek jiridanek commented Feb 20, 2025

NBC:

ONBC:

Description

github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect

It appears that we carry around lots of code in the components/ subdirectory that we don't build and ship in ODH-io. Let's delete the components we don't use.

How Has This Been Tested?

It builds.

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@openshift-ci openshift-ci bot requested review from atheo89 and paulovmr February 20, 2025 07:32
@openshift-ci openshift-ci bot added size/xxl and removed size/xxl labels Feb 20, 2025
@atheo89
Copy link
Member

atheo89 commented Feb 20, 2025

Don't we exclude that folders from snyk scanning with this: https://github.com/jiridanek/kubeflow/blob/jd_followup_minimal_diff/.snyk ?

@jiridanek
Copy link
Member Author

Synk file is only used for snyk, not for the cve reporting into jira that prodsec in Red hat does. But good point, if we delete the components, we should also purge them from the .snyk file!

@jiridanek jiridanek force-pushed the jd_followup_minimal_diff branch from 126dc70 to b9cae19 Compare February 20, 2025 08:52
@openshift-ci openshift-ci bot added size/xxl and removed size/xxl labels Feb 20, 2025
@jstourac
Copy link
Member

jstourac commented Feb 20, 2025

Ditch of all the irrelevant components is a good thing to do. But we should be aware that this may brought in eventual complications in case we'll decided to perform regular syncs from the github.com/kubeflow/kubeflow upstream repository. In case that we will be doing these sync manually just couple of times in the year, then it's not an issue; but in case we'll be doing such more often, in such case this could be a bit annoying.

@jiridanek
Copy link
Member Author

Copy link
Member

@harshad16 harshad16 left a comment

Choose a reason for hiding this comment

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

/lgtm
it is good to remove these files and deal with the upgrading during the upgrade process.
This would help with:

  • konflux generated updates, this would avoid it.
  • keep the repo clean.

@harshad16
Copy link
Member

In case that we will be doing these sync manually just couple of times in the year, then it's not an issue; but in case we'll be doing such more often, in such case this could be a bit annoying.

it would be manual for sometime,
as the controller work shifts to a new fork from 2.0 , the would be for a short time comparatively.

@jiridanek
Copy link
Member Author

/approve
/override all

Copy link

openshift-ci bot commented Feb 25, 2025

@jiridanek: /override requires failed status contexts, check run or a prowjob name to operate on.
The following unknown contexts/checkruns were given:

  • all

Only the following failed contexts/checkruns were expected:

  • ci/prow/images
  • ci/prow/kf-notebook-controller-pr-image-mirror
  • ci/prow/odh-notebook-controller-e2e
  • ci/prow/odh-notebook-controller-pr-image-mirror
  • golangci-lint (components/notebook-controller)
  • golangci-lint (components/odh-notebook-controller)
  • pull-ci-opendatahub-io-kubeflow-main-images
  • pull-ci-opendatahub-io-kubeflow-main-kf-notebook-controller-pr-image-mirror
  • pull-ci-opendatahub-io-kubeflow-main-odh-notebook-controller-e2e
  • pull-ci-opendatahub-io-kubeflow-main-odh-notebook-controller-pr-image-mirror
  • tide

If you are trying to override a checkrun that has a space in it, you must put a double quote on the context.

In response to this:

/approve
/override all

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-sigs/prow repository.

Copy link

openshift-ci bot commented Feb 25, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jiridanek

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

@jiridanek
Copy link
Member Author

/override "golangci-lint (components/notebook-controller)" "golangci-lint (components/odh-notebook-controller)"

Copy link

openshift-ci bot commented Feb 25, 2025

@jiridanek: Overrode contexts on behalf of jiridanek: golangci-lint (components/notebook-controller), golangci-lint (components/odh-notebook-controller)

In response to this:

/override "golangci-lint (components/notebook-controller)" "golangci-lint (components/odh-notebook-controller)"

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-sigs/prow repository.

@jiridanek
Copy link
Member Author

This would close the following, i believe

@harshad16 merging the renovate.json config in #514 would be a better solution, but yes, deleting the components will also help deal with autoupdates ;p

@openshift-merge-bot openshift-merge-bot bot merged commit d109b88 into opendatahub-io:main Feb 25, 2025
10 of 12 checks passed
@jiridanek jiridanek deleted the jd_followup_minimal_diff branch February 25, 2025 11:23
@jiridanek
Copy link
Member Author

I'm splitting off the renovate.json5 change into its own PR, for easier review

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.

4 participants