Skip to content

Conversation

jianzhangbjz
Copy link
Contributor

Manually cherry-pick operator-framework/operator-controller@236319b to release-4.20

@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Oct 17, 2025
@openshift-ci-robot
Copy link

@jianzhangbjz: This pull request references Jira Issue OCPBUGS-61890, which is invalid:

  • release note text must be set and not match the template OR release note type must be set to "Release Note Not Required". For more information you can reference the OpenShift Bug Process.
  • expected Jira Issue OCPBUGS-61890 to depend on a bug targeting a version in 4.21.0 and in one of the following states: MODIFIED, ON_QA, VERIFIED, but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

Manually cherry-pick operator-framework/operator-controller@236319b to release-4.20

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link
Contributor

openshift-ci bot commented Oct 17, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jianzhangbjz

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

The pull request process is described 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 17, 2025
@jianzhangbjz
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot
Copy link

@jianzhangbjz: This pull request references Jira Issue OCPBUGS-61890, which is invalid:

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@jianzhangbjz
Copy link
Contributor Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Oct 17, 2025
@openshift-ci-robot
Copy link

@jianzhangbjz: This pull request references Jira Issue OCPBUGS-61890, which is valid. The bug has been moved to the POST state.

7 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.20.0) matches configured target version for branch (4.20.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
  • release note type set to "Release Note Not Required"
  • dependent bug Jira Issue OCPBUGS-58462 is in the state Verified, which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
  • dependent Jira Issue OCPBUGS-58462 targets the "4.21.0" version, which is one of the valid target versions: 4.21.0
  • bug has dependents

Requesting review from QA contact:
/cc @Xia-Zhao-rh

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

* move crd upgrade safety testdata into crdupgradesafety package

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>

* fix: bump crdify to fix bugs and regressions

regression fixes:

1. correctly handle processing of properties that are OpenAPI items
2. allow enums to have values added.

bug fix:

crdify's served version validator was updated to actually compare the
old CRD with the new CRD so that any issues identified in the old CRD
do not continue to be reported when performing comparisons between
served versions of the new CRD.

This effectively allows issues in the served version validations to be
acknowledged once when they are introduced, but then those issues are
essentially grandfathered in such that they do not have to be
acknowledged again in the future.

This issue was actually identified in a case where an operator upgrade
was stopped by the CRD upgrade check despite there being no changes
whatsoever to the CRD. The "old" and "new" CRDs contained the exact
same issues, but since crdify was looking exclusively at the "new" CRD,
it found those issues and reported them.

---------

Signed-off-by: Joe Lanford <joe.lanford@gmail.com>
@joelanford
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 17, 2025
@joelanford
Copy link
Member

/label backport-risk-assessed

@openshift-ci openshift-ci bot added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Oct 17, 2025
@joelanford
Copy link
Member

/label staff-eng-approved

4.20.0-rc3 was promoted to 4.20.0, so less of a concern about risk of merging 4.20 code at this point.

@openshift-ci openshift-ci bot added the staff-eng-approved Indicates a release branch PR has been approved by a staff engineer (formerly group/pillar lead). label Oct 17, 2025
@jianzhangbjz
Copy link
Contributor Author

Test passed.

1. Build an OCP cluster with this unmerged PR via the cluster-bot
launch 4.20,openshift/operator-framework-operator-controller#527 aws

jiazha-mac:~ jiazha$ oc get clusterversion
NAME      VERSION                                                AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.20.0-0-2025-10-17-033102-test-ci-ln-79q39gb-latest   True        False         4m43s   Cluster version is 4.20.0-0-2025-10-17-033102-test-ci-ln-79q39gb-latest

2. Run test case 83026
jiazha-mac:openshift-tests-private jiazha$ ./bin/extended-platform-tests run all --dry-run|grep 83026|./bin/extended-platform-tests run -f -
  I1017 12:27:22.073909 42372 test.go:180] Found authentication type used: 
  I1017 12:27:22.074686 42372 test_context.go:566] The --provider flag is not set. Continuing as if --provider=skeleton had been used.
  I1017 12:27:25.292663 42372 client.go:1023] Running 'oc --kubeconfig=/Users/jiazha/bot-kubeconfig get node -l node-role.kubernetes.io/worker -o=jsonpath={.items[*].metadata.name}'
  I1017 12:27:27.237913 42372 api.go:57] EnvIsKubernetesCluster = no, start monitoring ClusterOperators and ClusterVersions
