Skip to content

🐛 Ensure fixed order in multi-line errors returned by crdupgradesafety validators - #1864

Merged
perdasilva merged 3 commits into
operator-framework:mainfrom
azych:ordered-errors-crdupgradesafety
Mar 17, 2025
Merged

🐛 Ensure fixed order in multi-line errors returned by crdupgradesafety validators#1864
perdasilva merged 3 commits into
operator-framework:mainfrom
azych:ordered-errors-crdupgradesafety

Conversation

@azych

Copy link
Copy Markdown
Contributor

Description

Because of #1863, we can now introduce proper fix for the issue of randomly ordered errors causing `ClusterExtension' status changes and unnecessary reconciliations (see original issue here: #1456) without having to wait until the upstream fix is accepted in kapp (carvel-dev/kapp#1047).

Apart from the introducing proper fix and removal of temporary solution, this also refactors ServedVersionValidator out of checks.go and adds unit tests for it.

Closes#1456

Reviewer Checklist

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

@azych
azych requested a review from a team as a code ownerMarch 13, 2025 10:28
@netlify

netlifyBot commented Mar 13, 2025

Copy link
Copy Markdown

Deploy Preview for olmv1 ready!

NameLink
🔨 Latest commita82e95b
🔍 Latest deploy loghttps://app.netlify.com/sites/olmv1/deploys/67d2b3c352fe4200084d3e77
😎 Deploy Previewhttps://deploy-preview-1864--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.

@azych
azychforce-pushed the ordered-errors-crdupgradesafety branch from 93fb65b to a82e95bCompareMarch 13, 2025 10:30
@codecov

codecovBot commented Mar 13, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.92%. Comparing base (7061d92) to head (a82e95b).
Report is 3 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #1864 +/- ##
==========================================
- Coverage 69.04% 68.92% -0.13% 
==========================================
Files 65 66 +1 Lines 5263 5236 -27 ==========================================
- Hits 3634 3609 -25 + Misses 1396 1395 -1 + Partials 233 232 -1 
FlagCoverage Δ
e2e50.35% <0.00%> (+0.26%)⬆️
unit56.77% <100.00%> (-0.19%)⬇️

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.

@perdasilvaperdasilva 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 - thank you ^^

@perdasilva
perdasilva added this pull request to the merge queue Mar 17, 2025
Merged via the queue into operator-framework:main with commit e8c281eMar 17, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Constant reconciliation due to changing error message on CRD validation

2 participants

@azych@perdasilva