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

NO-JIRA: chore(nbcs): update tooling in controller's Makefiles #391

Conversation

jiridanek
Copy link
Member

@jiridanek jiridanek commented Sep 25, 2024

Look at this first, after this gets in, the diff will shrink

Description

Update tooling in notebook controller Makefile,

  • controller-gen
  • kustomize
  • setup-envtest

This is motivated by first the fact that old controller-gen segfaults on my machine, and that old setup-envtest does not run on macOS. Kustomize is updated to align with https://issues.redhat.com/browse/RHOAIENG-11679 and

How Has This Been Tested?

  • Github Actions
  • make test, make manifests, make generate locally

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-cherrypick-robot

@jiridanek: once the present PR merges, I will cherry-pick it on top of stable in a new PR and assign it to you.

In response to this:

/cherrypick stable

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.

@openshift-cherrypick-robot

@jiridanek: once the present PR merges, I will cherry-pick it on top of v1.9-branch in a new PR and assign it to you.

In response to this:

/cherrypick v1.9-branch

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 jiridanek changed the title NO-JIRA: chore(nbcs): Update tooling in controller's Makefiles NO-JIRA: chore(nbcs): update tooling in controller's Makefiles Sep 25, 2024
@atheo89
Copy link
Member

atheo89 commented Oct 2, 2024

/hold

Hey Jiri, could you switch the target branch to main please?

@openshift-ci openshift-ci bot added the do-not-merge/hold Do not merge this PR label Oct 2, 2024
@jiridanek jiridanek changed the base branch from v1.7-branch to v1.9-branch October 2, 2024 09:49
@openshift-merge-robot openshift-merge-robot added the needs-rebase The PR needs a rebase or there are conflicts label Oct 2, 2024
@openshift-merge-robot
Copy link

PR needs rebase.

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 jiridanek force-pushed the update_tooling_odh-controlelr branch 2 times, most recently from 601d07b to 1546f4c Compare October 2, 2024 10:53
@jiridanek jiridanek added ok-to-test and removed do-not-merge/hold Do not merge this PR needs-rebase The PR needs a rebase or there are conflicts labels Oct 2, 2024
@jiridanek
Copy link
Member Author

Sure, rebased, retargetted.

@jiridanek jiridanek changed the base branch from v1.9-branch to main October 2, 2024 12:42
@jiridanek jiridanek force-pushed the update_tooling_odh-controlelr branch from 1546f4c to e0b6185 Compare October 2, 2024 12:43
Copy link
Member

@jstourac jstourac left a comment

Choose a reason for hiding this comment

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

/lgtm

bin/setup-envtest use 1.23 -p path
unable to find a version that was supported for platform darwin/arm64
```
make generate
GOBIN=/Users/jdanek/IdeaProjects/kubeflow/components/odh-notebook-controller/bin go install sigs.k8s.io/controller-tools/cmd/[email protected]
/Users/jdanek/IdeaProjects/kubeflow/components/odh-notebook-controller/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..."
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1008a00a4]
```
@jiridanek jiridanek force-pushed the update_tooling_odh-controlelr branch from e0b6185 to 3532395 Compare October 2, 2024 15:13
Copy link

openshift-ci bot commented Oct 2, 2024

New changes are detected. LGTM label has been removed.

@openshift-ci openshift-ci bot removed the lgtm label Oct 2, 2024
@jiridanek
Copy link
Member Author

rebased
/approve

@jiridanek jiridanek added the lgtm label Oct 2, 2024
Copy link

openshift-ci bot commented Oct 2, 2024

[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

@openshift-ci openshift-ci bot added the approved label Oct 2, 2024
Copy link

openshift-ci bot commented Oct 2, 2024

[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

@openshift-merge-bot openshift-merge-bot bot merged commit 1b2dd4f into opendatahub-io:main Oct 2, 2024
15 checks passed
@jiridanek jiridanek deleted the update_tooling_odh-controlelr branch October 2, 2024 16:25
jstourac added a commit to jstourac/kubeflow that referenced this pull request Oct 25, 2024
This is a followup of opendatahub-io#391 (1b2dd4f).

Without this, we can see the following failure during the e2e tests
execution:
```
make run-ci-e2e-tests
...
GOBIN=/home/jstourac/workspace/rhosai/odh/kubeflow/components/odh-notebook-controller/bin go install sigs.k8s.io/kustomize/v3/cmd/[email protected]
go: sigs.k8s.io/kustomize/v3/cmd/[email protected]: sigs.k8s.io/kustomize/v3/cmd/[email protected]: invalid version: unknown revision v3/cmd/kustomize/v5.0.2
make[1]: *** [Makefile:243: kustomize] Error 1
...
```
This caused that all e2e tests failed. After this fix, some e2e tests
pass. The other seem to fail on a problem unrelated to this one.
jstourac added a commit to jstourac/kubeflow that referenced this pull request Nov 8, 2024
This is a followup of opendatahub-io#391 (1b2dd4f).

Without this, we can see the following failure during the e2e tests
execution:
```
make run-ci-e2e-tests
...
GOBIN=/home/jstourac/workspace/rhosai/odh/kubeflow/components/odh-notebook-controller/bin go install sigs.k8s.io/kustomize/v3/cmd/[email protected]
go: sigs.k8s.io/kustomize/v3/cmd/[email protected]: sigs.k8s.io/kustomize/v3/cmd/[email protected]: invalid version: unknown revision v3/cmd/kustomize/v5.0.2
make[1]: *** [Makefile:243: kustomize] Error 1
...
```
This caused that all e2e tests failed. After this fix, some e2e tests
pass. The other seem to fail on a problem unrelated to this one.
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.

5 participants