Skip to content

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

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

Merged

Conversation

azych
Copy link
Contributor

@azych azych commented Mar 13, 2025

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 owner March 13, 2025 10:28
Copy link

netlify bot commented Mar 13, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit a82e95b
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/67d2b3c352fe4200084d3e77
😎 Deploy Preview https://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 azych force-pushed the ordered-errors-crdupgradesafety branch from 93fb65b to a82e95b Compare March 13, 2025 10:30
Copy link

codecov bot commented Mar 13, 2025

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     
Flag Coverage Δ
e2e 50.35% <0.00%> (+0.26%) ⬆️
unit 56.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.

Copy link
Contributor

@perdasilva perdasilva left a comment

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 e8c281e Mar 17, 2025
20 checks passed
Sign up for free to 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