Skip to content

Conversation

@rhmdnd
Copy link
Collaborator

@rhmdnd rhmdnd commented Sep 27, 2025

  • Update ocp4 assertion files
  • Update rhcos4 assertion files

@ggbecker
Copy link
Member

/packit retest-failed

@yuumasato
Copy link
Member

@rhmdnd -content-dir=$PWD is not working

 + pushd ocp4e2e
/go/src/github.com/ComplianceAsCode/content/ocp4e2e /go/src/github.com/ComplianceAsCode/content
+ go test . '-run=^TestNodeCompliance$' -test-type=node -content-image=registry.build10.ci.openshift.org/ci-op-7202tblm/pipeline@sha256:fec127f30ed6e3a0994154d5d4fd258d41069d6cb3746595cc3911998407e37e -content-directory=/go/src/github.com/ComplianceAsCode/content/ocp4e2e 

It might have to be -content-dir=../, because of pushd ocp4e2e

@jan-cerny jan-cerny added the OpenShift OpenShift product related. label Sep 30, 2025
@rhmdnd
Copy link
Collaborator Author

rhmdnd commented Sep 30, 2025

@rhmdnd -content-dir=$PWD is not working

 + pushd ocp4e2e
/go/src/github.com/ComplianceAsCode/content/ocp4e2e /go/src/github.com/ComplianceAsCode/content
+ go test . '-run=^TestNodeCompliance$' -test-type=node -content-image=registry.build10.ci.openshift.org/ci-op-7202tblm/pipeline@sha256:fec127f30ed6e3a0994154d5d4fd258d41069d6cb3746595cc3911998407e37e -content-directory=/go/src/github.com/ComplianceAsCode/content/ocp4e2e 

It might have to be -content-dir=../, because of pushd ocp4e2e

Fixed in openshift/release#69497

@yuumasato yuumasato self-assigned this Sep 30, 2025
@yuumasato yuumasato added this to the 0.1.79 milestone Sep 30, 2025
@yuumasato
Copy link
Member

@rhmdnd You'll need to rebase to incorporate a fix so that the testing-farm tests pass.

@rhmdnd rhmdnd force-pushed the update-ocp4-check-result-names branch from c74624d to b704832 Compare October 1, 2025 02:03
@openshift-ci
Copy link

openshift-ci bot commented Oct 1, 2025

@rhmdnd: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-openshift-node-compliance b704832 link true /test e2e-aws-openshift-node-compliance
ci/prow/e2e-aws-openshift-platform-compliance b704832 link true /test e2e-aws-openshift-platform-compliance

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@yuumasato
Copy link
Member

Sorry, @rhmdnd looks like there was another issue and it needs a new rebase.
Plus, we are now codeowners of tests/assertions/ocp4.

rhmdnd added 2 commits October 1, 2025 08:58
The previous check names relied on an e2e test bundle, resulting in the
each check name being prefixed with `e2e`. This prefix needs to change
if you're calling the suite with different profile bundles, otherwise
the assertions won't match, even though you're using the same
profile.

This commit updates the assertion files so that we just use the default
profile bundle names, and then in the test suite we'll handle the
profile bundles so the one under test is always loaded using the default
names. This results in less tinkering when your testing locally, versus
CI running on PRs, versus periodic CI runs (they all use the same
assertion files, with the same check result names).
The previous check names relied on an e2e test bundle, resulting in the each
check name being prefixed with `e2e`. This prefix needs to change if you're
calling the suite with different profile bundles, otherwise the assertions
won't match, even though you're using the same profile.

This commit updates the assertion files so that we just use the default profile
bundle names, and then in the test suite we'll handle the profile bundles so
the one under test is always loaded using the default names. This results in
less tinkering when your testing locally, versus CI running on PRs, versus
periodic CI runs (they all use the same assertion files, with the same check
result names).
@rhmdnd rhmdnd force-pushed the update-ocp4-check-result-names branch from b704832 to c02d5b3 Compare October 1, 2025 13:58
Copy link
Member

@yuumasato yuumasato left a comment

Choose a reason for hiding this comment

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

/lgtm

@yuumasato yuumasato merged commit fc31961 into ComplianceAsCode:master Oct 1, 2025
134 of 138 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OpenShift OpenShift product related.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants