Skip to content

🐛 fix: do not silently drop finalizer updates when status is also updated - #1283

Merged
tmshort merged 1 commit into
operator-framework:mainfrom
joelanford:fix-dual-update
Sep 19, 2024
Merged

🐛 fix: do not silently drop finalizer updates when status is also updated#1283
tmshort merged 1 commit into
operator-framework:mainfrom
joelanford:fix-dual-update

Conversation

@joelanford

Copy link
Copy Markdown
Member

This is a fix for a bug that @anik120 stumbled upon in catalogd while working on operator-framework/catalogd#379.

Wanted to fix it here as well while we're thinking about it.

Description

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@joelanford
joelanford requested a review from a team as a code ownerSeptember 19, 2024 00:51
@netlify

netlifyBot commented Sep 19, 2024

Copy link
Copy Markdown

Deploy Preview for olmv1 ready!

NameLink
🔨 Latest commit6a60606
🔍 Latest deploy loghttps://app.netlify.com/sites/olmv1/deploys/66eb759dcfccf6000896e064
😎 Deploy Previewhttps://deploy-preview-1283--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 site configuration.

@joelanfordjoelanford changed the title fix: do not silently drop finalizer updates when status is also updated🐛 fix: do not silently drop finalizer updates when status is also updatedSep 19, 2024
@codecov

codecovBot commented Sep 19, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 76.51%. Comparing base (df0e848) to head (6a60606).
Report is 1 commits behind head on main.

Files with missing linesPatch %Lines
...nternal/controllers/clusterextension_controller.go50.00%1 Missing and 1 partial ⚠️
Additional details and impacted files
@@ Coverage Diff @@## main #1283 +/- ##
==========================================
+ Coverage 76.49% 76.51% +0.01% 
==========================================
Files 39 39 Lines 2361 2363 +2 ==========================================
+ Hits 1806 1808 +2 
Misses 389 389 Partials 166 166 
FlagCoverage Δ
e2e57.93% <50.00%> (+0.03%)⬆️
unit53.06% <50.00%> (+0.03%)⬆️

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.

@joelanford

Copy link
Copy Markdown
MemberAuthor

codecov/patch test seems to be failing because I moved the check for unexpected changes.

anik120
anik120 previously requested changes Sep 19, 2024

@anik120anik120 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

codecov/patch test seems to be failing because I moved the check for unexpected changes.

Fwiw there were no tests added to confirm this was a problem before(which is fine coz we didn't know it was a problem), but there's no tests now to confirm on paper it is still not a problem

@tmshort

Copy link
Copy Markdown
Contributor

@anik120 not sure we want to test a panic, also not sure how to get a unit test to modify fields while we're in reconcile() This really is a "should never happen" type of situation during normal runs. It might panic if someone were making an incorrect code change.

@tmshorttmshort left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm

@openshift-ciopenshift-ciBot added the lgtm Indicates that a PR is ready to be merged. label Sep 19, 2024
@anik120
anik120 dismissed their stale reviewSeptember 19, 2024 14:13

Didn't realize it was a panic

@tmshort
tmshort added this pull request to the merge queue Sep 19, 2024
@github-merge-queue
github-merge-queueBot removed this pull request from the merge queue due to failed status checks Sep 19, 2024
@tmshort
tmshort added this pull request to the merge queue Sep 19, 2024
Merged via the queue into operator-framework:main with commit 34821faSep 19, 2024
@skattojuskattoju mentioned this pull request Sep 25, 2024
4 tasks
@joelanford
joelanford deleted the fix-dual-update branch October 22, 2024 13:02
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtmIndicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@joelanford@tmshort@anik120@everettraven