started: (0/1/1) "[sig-operators] OLM v1 oprun should Author:jiazha-ROSA-OSD_CCS-ARO-NonHyperShiftHOST-ConnectedOnly-High-83026-clusterextension updates sometimes failed with the following error from the CRDUpgradeCheck resource: unknown change, refusing to determine that change is safe."
...
...
  I1017 12:29:30.562860 42380 framework.go:376] Found DeleteNamespace=false, skipping namespace deletion!
  • SUCCESS! 1m56.498186792s 
passed: (2m3s) 2025-10-17T04:29:30 "[sig-operators] OLM v1 oprun should Author:jiazha-ROSA-OSD_CCS-ARO-NonHyperShiftHOST-ConnectedOnly-High-83026-clusterextension updates sometimes failed with the following error from the CRDUpgradeCheck resource: unknown change, refusing to determine that change is safe."

1 pass, 0 skip (2m3s)

/verified by @jianzhangbjz

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Oct 17, 2025
@openshift-ci-robot
Copy link

@jianzhangbjz: This PR has been marked as verified by @jianzhangbjz.

In response to this:

Test passed.

1. Build an OCP cluster with this unmerged PR via the cluster-bot
launch 4.20,openshift/operator-framework-operator-controller#527 aws

jiazha-mac:~ jiazha$ oc get clusterversion
NAME      VERSION                                                AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.20.0-0-2025-10-17-033102-test-ci-ln-79q39gb-latest   True        False         4m43s   Cluster version is 4.20.0-0-2025-10-17-033102-test-ci-ln-79q39gb-latest

2. Run test case 83026
jiazha-mac:openshift-tests-private jiazha$ ./bin/extended-platform-tests run all --dry-run|grep 83026|./bin/extended-platform-tests run -f -
 I1017 12:27:22.073909 42372 test.go:180] Found authentication type used: 
 I1017 12:27:22.074686 42372 test_context.go:566] The --provider flag is not set. Continuing as if --provider=skeleton had been used.
 I1017 12:27:25.292663 42372 client.go:1023] Running 'oc --kubeconfig=/Users/jiazha/bot-kubeconfig get node -l node-role.kubernetes.io/worker -o=jsonpath={.items[*].metadata.name}'
 I1017 12:27:27.237913 42372 api.go:57] EnvIsKubernetesCluster = no, start monitoring ClusterOperators and ClusterVersions
started: (0/1/1) "[sig-operators] OLM v1 oprun should Author:jiazha-ROSA-OSD_CCS-ARO-NonHyperShiftHOST-ConnectedOnly-High-83026-clusterextension updates sometimes failed with the following error from the CRDUpgradeCheck resource: unknown change, refusing to determine that change is safe."
...
...
 I1017 12:29:30.562860 42380 framework.go:376] Found DeleteNamespace=false, skipping namespace deletion!
 • SUCCESS! 1m56.498186792s 
passed: (2m3s) 2025-10-17T04:29:30 "[sig-operators] OLM v1 oprun should Author:jiazha-ROSA-OSD_CCS-ARO-NonHyperShiftHOST-ConnectedOnly-High-83026-clusterextension updates sometimes failed with the following error from the CRDUpgradeCheck resource: unknown change, refusing to determine that change is safe."

1 pass, 0 skip (2m3s)

/verified by @jianzhangbjz

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 3e2401f into openshift:release-4.20 Oct 17, 2025
10 of 11 checks passed
@openshift-ci-robot
Copy link

@jianzhangbjz: Jira Issue Verification Checks: Jira Issue OCPBUGS-61890
✔️ This pull request was pre-merge verified.
✔️ All associated pull requests have merged.
✔️ All associated, merged pull requests were pre-merge verified.

Jira Issue OCPBUGS-61890 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓

In response to this:

Manually cherry-pick operator-framework/operator-controller@236319b to release-4.20

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@jianzhangbjz
Copy link
Contributor Author

/cherry-pick release-4.19

@openshift-cherrypick-robot

@jianzhangbjz: #527 failed to apply on top of branch "release-4.19":

Applying: UPSTREAM: <carry>: 🐛 CRD upgrade safety fixes and ratcheting (#2123)
error: mode change for testdata/manifests/crd-unhandled-new.json, which is not in current HEAD
error: could not build fake ancestor
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config advice.mergeConflict false"
Patch failed at 0001 UPSTREAM: <carry>: 🐛 CRD upgrade safety fixes and ratcheting (#2123)

In response to this:

/cherry-pick release-4.19

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. staff-eng-approved Indicates a release branch PR has been approved by a staff engineer (formerly group/pillar lead). verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants