Skip to content

upgrade operator-sdk and kubebuilder for openshift 4.17 #1160

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

Conversation

rsoaresd
Copy link
Contributor

@rsoaresd rsoaresd commented Mar 18, 2025

Description

We already did the first phase of PRs to upgrade the dependencies for openshift 4.17. Now the second phase is to actually upgrade operator-sdk and kubebuilder. The following docs were followed:

Tool/Library Current Version Updates to Version
Operator SDK 1.36 1.38
kubebuilder v3 v4

Related PRs:

Issue ticket number and link

SANDBOX-808

@@ -1,4 +1,4 @@
OWNER_AND_BRANCH_LOCATION=codeready-toolchain/toolchain-cicd/master
OWNER_AND_BRANCH_LOCATION=rsoaresd/toolchain-cicd/openshift_4_17_cicd
Copy link
Contributor Author

@rsoaresd rsoaresd Mar 18, 2025

Choose a reason for hiding this comment

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

temporary until codeready-toolchain/toolchain-cicd#136 is merged / ensure that nothing breaks

Copy link
Contributor

@metlos metlos left a comment

Choose a reason for hiding this comment

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

LGTM and I trust you not to forget about updating the reference to your own fork of toolchain-cicd 😃

Copy link
Contributor

@fbm3307 fbm3307 left a comment

Choose a reason for hiding this comment

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

There is a flaky unit test case, i did come across this in one of my PRs.
FAIL: TestUserSignupWithAutoApprovalWithoutTargetCluster (0.01s) counter.go:140: toolchainStatus members: [{http://api.devcluster.openshift.com/ member1 0 {<nil> <nil> <nil> <nil> [] {map[master:65 worker:68]} <nil>}}] counter.go:140: toolchainStatus members: [] metric.go:40: Error Trace: /home/runner/go/pkg/mod/github.com/codeready-toolchain/toolchain-common@v0.0.0-20250313203311-0bce6563576f/pkg/test/metrics/metric.go:40 /home/runner/work/host-operator/host-operator/controllers/usersignup/usersignup_controller_test.go:559 Error: Not equal: expected: 0x1 actual : 0x0 Test: TestUserSignupWithAutoApprovalWithoutTargetCluster

Copy link

openshift-ci bot commented Mar 20, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexeykazakov, fbm3307, metlos, mfrancisc, rsoaresd

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:
  • OWNERS [alexeykazakov,fbm3307,metlos,mfrancisc,rsoaresd]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rsoaresd
Copy link
Contributor Author

There is a flaky unit test case, i did come across this in one of my PRs. FAIL: TestUserSignupWithAutoApprovalWithoutTargetCluster (0.01s) counter.go:140: toolchainStatus members: [{http://api.devcluster.openshift.com/ member1 0 {<nil> <nil> <nil> <nil> [] {map[master:65 worker:68]} <nil>}}] counter.go:140: toolchainStatus members: [] metric.go:40: Error Trace: /home/runner/go/pkg/mod/github.com/codeready-toolchain/toolchain-common@v0.0.0-20250313203311-0bce6563576f/pkg/test/metrics/metric.go:40 /home/runner/work/host-operator/host-operator/controllers/usersignup/usersignup_controller_test.go:559 Error: Not equal: expected: 0x1 actual : 0x0 Test: TestUserSignupWithAutoApprovalWithoutTargetCluster

@fbm3307 I did not see that flaky test in this pr. Can you point me to the job pls?

Copy link

@rsoaresd rsoaresd changed the title upgrade operator-sdk and kubebuilder upgrade operator-sdk and kubebuilder for openshift 4.17 Mar 20, 2025
@rsoaresd rsoaresd merged commit f21e336 into codeready-toolchain:master Mar 20, 2025
12 of 14 checks passed
Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.73%. Comparing base (825a78b) to head (f6fe535).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1160      +/-   ##
==========================================
+ Coverage   79.71%   83.73%   +4.01%     
==========================================
  Files          83       82       -1     
  Lines        8333     7933     -400     
==========================================
  Hits         6643     6643              
+ Misses       1493     1093     -400     
  Partials      197      197              

see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

6 participants