Skip to content

updating operator manifest tools with fixed panic and adding test case#1390

Open
acornett21 wants to merge 1 commit intoredhat-openshift-ecosystem:mainfrom
acornett21:fix_1384
Open

updating operator manifest tools with fixed panic and adding test case#1390
acornett21 wants to merge 1 commit intoredhat-openshift-ecosystem:mainfrom
acornett21:fix_1384

Conversation

@acornett21
Copy link
Contributor

@openshift-ci openshift-ci bot requested review from bcrochet and jomkz March 17, 2026 21:19
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 17, 2026
@dcibot
Copy link

dcibot commented Mar 17, 2026

@acornett21 acornett21 changed the title adding test case to produce panic when csv.releateImages is empty updating operator manifest tools with fixed panic and adding test case Mar 19, 2026
@acornett21 acornett21 force-pushed the fix_1384 branch 2 times, most recently from 2138f43 to 70f4a77 Compare March 19, 2026 17:19
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

## 📋 Review Summary

This Pull Request effectively addresses the reported panic issue by updating the operator-manifest-tools dependency to version v0.12.0. It also correctly includes a new test case that verifies the system can gracefully handle empty relatedImages entries without crashing.

🔍 General Feedback

  • The dependency updates in go.mod and go.sum are straightforward and correct.
  • The newly added test case accurately simulates the bug scenario in internal/policy/operator/certified_images_test.go.
  • Added a minor suggestion to the test logic to improve test coverage and resilience.

Signed-off-by: Adam D. Cornett <adc@redhat.com>
@coveralls
Copy link

coveralls commented Mar 19, 2026

Coverage Status

coverage: 84.47%. remained the same
when pulling 17784cc on acornett21:fix_1384
into a67621d on redhat-openshift-ecosystem:main.

@dcibot
Copy link

dcibot commented Mar 19, 2026

@openshift-ci
Copy link

openshift-ci bot commented Mar 19, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: acornett21, caxu-rh

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

The pull request process is described here

Details 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 lgtm Indicates that a PR is ready to be merged. label Mar 19, 2026
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address Panic when relatedImages.name || relatedImages.image are Empty Strings

4 participants