Skip to content

🐛 CRD upgrade safety ratcheting #2123

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

joelanford
Copy link
Member

Description

This fixes a bug in the CRD upgrade preflight safety check that causes errors to be reported even when schemas of a CRD have not changed between bundle versions.

The current logic of the CRD checker always reports all issues found in the rountrippability between versions in the new CRD. However if those exact same problems exist in the existing CRD, then the upgrade is not making the situation any worse, so the check should not fail.

NOTE: I have this setup as a WIP because I don't want to use my fork's implementation. We should wait until kubernetes-sigs/crdify#32 merges, and then bump our crdify dependency to pull the fix in.

Reviewer Checklist

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

@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 Jul 29, 2025
Copy link

netlify bot commented Jul 29, 2025

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit e27ff46
🔍 Latest deploy log https://app.netlify.com/projects/olmv1/deploys/6888f8bd29086500080ecdc0
😎 Deploy Preview https://deploy-preview-2123--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

openshift-ci bot commented Jul 29, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tmshort for approval. For more information see the Code Review Process.

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

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

Copy link

codecov bot commented Jul 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.60%. Comparing base (0206ad4) to head (e27ff46).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2123      +/-   ##
==========================================
+ Coverage   73.59%   73.60%   +0.01%     
==========================================
  Files          78       78              
  Lines        7260     7260              
==========================================
+ Hits         5343     5344       +1     
+ Misses       1567     1566       -1     
  Partials      350      350              
Flag Coverage Δ
e2e 43.50% <ø> (?)
experimental-e2e 56.17% <ø> (ø)
unit 58.88% <ø> (+0.01%) ⬆️

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.

@joelanford joelanford force-pushed the crd-upgrade-safety-ratchet branch from b807a29 to e27ff46 Compare July 29, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant