Skip to content

[env_op_images] Add unit tests for verify_pulled_report_crio#3914

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
nemarjan:verify-pulled-report-unit-test
May 14, 2026
Merged

[env_op_images] Add unit tests for verify_pulled_report_crio#3914
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
nemarjan:verify-pulled-report-unit-test

Conversation

@nemarjan
Copy link
Copy Markdown
Contributor

@nemarjan nemarjan commented May 8, 2026

Add focused unit coverage for CRI-O pulled report verification, including successful enrichment, cross-node evidence accounting, and failure when no logs are provided. Reuse shared test utilities with a local fallback so tests run in both collection-style and local environments.

Assisted-By: Cursor Code

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 8, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@nemarjan
Copy link
Copy Markdown
Contributor Author

nemarjan commented May 8, 2026

recheck

1 similar comment
@nemarjan
Copy link
Copy Markdown
Contributor Author

nemarjan commented May 8, 2026

recheck

@nemarjan nemarjan changed the title [DNM] [env_op_images] Add unit tests for verify_pulled_report_crio [env_op_images] Add unit tests for verify_pulled_report_crio May 11, 2026
@nemarjan nemarjan requested review from a team, Valkyrie00 and evallesp May 11, 2026 08:15
@nemarjan nemarjan marked this pull request as ready for review May 11, 2026 08:56
@nemarjan nemarjan force-pushed the verify-pulled-report-unit-test branch from ad595db to b32c182 Compare May 11, 2026 10:35
Copy link
Copy Markdown
Contributor

@evallesp evallesp left a comment

Choose a reason for hiding this comment

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

LGTM in general, some questions.

Comment thread tests/unit/modules/test_verify_pulled_report_crio.py
Comment thread tests/unit/modules/test_verify_pulled_report_crio.py
Comment thread tests/unit/modules/test_verify_pulled_report_crio.py
@nemarjan nemarjan changed the title [env_op_images] Add unit tests for verify_pulled_report_crio [DNM][env_op_images] Add unit tests for verify_pulled_report_crio May 11, 2026
@nemarjan nemarjan force-pushed the verify-pulled-report-unit-test branch from b32c182 to 2371b09 Compare May 11, 2026 13:07
@nemarjan nemarjan force-pushed the verify-pulled-report-unit-test branch 2 times, most recently from f29c7d2 to cdc44cd Compare May 11, 2026 15:28
@nemarjan
Copy link
Copy Markdown
Contributor Author

recheck

@centosinfra-prod-github-app
Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/93243bde94aa407093b339db46f09f8d

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 11m 28s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 29m 56s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 31m 15s
✔️ cifmw-crc-podified-edpm-baremetal-minor-update SUCCESS in 1h 58m 23s
✔️ cifmw-pod-zuul-files SUCCESS in 7m 35s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 11m 27s
cifmw-pod-pre-commit FAILURE in 11m 27s
✔️ cifmw-molecule-env_op_images SUCCESS in 24m 29s

Add focused unit coverage for CRI-O pulled report verification, including
successful enrichment, cross-node evidence accounting, and failure when no logs
are provided. Reuse shared test utilities with a local fallback so tests run
in both collection-style and local environments.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: nemarjan <nemarjan@redhat.com>
@nemarjan nemarjan force-pushed the verify-pulled-report-unit-test branch from cdc44cd to ef38a7e Compare May 13, 2026 08:08
@nemarjan nemarjan changed the title [DNM][env_op_images] Add unit tests for verify_pulled_report_crio [env_op_images] Add unit tests for verify_pulled_report_crio May 13, 2026
Copy link
Copy Markdown
Contributor

@evallesp evallesp left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label May 13, 2026
@nemarjan nemarjan requested review from a team and michburk May 13, 2026 12:28
Copy link
Copy Markdown
Contributor

@michburk michburk left a comment

Choose a reason for hiding this comment

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

Changes lgtm, but I do have one critique that isn't necessarily blocking:

It looks like this pr is making two changes:

  1. Add the unit tests
  2. Move the verify_pulled_report_crio.py file and use the fcqn for verify_pulled_report_crio

This isn't a huge set of changes, but I think generally we should keep commits focused on one set of changes at a time. For example, in the event we need to revert something, we can create one revert commit that can specifically target the exact broken changes, rather than trying to de-tangle a smaller subset of changes from a larger commit.

@nemarjan
Copy link
Copy Markdown
Contributor Author

Changes lgtm, but I do have one critique that isn't necessarily blocking:

It looks like this pr is making two changes:

  1. Add the unit tests
  2. Move the verify_pulled_report_crio.py file and use the fcqn for verify_pulled_report_crio

This isn't a huge set of changes, but I think generally we should keep commits focused on one set of changes at a time. For example, in the event we need to revert something, we can create one revert commit that can specifically target the exact broken changes, rather than trying to de-tangle a smaller subset of changes from a larger commit.

Thanks for the feedback Michael, yes I agree with you also, when working with creation of unit test i realized the python script was better placed in modules as tests were not running in gate stage in the previous location so that was reason for movement , noted on best practices and will look to incorporate like that in future. Do you think we need take the approach you mentioned for this MR?

Copy link
Copy Markdown
Contributor

@michburk michburk left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 14, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: michburk

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-merge-bot openshift-merge-bot Bot merged commit 93e8984 into openstack-k8s-operators:main May 14, 2026
11 of 13 checks passed
@nemarjan nemarjan deleted the verify-pulled-report-unit-test branch May 14, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants