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

🐛 [Fix] Constant reconciles due to Catalog's poll interval #812

Merged

Conversation

varshaprasad96
Copy link
Member

@varshaprasad96 varshaprasad96 commented May 1, 2024

Description

Due to the polling feature in the Catalog, the lastPolledInterval in the Catalog's status gets updated. Because of this there is a reconcile triggered every time the catalog is polled, even though there is no change in the resolved image ref.

This causes unnecessary continuous reconciles in the CE reconciler. To overcome this, a Predicate is added to accept update events only when there is a change in Resolved image reference in catalog's status.

Reviewer Checklist

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

@varshaprasad96 varshaprasad96 requested a review from a team as a code owner May 1, 2024 23:57
Copy link

netlify bot commented May 1, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit f1da0d9
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/66352de84c73770008ad9b41
😎 Deploy Preview https://deploy-preview-812--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.

@varshaprasad96 varshaprasad96 changed the title 🐛 [Fix] Fix constant reconciles due to Catalog poll interval 🐛 [Fix] Constant reconciles due to Catalog's poll interval May 2, 2024
Due to the polling feature in the Catalog, the `lastPolledInterval` in the
Catalog's status gets updated. Because of this there is a reconcile is trigrred
every time the catalog is polled, even though there is no change in the
resolved image ref SHA.

This causes unnecessary continuous reconciles in the CE. To overcome this,
a Predicate is added to accept update events only when there is a change in
Resolved reference.

Signed-off-by: Varsha Prasad Narsing <varshaprasad96@gmail.com>
Copy link

codecov bot commented May 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.04%. Comparing base (79d64e8) to head (f1da0d9).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #812      +/-   ##
==========================================
+ Coverage   67.21%   71.04%   +3.83%     
==========================================
  Files          23       16       -7     
  Lines        1467     1278     -189     
==========================================
- Hits          986      908      -78     
+ Misses        415      300     -115     
- Partials       66       70       +4     
Flag Coverage Δ
e2e 42.25% <10.00%> (-3.29%) ⬇️
unit 63.59% <100.00%> (+2.24%) ⬆️

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.

Copy link
Contributor

@tmshort tmshort left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 3, 2024
@tmshort tmshort added this pull request to the merge queue May 3, 2024
Merged via the queue into operator-framework:main with commit 11843c9 May 3, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants