Skip to content

🐛 fix(Boxcutter): Use Installing/Upgrading reasons for active operations#2473

Open
camilamacedo86 wants to merge 1 commit intooperator-framework:mainfrom
camilamacedo86:absent-fix
Open

🐛 fix(Boxcutter): Use Installing/Upgrading reasons for active operations#2473
camilamacedo86 wants to merge 1 commit intooperator-framework:mainfrom
camilamacedo86:absent-fix

Conversation

@camilamacedo86
Copy link
Contributor

@camilamacedo86 camilamacedo86 commented Feb 2, 2026

Show Installing when first install is rolling out and Upgrading when an existing bundle is being updated. This gives users clearer status about what's happening instead of the vague Absent reason.

We are also improving the coverage within it.

Address fedback/suggestion; #2465 (comment)

Copilot AI review requested due to automatic review settings February 2, 2026 10:53
@openshift-ci openshift-ci bot requested review from ankitathomas and pedjak February 2, 2026 10:53
@netlify
Copy link

netlify bot commented Feb 2, 2026

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 54413a9
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/69818af04030de0008ab7b96
😎 Deploy Preview https://deploy-preview-2473--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the status reporting for ClusterExtension operations by introducing two new condition reasons (Installing and Upgrading) to replace the generic Absent reason during active operations. This provides clearer status feedback to users about whether a bundle is being installed for the first time or being upgraded.

Changes:

  • Added ReasonInstalling and ReasonUpgrading constants to the API types
  • Updated controller logic to detect and set these new reasons appropriately
  • Added comprehensive test coverage for both installation and upgrade scenarios

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
api/v1/common_types.go Adds new ReasonInstalling and ReasonUpgrading constants for the Installed condition type
internal/operator-controller/conditionsets/conditionsets.go Registers the new condition reasons in the complete set of valid reasons
internal/operator-controller/controllers/common_controller.go Updates setInstalledStatusFromRevisionStates to detect upgrades, renames determineFailureReason to determineInstalledReason with logic to return Installing for healthy rollouts, and adds setInstalledStatusConditionUpgrading helper function
internal/operator-controller/controllers/common_controller_test.go Adds comprehensive test coverage for upgrade scenarios and updates existing tests to verify Installing reason usage during initial installations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.62%. Comparing base (e224f78) to head (54413a9).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2473      +/-   ##
==========================================
+ Coverage   69.55%   69.62%   +0.06%     
==========================================
  Files         102      102              
  Lines        8354     8371      +17     
==========================================
+ Hits         5811     5828      +17     
  Misses       2079     2079              
  Partials      464      464              
Flag Coverage Δ
e2e 46.42% <9.52%> (-0.42%) ⬇️
experimental-e2e 13.17% <0.00%> (+0.02%) ⬆️
unit 57.57% <100.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@camilamacedo86 camilamacedo86 force-pushed the absent-fix branch 2 times, most recently from f38b32f to 2e8c1d2 Compare February 2, 2026 14:34
Copilot AI review requested due to automatic review settings February 2, 2026 14:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@camilamacedo86 camilamacedo86 changed the title 🐛 fix(Boxcutter): Use Installing/Upgrading reasons for active operations WIP 🐛 fix(Boxcutter): Use Installing/Upgrading reasons for active operations Feb 2, 2026
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 2, 2026
Copilot AI review requested due to automatic review settings February 2, 2026 17:27
@camilamacedo86 camilamacedo86 changed the title WIP 🐛 fix(Boxcutter): Use Installing/Upgrading reasons for active operations 🐛 fix(Boxcutter): Use Installing/Upgrading reasons for active operations Feb 2, 2026
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

},
},
{
name: "installed bundle with multiple rolling revisions including errors - uses Succeeded",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain this test better? Why is it considered successful, if it's retrying?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done thx

@camilamacedo86 camilamacedo86 force-pushed the absent-fix branch 2 times, most recently from 2ee13cb to 734a6b3 Compare February 2, 2026 20:01
Copilot AI review requested due to automatic review settings February 2, 2026 20:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 2, 2026 20:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Show Installing when first install is rolling out and Upgrading
when an existing bundle is being updated. This gives users clearer
status about what's happening instead of the vague Absent reason.

Assisted-by: Cursors/Claude
Copilot AI review requested due to automatic review settings February 3, 2026 05:43
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Feb 3, 2026
@perdasilva perdasilva removed approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. labels Feb 3, 2026
@perdasilva
Copy link
Contributor

whoops - sorry I didn't mean to approve

@tmshort
Copy link
Contributor

tmshort commented Feb 3, 2026

/approve

@openshift-ci
Copy link

openshift-ci bot commented Feb 3, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: perdasilva, tmshort

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

The pull request process is described here

Details 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 Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 3, 2026
@camilamacedo86
Copy link
Contributor Author

/hold

@pedjak seems not sure if we should move with it. Discussion : https://redhat-internal.slack.com/archives/C096LBLFMFV/p1770122308536019?thread_ts=1770054468.987749&cid=C096LBLFMFV

So, lets debate this one first

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants